init
This commit is contained in:
commit
1ac93ba11b
16 changed files with 17834 additions and 0 deletions
78
conf/prometheus/prometheus.yml
Normal file
78
conf/prometheus/prometheus.yml
Normal file
|
@ -0,0 +1,78 @@
|
|||
global:
|
||||
scrape_interval: 20s
|
||||
|
||||
rule_files:
|
||||
- alerts/*.yml
|
||||
|
||||
alerting:
|
||||
alertmanagers:
|
||||
- static_configs:
|
||||
- targets:
|
||||
- alertmanager:9093
|
||||
|
||||
scrape_configs:
|
||||
- job_name: "prometheus"
|
||||
scrape_interval: 5s
|
||||
static_configs:
|
||||
- targets: ["localhost:9090"]
|
||||
|
||||
- job_name: "alertmanager"
|
||||
scrape_interval: 5s
|
||||
static_configs:
|
||||
- targets: ["alertmanager:9093"]
|
||||
|
||||
- job_name: "node"
|
||||
static_configs:
|
||||
- targets: ["node-exporter:9100"]
|
||||
|
||||
- job_name: "cadvisor"
|
||||
static_configs:
|
||||
- targets: ["cadvisor:8080"]
|
||||
|
||||
- job_name: "node_nyyu"
|
||||
scheme: https
|
||||
metrics_path: /node/metrics
|
||||
static_configs:
|
||||
- targets: ["nyyu.dev:443"]
|
||||
|
||||
# - job_name: "smokeping"
|
||||
# static_configs:
|
||||
# - targets: ["smokeping:9374"]
|
||||
|
||||
- job_name: "blackbox"
|
||||
metrics_path: /probe
|
||||
params:
|
||||
module: [http_2xx]
|
||||
dns_sd_configs:
|
||||
- names:
|
||||
- nyyu.dev
|
||||
type: A
|
||||
port: 443
|
||||
relabel_configs:
|
||||
- source_labels: [__address__]
|
||||
target_label: __param_target
|
||||
replacement: https://$1/
|
||||
- source_labels: [__param_target]
|
||||
target_label: target
|
||||
- target_label: __address__
|
||||
replacement: blackbox:9115
|
||||
- source_labels: [__meta_dns_name]
|
||||
target_label: __param_hostname
|
||||
- source_labels: [__meta_dns_name]
|
||||
target_label: vhost
|
||||
|
||||
- job_name: "blackbox_icmp"
|
||||
metrics_path: /probe
|
||||
params:
|
||||
module: [icmp]
|
||||
static_configs:
|
||||
- targets:
|
||||
- 1.1.1.1
|
||||
- nyyu.dev
|
||||
relabel_configs:
|
||||
- source_labels: [__address__]
|
||||
target_label: __param_target
|
||||
- source_labels: [__param_target]
|
||||
target_label: target
|
||||
- target_label: __address__
|
||||
replacement: blackbox:9115
|
Loading…
Add table
Add a link
Reference in a new issue