Prometheus scrape target

  • By Leon
Channel Version Revision Published Runs on
latest/candidate 19 19 08 Aug 2022
Ubuntu 20.04
latest/beta 19 19 08 Aug 2022
Ubuntu 20.04
latest/edge 22 22 15 Sep 2022
Ubuntu 20.04
juju deploy prometheus-scrape-target-k8s --channel candidate
Show information

Platform:

Prometheus Scrape Target Operator

Description

The Prometheus Scrape Target operator supports metrics aggregation from applications outside any Juju model. This facilitates using the Canonical Observability Stack even for use cases where the metrics endpoints do not originate from other charmed operators.

Usage

# Deploy prometheus, scrape target charms and relate them
$ juju deploy prometheus-k8s
$ juju deploy prometheus-scrape-target-k8s
$ juju relate prometheus-k8s prometheus-scrape-target-k8s

# Setup http://192.168.5.2:7000 as an external target
juju config prometheus-scrape-target targets="192.168.5.2:7000"

Relations

  • Prometheus The scrape target charm only supports relations with a metrics consumer charm using the metrics-endpoint relation and the prometheus_scrape interface.