prometheus-scrape-config-k8s

Prometheus Scrape Config (K8s)

  • Canonical Observability
Channel Revision Published Runs on
latest/stable 64 13 May 2025
Ubuntu 20.04
latest/candidate 64 13 May 2025
Ubuntu 20.04
latest/beta 64 13 May 2025
Ubuntu 20.04
latest/edge 64 17 Apr 2025
Ubuntu 24.04 Ubuntu 20.04
latest/edge 61 14 Apr 2025
Ubuntu 24.04 Ubuntu 20.04
1/stable 64 14 May 2025
Ubuntu 20.04
1/candidate 64 14 May 2025
Ubuntu 20.04
1/beta 64 14 May 2025
Ubuntu 20.04
1/edge 67 14 May 2025
Ubuntu 20.04
2/edge 68 15 May 2025
Ubuntu 24.04
juju deploy prometheus-scrape-config-k8s --channel 1/stable
Show information

Platform:

Ubuntu
24.04 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