Grafana Cloud Integrator

  • By Canonical Observability
Channel Revision Published Runs on
latest/stable 8 22 Nov 2023
Ubuntu 20.04
latest/candidate 8 22 Nov 2023
Ubuntu 20.04
latest/beta 8 22 Nov 2023
Ubuntu 20.04
latest/edge 22 16 Aug 2024
Ubuntu 22.04 Ubuntu 20.04
latest/edge 21 16 Aug 2024
Ubuntu 22.04 Ubuntu 20.04
latest/edge 18 23 Jul 2024
Ubuntu 22.04 Ubuntu 20.04
latest/edge 17 23 Jul 2024
Ubuntu 22.04 Ubuntu 20.04
juju deploy grafana-cloud-integrator --channel edge
Show information

Platform:

Ubuntu
22.04 20.04

The grafana-cloud-integrator charm can be configured to forward telemetry to not only Grafana cloud, but also to any Prometheus- (or Loki-) compatible endpoint. This is generally useful when running the stack on-premise isn’t desired, or when an additional off-premise storage is used for redundancy.

MetricBeat is an Elasticsearch component that collects and ships metrics; it can be used as an intermediary to ship metrics to an Elastic cloud.

Using the grafana-cloud-integrator charm, we can have grafana-agent send metrics to MetricBeat with a simple setup!

Deployment scenario and setup configuration

You’ll need to have the grafana-agent machine charm up and running, with a subordinate relation to the charm you’re observing. If you don’t know how, you can find more information on the linked charm’s documentation.

When setting up MetricBeat, you should configure it to expose a Prometheus’ remote-write endpoint; as shown in the docs, this is achieved by enabling the prometheus module and modifying it to enable the remote write endpoint (e.g, http://10.0.1.123:9201/write).

Once that is set up, you’ll simply need to deploy grafana-cloud-integrator, configure the aforementioned endpoint in the charm, and relate it to grafana-agent:

juju deploy grafana-cloud-integrator
juju config grafana-cloud-integrator prometheus-url=http://10.0.1.123:9201/write

juju relate grafana-agent:grafana-cloud-config grafana-cloud-integrator

The metrics will then start to seamlessly appear in your Elastic cloud!


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