Grafana Cloud Prometheus
You can use Grafana Cloud managed service as a backend for Odigos to store your logs, metrics, and traces. This page describes how to configure Odigos to use Grafana Cloud Prometheus as a metrics backend.
Notice: these instructions are for the Grafan cloud managed Prometheus service. If you run a self hosted Prometheus instance, please follow the instructions in the Prometheus page.
All the connection details can be found at grafana.com under My Account
Then, under the “GRAFANA CLOUD” title, select your Grafana Stuck, browser to the “Prometheus” card and click “Send Metrics”
Connection Settings
To send metrics to Grafana Cloud Prometheus, you need to configure the following settings:
- Prometheus Remote Write Endpoint - This is the URL of the Prometheus service.
From the grafana cloud UI, Prometheus page, make sure you copy the URL from “Remote Write Endpoint” section,
and not the first Endpoint which is used for queries.
This url should look like:
https://{hostname}.grafana.net/api/prom/push
(path should be/api/prom/push
) - Username / Instance ID - You can find the prometheus page. The username is a number.
- Password - This field is refered to as “password” or “Grafana.com API Token” in the Grafana Cloud UI. You can manage tokens in your “Account Settings” page under the “SECURITY” section in the “Access Policies” page. Make sure your token scope includes “metrics:write” scope.
Resource Attributes as Metrics Labels
To use resource attributes as labels in your data points,
you can set the resource attribute names in the Resource Attributes as Labels
multi-input config option in the destination page in the Odigos UI.
Cluster Static Labels
You can set static labels for each metric data pointsent exported to Grafana Cloud Prometheus from the cluster by setting the External Labels
configuration with lable keys and values.
Adding a Destination to Odigos
Odigos makes it simple to add and configure destinations, allowing you to select the specific signals [traces/logs/metrics] that you want to send to each destination. There are two primary methods for configuring destinations in Odigos:
- Using the UI
To add a destination via the UI, follow these steps:- Use the Odigos CLI to access the UI: Odigos UI
-
In the left sidebar, navigate to the
Destination
page. -
Click
Add New Destination
-
Select
Grafana Cloud Prometheus
and follow the on-screen instructions.
- Using kubernetes manifests
Save the YAML below to a file (e.g., destination.yaml
) and apply it using kubectl
: