1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# Prometheus configuration for rs3gw monitoring
global:
scrape_interval: 15s
evaluation_interval: 15s
external_labels:
monitor: 'rs3gw-monitor'
# Alertmanager configuration (optional)
# alerting:
# alertmanagers:
# - static_configs:
# - targets:
# - alertmanager:9093
# Rule files (optional)
# rule_files:
# - "alerts.yml"
scrape_configs:
# rs3gw metrics
- job_name: 'rs3gw'
static_configs:
- targets:
labels:
service: 'rs3gw'
environment: 'development'
# Prometheus self-monitoring
- job_name: 'prometheus'
static_configs:
- targets:
labels:
service: 'prometheus'
# MinIO metrics
- job_name: 'minio'
metrics_path: /minio/v2/metrics/cluster
static_configs:
- targets:
labels:
service: 'minio'
# Redis metrics (using redis_exporter if available)
# - job_name: 'redis'
# static_configs:
# - targets: ['redis_exporter:9121']
# labels:
# service: 'redis'
# PostgreSQL metrics (using postgres_exporter if available)
# - job_name: 'postgres'
# static_configs:
# - targets: ['postgres_exporter:9187']
# labels:
# service: 'postgres'