57 lines
1.5 KiB
YAML
57 lines
1.5 KiB
YAML
|
global:
|
||
|
scrape_interval: 15s # By default, scrape targets every 15 seconds.
|
||
|
evaluation_interval: 15s
|
||
|
|
||
|
# Attach these labels to any time series or alerts when communicating with
|
||
|
# external systems (federation, remote storage, Alertmanager).
|
||
|
external_labels:
|
||
|
monitor: codelab-monitor
|
||
|
|
||
|
##rule_files:
|
||
|
## - prometheus.rules.yml
|
||
|
|
||
|
scrape_configs:
|
||
|
- job_name: prometheus
|
||
|
scrape_interval: 10s
|
||
|
static_configs:
|
||
|
- targets: ['localhost:9090']
|
||
|
|
||
|
- job_name: gitea
|
||
|
scrape_interval: 10s
|
||
|
#scheme: https
|
||
|
#static_configs:
|
||
|
# - targets: ['gitea-service-host:3000']
|
||
|
dns_sd_configs:
|
||
|
- names: ['gitea-service-host']
|
||
|
type: A
|
||
|
port: 3000
|
||
|
refresh_interval: 30s
|
||
|
|
||
|
- job_name: node
|
||
|
scrape_interval: 10s
|
||
|
#scheme: https
|
||
|
#static_configs:
|
||
|
# - targets: ['prometheus-node-exporter-service-host:9100']
|
||
|
##dns_sd_configs:
|
||
|
## - names: ['prometheus-node-exporter-service-host']
|
||
|
## type: A
|
||
|
## port: 9100
|
||
|
## refresh_interval: 30s
|
||
|
dockerswarm_sd_configs:
|
||
|
- host: tcp://prometheus-socat-service-host:2375
|
||
|
role: nodes
|
||
|
relabel_configs:
|
||
|
- source_labels: [__meta_dockerswarm_node_address]
|
||
|
target_label: __address__
|
||
|
replacement: $1:9100
|
||
|
- source_labels: [__meta_dockerswarm_node_hostname]
|
||
|
target_label: instance
|
||
|
|
||
|
- job_name: cadvisor
|
||
|
scrape_interval: 10s
|
||
|
dns_sd_configs:
|
||
|
- names: ['cadvisor-service-host']
|
||
|
type: A
|
||
|
port: 8080
|
||
|
refresh_interval: 30s
|