Last active
April 1, 2020 22:54
-
-
Save tboerger/4f445d609f0894a5fe40c20e7a42d565 to your computer and use it in GitHub Desktop.
Prometheus Scaleway SD 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.6.0 | |
| restart: always | |
| ports: | |
| - 9090:9090 | |
| volumes: | |
| - prometheus:/prometheus | |
| - ./prometheus.yml:/etc/prometheus/prometheus.yml | |
| - ./service-discovery:/etc/sd | |
| scw-sd: | |
| image: promhippie/prometheus-scw-sd:latest | |
| restart: always | |
| environment: | |
| - PROMETHEUS_SCW_LOG_PRETTY=true | |
| - PROMETHEUS_SCW_OUTPUT_FILE=/etc/sd/scw.json | |
| - PROMETHEUS_SCW_ACCESS_KEY=SCWTAGNAXNNTV4NBNPVN | |
| - PROMETHEUS_SCW_SECRET_KEY=a6566958-0311-4c72-bac0-2cc86a852a19 | |
| - PROMETHEUS_SCW_ORG=a84ef57f-c727-40c4-a236-1a81e8041ce5 | |
| - PROMETHEUS_SCW_REGION=par1 | |
| volumes: | |
| - ./service-discovery:/etc/sd |
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 "scw-sd_default" with the default driver | |
| Creating volume "scw-sd_prometheus" with default driver | |
| Creating scw-sd_scw-sd_1 ... done | |
| Creating scw-sd_prometheus_1 ... done | |
| Attaching to scw-sd_scw-sd_1, scw-sd_prometheus_1 | |
| prometheus_1 | level=info ts=2018-10-07T16:18:45.1092588Z caller=main.go:238 msg="Starting Prometheus" version="(version=2.4.3, branch=HEAD, revision=167a4b4e73a8eca8df648d2d2043e21bdb9a7449)" | |
| prometheus_1 | level=info ts=2018-10-07T16:18:45.1093473Z 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-07T16:18:45.1093727Z caller=main.go:240 host_details="(Linux 4.9.93-linuxkit-aufs #1 SMP Wed Jun 6 16:55:56 UTC 2018 x86_64 a13beb141445 (none))" | |
| prometheus_1 | level=info ts=2018-10-07T16:18:45.1093944Z caller=main.go:241 fd_limits="(soft=1048576, hard=1048576)" | |
| prometheus_1 | level=info ts=2018-10-07T16:18:45.1094111Z caller=main.go:242 vm_limits="(soft=unlimited, hard=unlimited)" | |
| prometheus_1 | level=info ts=2018-10-07T16:18:45.1103691Z caller=main.go:554 msg="Starting TSDB ..." | |
| prometheus_1 | level=info ts=2018-10-07T16:18:45.1104236Z caller=web.go:397 component=web msg="Start listening for connections" address=0.0.0.0:9090 | |
| prometheus_1 | level=info ts=2018-10-07T16:18:45.1162682Z caller=main.go:564 msg="TSDB started" | |
| prometheus_1 | level=info ts=2018-10-07T16:18:45.1171396Z caller=main.go:624 msg="Loading configuration file" filename=/etc/prometheus/prometheus.yml | |
| prometheus_1 | level=info ts=2018-10-07T16:18:45.11963Z caller=main.go:650 msg="Completed loading of configuration file" filename=/etc/prometheus/prometheus.yml | |
| prometheus_1 | level=info ts=2018-10-07T16:18:45.1196724Z caller=main.go:523 msg="Server is ready to receive web requests." | |
| scw-sd_1 | level=info ts=2018-10-07T16:18:45.1296711Z msg="Launching Prometheus Scaleway SD" version=0.0.0-master revision=a94cb2f date=20180924 go=go1.11 | |
| scw-sd_1 | level=info ts=2018-10-07T16:18:45.8562717Z msg="Starting metrics server" addr=0.0.0.0:9000 |
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: node | |
| file_sd_configs: | |
| - files: [ "/etc/sd/scw.json" ] | |
| relabel_configs: | |
| - source_labels: [__meta_scaleway_public_ipv4] | |
| replacement: "${1}:9100" | |
| target_label: __address__ | |
| - source_labels: [__meta_scaleway_zone] | |
| target_label: datacenter | |
| - source_labels: [__meta_scaleway_name] | |
| target_label: instance | |
| - job_name: scw-sd | |
| static_configs: | |
| - targets: | |
| - scw-sd:9000 |
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
| scw-sd: | |
| - image: promhippie/prometheus-scw-sd:latest | |
| + image: promhippie/prometheus-scw-sd:0.2.0 | |
| restart: always | |
| environment: | |
| - PROMETHEUS_SCW_LOG_PRETTY=true | |
| - PROMETHEUS_SCW_OUTPUT_FILE=/etc/sd/scw.json | |
| - PROMETHEUS_SCW_ACCESS_KEY=SCWTAGNAXNNTV4NBNPVN | |
| - PROMETHEUS_SCW_SECRET_KEY=a6566958-0311-4c72-bac0-2cc86a852a19 | |
| - PROMETHEUS_SCW_ORG=a84ef57f-c727-40c4-a236-1a81e8041ce5 | |
| - PROMETHEUS_SCW_REGION=par1 | |
| volumes: | |
| - ./service-discovery:/etc/sd |
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
| scw-sd: | |
| image: promhippie/prometheus-scw-sd:latest | |
| restart: always | |
| + user: '65534' | |
| environment: | |
| - PROMETHEUS_SCW_LOG_PRETTY=true | |
| - PROMETHEUS_SCW_OUTPUT_FILE=/etc/sd/scw.json | |
| - PROMETHEUS_SCW_ACCESS_KEY=SCWTAGNAXNNTV4NBNPVN | |
| - PROMETHEUS_SCW_SECRET_KEY=a6566958-0311-4c72-bac0-2cc86a852a19 | |
| - PROMETHEUS_SCW_ORG=a84ef57f-c727-40c4-a236-1a81e8041ce5 | |
| - PROMETHEUS_SCW_REGION=par1 | |
| volumes: | |
| - ./service-discovery:/etc/sd |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment