Prometheus Scrape Config (K8s)
- Canonical Observability
Channel | Revision | Published | Runs on |
---|---|---|---|
latest/stable | 52 | 23 Sep 2024 | |
latest/candidate | 52 | 23 Sep 2024 | |
latest/beta | 52 | 23 Sep 2024 | |
latest/edge | 54 | 27 Nov 2024 | |
1.0/stable | 44 | 12 Dec 2023 | |
1.0/candidate | 44 | 22 Nov 2023 | |
1.0/beta | 44 | 22 Nov 2023 | |
1.0/edge | 44 | 22 Nov 2023 |
juju deploy prometheus-scrape-config-k8s --channel 1.0/beta
Deploy universal operators easily with Juju, the Universal Operator Lifecycle Manager.
Platform:
20.04
Deployment scenarios
Generally, the prometheus config file (example) has the following form:
Section | Provided by |
---|---|
global |
promethehus |
rule_files |
rules from upstream charms; re-structured by prometheus |
alerting |
alertmanager |
tracing |
(not yet implemented) |
scrape_configs |
upstream charms, prometheus-scrape-config |
The scrape_configs
section is made up of:
Subsection | Provided by |
---|---|
job_name |
upstream charm (optional); topology-prefixed and deduped (consumer side) |
static_configs |
upstream charm |
metrics_path |
upstream charm |
relabel_configs |
upstream charm (optional); topology-adjusted (consumer side) |
scrape_interval |
upstream charm, prometheus-scrape-config |
etc. | upstream charm, prometheus-scrape-config |
This charm updates some values in the scrape_configs
section.
The static_configs
section is made up of:
Sub-subsection | Provided by |
---|---|
targets |
upstream charm (star notation expanded on consumer side) |
labels |
upstream charm |