Skip to content

canonical/prometheus-scrape-target-k8s-operator

Repository files navigation

Prometheus Scrape Target Operator

CharmHub Badge Release Discourse Status

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.