Prometheus Scrape Config (K8s)

  • By Canonical Observability
Channel Revision Published Runs on
latest/stable 51 21 Jun 2024
Ubuntu 20.04
latest/candidate 51 04 Jun 2024
Ubuntu 20.04
latest/beta 51 22 May 2024
Ubuntu 20.04
latest/edge 51 30 Apr 2024
Ubuntu 20.04
1.0/stable 44 12 Dec 2023
Ubuntu 20.04
1.0/candidate 44 22 Nov 2023
Ubuntu 20.04
1.0/beta 44 22 Nov 2023
Ubuntu 20.04
1.0/edge 44 22 Nov 2023
Ubuntu 20.04
juju deploy prometheus-scrape-config-k8s
Show information

Platform:

Ubuntu
20.04

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

Help improve this document in the forum (guidelines). Last updated 1 year, 11 months ago.