Created
October 6, 2018 11:08
-
-
Save tboerger/55dbda948f64b68eaee68858ccac32d1 to your computer and use it in GitHub Desktop.
Hetzner exporter documentation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: '2' | |
| volumes: | |
| prometheus: | |
| services: | |
| prometheus: | |
| image: prom/prometheus:v2.4.3 | |
| restart: always | |
| ports: | |
| - 9090:9090 | |
| volumes: | |
| - prometheus:/prometheus | |
| - ./prometheus.yml:/etc/prometheus/prometheus.yml | |
| hetzner-exporter: | |
| image: promhippie/hetzner-exporter:latest | |
| restart: always | |
| environment: | |
| - HETZNER_EXPORTER_LOG_PRETTY=true | |
| - HETZNER_EXPORTER_USERNAME=octocat | |
| - HETZNER_EXPORTER_PASSWORD=p455w0rd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # docker-compose up | |
| Creating network "hetzner_default" with the default driver | |
| Creating volume "hetzner_prometheus" with default driver | |
| Creating hetzner_hetzner-exporter_1 ... done | |
| Creating hetzner_prometheus_1 ... done | |
| Attaching to hetzner_hetzner-exporter_1, hetzner_prometheus_1 | |
| hetzner-exporter_1 | level=info ts=2018-10-06T11:07:59.6281527Z msg="Launching Hetzner Exporter" version=0.0.0-master revision=afe141b date=20181006 go=go1.10 | |
| hetzner-exporter_1 | level=info ts=2018-10-06T11:07:59.6300995Z msg="Starting metrics server" addr=0.0.0.0:9502 | |
| prometheus_1 | level=info ts=2018-10-06T11:07:59.7358659Z caller=main.go:238 msg="Starting Prometheus" version="(version=2.4.3, branch=HEAD, revision=167a4b4e73a8eca8df648d2d2043e21bdb9a7449)" | |
| prometheus_1 | level=info ts=2018-10-06T11:07:59.7359415Z caller=main.go:239 build_context="(go=go1.11.1, user=root@1e42b46043e9, date=20181004-08:42:02)" | |
| prometheus_1 | level=info ts=2018-10-06T11:07:59.7359654Z caller=main.go:240 host_details="(Linux 4.9.93-linuxkit-aufs #1 SMP Wed Jun 6 16:55:56 UTC 2018 x86_64 5e6e163e2828 (none))" | |
| prometheus_1 | level=info ts=2018-10-06T11:07:59.7359877Z caller=main.go:241 fd_limits="(soft=1048576, hard=1048576)" | |
| prometheus_1 | level=info ts=2018-10-06T11:07:59.736006Z caller=main.go:242 vm_limits="(soft=unlimited, hard=unlimited)" | |
| prometheus_1 | level=info ts=2018-10-06T11:07:59.7370038Z caller=main.go:554 msg="Starting TSDB ..." | |
| prometheus_1 | level=info ts=2018-10-06T11:07:59.7370865Z caller=web.go:397 component=web msg="Start listening for connections" address=0.0.0.0:9090 | |
| prometheus_1 | level=info ts=2018-10-06T11:07:59.7439974Z caller=main.go:564 msg="TSDB started" | |
| prometheus_1 | level=info ts=2018-10-06T11:07:59.7440747Z caller=main.go:624 msg="Loading configuration file" filename=/etc/prometheus/prometheus.yml | |
| prometheus_1 | level=info ts=2018-10-06T11:07:59.7493014Z caller=main.go:650 msg="Completed loading of configuration file" filename=/etc/prometheus/prometheus.yml | |
| prometheus_1 | level=info ts=2018-10-06T11:07:59.7493542Z caller=main.go:523 msg="Server is ready to receive web requests." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| hetzner-exporter: | |
| image: promhippie/hetzner-exporter:latest | |
| restart: always | |
| + ports: | |
| + - 127.0.0.1:9502:9502 | |
| environment: | |
| - HETZNER_EXPORTER_LOG_PRETTY=true | |
| - HETZNER_EXPORTER_USERNAME=octocat | |
| - HETZNER_EXPORTER_PASSWORD=p455w0rd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| global: | |
| scrape_interval: 1m | |
| scrape_timeout: 10s | |
| evaluation_interval: 1m | |
| scrape_configs: | |
| - job_name: hetzner | |
| static_configs: | |
| - targets: | |
| - hetzner-exporter:9502 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| hetzner-exporter: | |
| - image: promhippie/hetzner-exporter:latest | |
| + image: promhippie/hetzner-exporter:0.1.0 | |
| restart: always | |
| environment: | |
| - HETZNER_EXPORTER_LOG_PRETTY=true | |
| - HETZNER_EXPORTER_USERNAME=octocat | |
| - HETZNER_EXPORTER_PASSWORD=p455w0rd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment