mirror of
https://github.com/wahyd4/home-docker.git
synced 2026-08-09 04:15:52 +10:00
Add scrape for doicker hub
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
global:
|
||||
scrape_interval: 15s
|
||||
scrape_interval: 15s
|
||||
evaluation_interval: 15s
|
||||
|
||||
# Attach these labels to any time series or alerts when communicating with
|
||||
# external systems (federation, remote storage, Alertmanager).
|
||||
external_labels:
|
||||
monitor: 'docker-host-alpha'
|
||||
monitor: "docker-host-alpha"
|
||||
|
||||
# Load and evaluate rules in this file every 'evaluation_interval' seconds.
|
||||
rule_files:
|
||||
@@ -13,35 +13,38 @@ rule_files:
|
||||
|
||||
# A scrape configuration containing exactly one endpoint to scrape.
|
||||
scrape_configs:
|
||||
- job_name: 'nodeexporter'
|
||||
- job_name: "nodeexporter"
|
||||
scrape_interval: 5s
|
||||
static_configs:
|
||||
- targets: ['nodeexporter:9100']
|
||||
- targets: ["nodeexporter:9100"]
|
||||
|
||||
- job_name: 'cadvisor'
|
||||
- job_name: "cadvisor"
|
||||
scrape_interval: 5s
|
||||
static_configs:
|
||||
- targets: ['cadvisor:8080']
|
||||
- targets: ["cadvisor:8080"]
|
||||
|
||||
- job_name: 'prometheus'
|
||||
- job_name: "prometheus"
|
||||
scrape_interval: 10s
|
||||
static_configs:
|
||||
- targets: ['localhost:9090']
|
||||
- targets: ["localhost:9090"]
|
||||
|
||||
- job_name: 'pushgateway'
|
||||
- job_name: "pushgateway"
|
||||
scrape_interval: 10s
|
||||
honor_labels: true
|
||||
static_configs:
|
||||
- targets: ['pushgateway:9091']
|
||||
|
||||
- targets: ["pushgateway:9091"]
|
||||
- job_name: "dockerhub"
|
||||
scrape_interval: 600s
|
||||
honor_labels: true
|
||||
static_configs:
|
||||
- targets: ["home.toozhao.com:9170"]
|
||||
|
||||
alerting:
|
||||
alertmanagers:
|
||||
- scheme: http
|
||||
static_configs:
|
||||
- targets:
|
||||
- 'alertmanager:9093'
|
||||
|
||||
- scheme: http
|
||||
static_configs:
|
||||
- targets:
|
||||
- "alertmanager:9093"
|
||||
# - job_name: 'nginx'
|
||||
# scrape_interval: 10s
|
||||
# static_configs:
|
||||
|
||||
Reference in New Issue
Block a user