Files
lincodex/observability/prometheus/prometheus.yml
T

46 lines
1.1 KiB
YAML

global:
scrape_interval: 30s
evaluation_interval: 30s
scrape_configs:
- job_name: prometheus
static_configs:
- targets:
- prometheus:9090
- job_name: backend
metrics_path: /metrics
static_configs:
- targets:
- backend:9090
- job_name: postgres
static_configs:
- targets:
- postgres-exporter:9187
- job_name: redis
static_configs:
- targets:
- redis-exporter:9121
- job_name: seaweedfs
static_configs:
- targets:
- seaweedfs:9327
metric_relabel_configs:
- source_labels: [__name__]
action: keep
regex: 'SeaweedFS_(build_info|master_is_leader|s3_request_total|s3_request_seconds_(bucket|sum|count)|volumeServer_(resource|file_write_failures|file_read_failures|disk_error_status))|process_(resident_memory_bytes|cpu_seconds_total)'
- job_name: node
static_configs:
- targets:
- node-exporter:9100
- job_name: ml
metrics_path: /metrics
file_sd_configs:
- files:
- /etc/prometheus/targets/ml.yml