Grafana agent operator for Kubernetes
Description
Grafana Agent is a telemetry collector for sending metrics, logs, and trace data to the opinionated Grafana observability stack.
Usage
Create a Juju model for your operators, say "lma"
juju add-model lma
The Grafana agent may be deployed using the juju command line:
juju deploy grafana-agent-k8s
If required, you can remove the deployment completely:
juju destroy-model -y lma --no-wait --force --destroy-storage
Relations
Currently supported relations are:
Required relations
- prometheus-remote-write: to be used to push data to a charm exposing the Prometheus
prometheus_remote_write
API. - metrics-endpoint: to be used to integrate with charms that exposes metrics using the
prometheus_scrape
API. - logging: to be used to integrate with a charms that provides a
loki_push_api
interface, for instance the Loki charmed operator. Through this relation, the Grafana agent charm will send labeled log generated by a workload charm.
Provides relations:
- log_proxy: to be used as a log proxy between a workload charm and a charms that provides a
loki_push_api
interface, for instance the Loki charmed operator. When this relation is established, a Promtail binary is injected and configured into the workload charm. This Promtail binary will label and send the logs to this charm which in turn will redirect them to Loki.
OCI Images
This charm by default uses the v0.20.1
release of the grafana/agent