sabnzbd_exporter icon indicating copy to clipboard operation
sabnzbd_exporter copied to clipboard

api and base url for the py file as question

Open sojab0on opened this issue 3 years ago • 3 comments

sojab0on avatar Jan 24 '22 14:01 sojab0on

How do i set the right prometuehes server in the docker command my prometheus server runs on a diffrent machine.

And now i can push the data the exporter gets to a db to load to the grafana dashboard

sojab0on avatar Jan 24 '22 14:01 sojab0on

Is it posible that a question is coming up to enter the api key and base url when tarting to py file for xport

sojab0on avatar Jan 28 '22 11:01 sojab0on

The prometheus server isn't setup in the exporter the exporter is referenced in your prometheus server scrape configuration.

So you tell the exporter where your SAB install is via base url and api key. Then you setup you prometheus scrape to scrape the exporter once it's running with something like this:

- job_name: sabnzbd-exporter
  honor_timestamps: true
  scrape_interval: 5s
  scrape_timeout: 5s
  metrics_path: /metrics
  scheme: http
  follow_redirects: true
  static_configs:
  - targets:
    - <exporter machine name/ip>:9387

msroest avatar Feb 25 '22 13:02 msroest