Skip to content

Instantly share code, notes, and snippets.

@leoluk
Last active April 3, 2020 12:47
Show Gist options
  • Save leoluk/cb6e1beaf8c1e357cdd162dbb740f282 to your computer and use it in GitHub Desktop.
Save leoluk/cb6e1beaf8c1e357cdd162dbb740f282 to your computer and use it in GitHub Desktop.
[Service]
ExecStart=/usr/local/bin/folding_exporter -teamID 257832 -listen [::1]:8080
User=prometheus
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
[Service]
ExecStart=/usr/bin/prometheus --web.listen-address="0.0.0.0:9090" --storage.tsdb.retention.time=365d
User=prometheus
WorkingDirectory=/opt/prom
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
global:
scrape_interval: 1m
scrape_timeout: 60s
evaluation_interval: 10s
scrape_configs:
- job_name: prometheus
honor_timestamps: true
scrape_interval: 5s
scrape_timeout: 5s
metrics_path: /metrics
scheme: http
static_configs:
- targets:
- localhost:9090
- job_name: folding
scrape_interval: 15m
scheme: http
static_configs:
- targets:
- localhost:8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment