Important: This documentation is about an older version. It's relevant only to the release noted, many of the features and functions have been updated or replaced. Please view the current version.
Overview
GEM supports creating access policies that can span multiple instances. Doing so enables viewers in Grafana Enterprise to view data coming from more than one instance simultaneously. For example, if there were an instance called team-engineering
and an instance called team-finance
, an administrator might want to query metrics from both instances simultaneously.
Prerequisites
A configured Grafana Enterprise Metrics cluster. To create a GEM cluster, refer to Set up GEM.
This guide will assume there are two instances:
team-engineering
andteam-finance
. To create an instance, refer to Set up a GEM Instance.
Set up an access policy with instance federation and a token
To allow queries to span both GEM instances, which are for demonstration purposes named team-engineering
and team-finance
, create a new access policy called leadership
.
team-finance
, create a new access policy called leadership
. The necessary
steps are:
Create a new access policy
leadership
.Enable the
Read
scope.Add the instances
team-engineering
andteam-finance
.Create a new token for the access-policy and store the token in your clipboard:
Set up a Grafana data source using the access policy
Create a new Prometheus data source from the Grafana configuration menu
Enter the URL of your GEM cluster, ie:
http://metrics-enterprise/prometheus
From the Auth section, enable “Basic auth”
In the
User
field, enter:team-engineering|team-finance
where all the instance names you wish to query across are separated by the|
pipe character.In the
Password
field, paste the token created in the token creation process.
Queries performed using this data source in either Explore or inside of
dashboards will be performed across all the instances specified in the User
field, and are processed as if all the data was in a single instance.