Migration V1/2 on Pangolin (traefik-log-dashboard discussion #83)

:speech_balloon: GitHub discussion traefik-log-dashboard #83 in Q&A, started by ghost on GitHub

While migrating with Pangolin from V1 to V2

What is needed in config/traefik/traefik_config.yml is also the deletion of this part (because added by the guide on Pangolin docs):

  sampleRate: 0.1 # Adjust as needed - 0.1 for 10% sampling
  globalAttributes:
    environment: "production"
    service.version: "v3.0"
    deployment.environment: "pangolin"

And in Pangolin Resources page change in name to traefik-log-dashboard and port 3000 is needed (or whatever container name one does choose to have).

But so far still having 500.

for docker compose exec traefik-dashboard wget -O- http://traefik-agent:5000/api/logs/status

there is this: OCI runtime exec failed: exec failed: unable to start container process: exec: "wget": executable file not found in $PATH: unknown

networks:
  traefik-network:  # ⚠️ UPDATE TO YOUR NETWORK NAME
    external: true

well, the Pangolin docker-compose does have already defined:

networks:
  default:
    driver: bridge
    enable_ipv6: true
    name: pangolin

So have some mistake here definitely.

If there is added ‘pangolin’ - compose return: service "traefik-dashboard" refers to undefined network pangolin: invalid compose project

If ‘defaul’ - compose starts but getting 500 in dashboard.

Anyone know how to …


:speech_balloon: Join in here or on GitHub.

hhftechnology commented on GitHub:

While migrating with Pangolin from V1 to V2

What is needed in config/traefik/traefik_config.yml is also the deletion of this part (because added by the guide on Pangolin docs):

  sampleRate: 0.1 # Adjust as needed - 0.1 for 10% sampling
  globalAttributes:
    environment: "production"
    service.version: "v3.0"
    deployment.environment: "pangolin"

And in Pangolin Resources page change in name to traefik-log-dashboard and port 3000 is needed (or whatever container name one does choose to have).

But so far still having 500.

for docker compose exec traefik-dashboard wget -O- http://traefik-agent:5000/api/logs/status

there is this: OCI runtime exec failed: exec failed: unable to start container process: exec: "wget": executable file not found in $PATH: unknown

networks:
  traefik-network:  # ⚠️ UPDATE TO YOUR NETWORK NAME
    external: true

well, the Pangolin docker-compose does have already defined:

networks:
  default:
    driver: bridge
    enable_ipv6: true
    name: pangolin

So have some mistake here definitely.

If there is added ‘pangolin’ - compose return: service "traefik-dashboard" refers to undefined network pangolin: invalid compose project

If ‘defaul’ - compose starts but getting 500 in dashboard.

Anyone know how to resolve this network?

services:
  # Traefik Log Dashboard Agent
  traefik-agent:
    image: hhftechnology/traefik-log-dashboard-agent:2.0.0
    container_name: traefik-log-dashboard-agent
    restart: unless-stopped
    ports:
      - "5000:5000"
    volumes:
      - /root/config/traefik/logs:/logs:ro
      - ./data/geoip:/geoip:ro  # MaxMind GeoIP databases
      - ./data/positions:/data
    environment:
      # Log Paths
      - TRAEFIK_LOG_DASHBOARD_ACCESS_PATH=/logs/access.log
      - TRAEFIK_LOG_DASHBOARD_ERROR_PATH=/logs/access.log
      
      # Authentication
      - TRAEFIK_LOG_DASHBOARD_AUTH_TOKEN=d41d8cd98f00b204e9800998ecf8427e
      
      # System Monitoring
      - TRAEFIK_LOG_DASHBOARD_SYSTEM_MONITORING=true
      
      # GeoIP Configuration (NEW)
      - TRAEFIK_LOG_DASHBOARD_GEOIP_ENABLED=true
      - TRAEFIK_LOG_DASHBOARD_GEOIP_CITY_DB=/geoip/GeoLite2-City.mmdb
      - TRAEFIK_LOG_DASHBOARD_GEOIP_COUNTRY_DB=/geoip/GeoLite2-Country.mmdb
      
      # Log Format (optional)
      - TRAEFIK_LOG_DASHBOARD_LOG_FORMAT=json
      
      # Server Port
      - PORT=5000
    healthcheck:
      test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:5000/api/logs/status"]
      interval: 30s
      timeout: 10s
      retries: 3
      start_period: 10s
    networks:
      - pangolin

  # Traefik Log Dashboard - Next.js web UI
  traefik-dashboard:
    image: …

hhftechnology replied in a thread on GitHub to hhftechnology:

External Image

ghost replied in a thread on GitHub to hhftechnology:

And in Pangolin Resources page change in name to traefik-log-dashboard and port 3000 is needed (or whatever container name one does choose to have).

Yup - have it like this (just named my Local to ‘pangolin’).

I had it all in one docker compose altogether with Pangolin.

Moved to separate dir, standalone now and this does load.

Apologies for not including the .yaml.

hhftechnology replied in a thread on GitHub to hhftechnology:

thanks.:slight_smile: first agent is picked up from eve variables so even if incorrect in the setting it will Superseed it so even if it shows offline in the dashboard data will flow. check the url path and the token you will see it connected.