Skip to content

About

Prometheus metrics exporter for ZTE F6005 v3 ONT.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Repository files navigation

Prometheus F6005 (v3)

A theoretically simple way to export metrics from your ZTE F6005v3 ONT to Prometheus.

Required environment variables

Name Description Default Value
ENDPOINT HTTP address to the ONT http://192.168.1.1
ONT_USERNAME Username for the ONT admin
ONT_PASSWORD Password for the ONT admin
ONT_SLEEP_QUIT Time to wait before quitting 60s

Usage

Example docker-compose section:

  f6005_exporter:
    restart: always
    image: ghcr.io/lucathehacker/prometheusf6005
    environment:
      - ENDPOINT=http://192.168.1.1
      - ONT_USERNAME=admin
      - ONT_PASSWORD=admin
    expose:
      - 80

Notes

Software may break if you log in your ONT web interface, or if you make any kind of HTTP request to your ONT.
For some reason, ZTE decided that the ONT should not be able to handle multiple sessions at the same time.
To automatically recover from this, when collector.go receives and error will wait for ONT_SLEEP_QUIT seconds and kill the program, forcing it to restart due to docker container policies.

The code sucks, I know. I wrote it with a bad headache and no sleep.

Grafana Integration

You can visualize the data with our Grafana Dashboard.
You can find alerts in the grafana_alerts.yaml file.

About

Prometheus metrics exporter for ZTE F6005 v3 ONT.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages