---
title: Charmhub | Deploy Grafana Cloud Integrator using Charmhub - The Open Operator
  Collection
description: Deploy the latest version of Grafana Cloud Integrator on any cloud.
url: https://charmhub.io/grafana-cloud-integrator/docs/metricbeat
---

# Grafana Cloud Integrator

[Canonical Observability](https://charmhub.io/publisher/observability "View all packages from Canonical Observability")

* [Canonical Observability](https://charmhub.io/publisher/observability "View all packages from Canonical Observability")

Platform:

26.04

24.04

22.04

20.04

3.0/stable rev62-1-gbbf9604

```
juju deploy grafana-cloud-integrator --channel 3.0/stable
```

[Learn to deploy on juju >](https://juju.is/docs/juju/manage-applications)

---

#### Relevant links

* [Homepage](https://charmhub.io/grafana-cloud-integrator)

---

#### Contacts

* [Submit a bug](https://github.com/canonical/grafana-cloud-integrator/issues)

---

Share your thoughts on this charm with the community on discourse.

[Join the discussion](https://discourse.charmhub.io/)

The [**grafana-cloud-integrator**](https://github.com/canonical/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](https://charmhub.io/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](https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-metricset-prometheus-remote_write.html); 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!

---
