Prometheus Scrape Config (K8s)
Platform:
26.04
24.04
20.04
| Channel | Revision | Published | Runs on |
|---|---|---|---|
| 2/stable | 69 | 13 Nov 2025 | |
| 2/candidate | 73 | Yesterday | |
| 2/beta | 73 | Yesterday | |
| 2/edge | 73 | 17 Jun 2026 | |
| dev/edge | 74 | Yesterday | |
| dev/edge | 70 | 05 Jun 2026 | |
| 1/stable | 67 | 08 Jul 2025 | |
| 1/candidate | 67 | 26 Jun 2025 | |
| 1/beta | 67 | 10 Jun 2025 | |
| 1/edge | 67 | 14 May 2025 |
juju deploy prometheus-scrape-config-k8s --channel 2/stable
Usage
$ juju deploy prometheus-k8s # Deploys Prometheus
$ juju deploy cassandra-k8s # Deploys Cassandra
# Deploys the prometheus-scrape-configuration, specifying a custom scrape interval valid only for the
# scrape job forwarded to prometheus-k8s through its relation with this charm
$ juju deploy prometheus-scrape-configuration-k8s scrape-interval-config --config scrape_interval=20s
# Link cassandra as scrape target, so that Cassandra’s address is used as a
# static_configs in the scrape job
$ juju relate cassandra-k8s scrape-interval-config
$ juju relate scrape-interval-config prometheus-k8s