forked from mtusi2026/mtusi2026lab7
44 lines
888 B
YAML
44 lines
888 B
YAML
{
|
|
"global": {
|
|
"scrape_interval": "2s",
|
|
"evaluation_interval": "2s"
|
|
},
|
|
"rule_files": [
|
|
"/etc/prometheus/alerts.yaml"
|
|
],
|
|
"scrape_configs": [
|
|
{
|
|
"job_name": "messenger",
|
|
"scheme": "https",
|
|
"tls_config": {
|
|
"ca_file": "/run/trust/ca.crt",
|
|
"cert_file": "/run/identity/service.crt",
|
|
"key_file": "/run/identity/service.key"
|
|
},
|
|
"static_configs": [
|
|
{
|
|
"targets": [
|
|
"otel-collector:8889"
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"job_name": "collector",
|
|
"scheme": "https",
|
|
"tls_config": {
|
|
"ca_file": "/run/trust/ca.crt",
|
|
"cert_file": "/run/identity/service.crt",
|
|
"key_file": "/run/identity/service.key"
|
|
},
|
|
"static_configs": [
|
|
{
|
|
"targets": [
|
|
"otel-collector:8888"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|