Data Destinations Grafana Cloud Integration
Prerequisites
- Have an active Grafana Cloud account.
Pulling your Grafana Cloud API Key or Access Policy / Token
Grafana Cloud migrated from API Keys to Access Policies. It depends on your Grafana Cloud version the information that you need to share with us.
Only Grafana administrators can create or delete API Keys and Access Policies. See Grafana Cloud roles and permissions for more information.
Access Policy/Token
- Log into your Grafana Cloud account to access the Cloud Portal.
- Select the organization that you want to add an Access Policy Token to, by selecting from the dropdown in top left.
- Click Access Policies from the SECURITY section on the left.
- Click Create Access Policy.
- In Display Name and Name, enter a name for your Access Policy.
- In Realms, choose the organization in which you want the metrics.
- In Scopes, select
write
for Metrics, Logs and Traces. (this only gives permission to send metric, log and trace data to Grafana Cloud). - In Add Scope, choose
api-keys-metrics-publisher
. - Click Create when finished.
- Click Add token to generate it associated with the access policy.
- In Token Name, enter a name for the token.
- In Expiration Date, select
No expiry
.
API Key
- Log into your Grafana Cloud account to access the Cloud Portal.
- Select the organization that you want to add an API key to, by selecting from the dropdown in top left.
- Click API Keys from the SECURITY section on the left.
- Click +Add API Key.
- In API Key Name, enter a name for your API key.
- In Role, select
MetricsPublisher
(is only given permission to send metric, log, and trace data to Grafana Cloud). - Click Create API Key.
- A token is created and displayed. Copy the token and store it in a safe place, because it will not be displayed again.
- Share the token with an Embrace onboarding specialist.
- Click Close when finished.
Pulling your Instance ID and Zone
- Log into your Grafana Cloud account to access the Cloud Portal.
- Select the organization you want the instance ID and zone, by selecting from the dropdown in the top left.
- Click Details from the Grafana stack and copy the instance ID and zone.
- Share the instance ID and zone with an Embrace onboarding specialist.
Selecting the Correct Data Source for Embrace Metrics
If you are using the Embrace Metrics API, ensure that you configure Grafana to treat the Embrace Metrics API as a data source, rather than setting up your own Prometheus instance. You can reference this guide.
Embrace provides two main options for viwing metrics within Grafana: using the Embrace Metrics API (pull method) or setting up a Data Destination (push method).
For Data Distination ensure that you are selecting the correct prometheus datasource. Ex:
Embrace Metrics API vs. Data Destination
-
Embrace Metrics API: Alternatively, you can configure Grafana to pull metrics from Embrace using PromQL queries via the Embrace Metrics API. However, this method requires Grafana to be set up with the Embrace API as a data source and is typically only used if you have specific requirements for on-demand metrics retrieval.
-
Data Destination: Embrace can push metrics directly to your Grafana Cloud instance as a data destination. This setup leverages Grafana Cloud's managed Prometheus services, enabling seamless integration without the need for an additional Prometheus instance. This method is ideal for most users who prefer a simple, automated approach to access Embrace metrics within Grafana Cloud.