shizunge / endlessh-go

A golang implementation of endlessh exporting Prometheus metrics, visualized by a Grafana dashboard.
GNU General Public License v3.0
951 stars 28 forks source link

v is undefined #115

Open ZIOOIZ8 opened 1 month ago

ZIOOIZ8 commented 1 month ago

grafik

I had the error as shown in the screenshot above and tried to completely rebuild and deploy all my docker containers and the Grafana dashboard. I also deleted all storage volumes and completely rebuilt the stack, but unfortunately the error did not disappear. Here is my docker stack which I run in my portainer:

version: '3.8'
services:
  endlessh:
    image: shizunge/endlessh-go:latest
    container_name: endlessh
    command:
      - -interval_ms=1000
      - -logtostderr
      - -v=1
      - -enable_prometheus
      - -geoip_supplier=ip-api
    ports:
      # SSH port
      - 2222:2222
      # Prometheus metrics port
      - 2112:2112
    restart: always
    stdin_open: true # docker run -i
    tty: true # docker run -t

  prometheus:
    image: prom/prometheus:latest
    container_name: prometheus
    command: 
      - --config.file=/etc/prometheus/prometheus.yml
      - --storage.tsdb.path=/prometheus
      - --storage.tsdb.retention.time=45d
      - --web.console.libraries=/usr/share/prometheus/console_libraries
      - --web.console.templates=/usr/share/prometheus/consoles
      - --web.enable-admin-api
    ports:
      - 9090:9090
    volumes:
      - /var/lib/docker/volumes/endlessh_prometheus/_data/prometheus.yml:/etc/prometheus/prometheus.yml
      - prometheus:/prometheus
    restart: always
    stdin_open: true # docker run -i
    tty: true # docker run -t
volumes:
  prometheus:

Am I doing something wrong, or is there a bug somewhere in the containers?