This guide demonstrates how to export metrics from multiple organizations using the Prometheus /federate
endpoint.
This setup allows you to centralize metrics collection by federating Control Plane metrics into a single external Prometheus instance or service that can collect data using a Prometheus scrape job.
Create a Service Account:
prometheus-federate
.Generate a Key:
prometheus-federate
Service Account and save it securely.Create a Policy:
You can create the policy using either the Control Plane Console UI or by using YAML configuration.
Using the Control Plane Console UI:
prometheus-federate
that grants readMetrics
permission to the Service Account.New +
and fill in the details:
prometheus-federate
prometheus-federate
org
Next (Bindings)
:Add Binding
:
Permissions
tab, check readMetrics
Service Accounts
tab, check prometheus-federate
Add
Create
Using YAML Configuration:
Configure Scrape Job:
${org}
with the actual organization name.${CPLN_SERVICE_ACCOUNT_TOKEN}
is set as an environment variable containing the token from the prometheus-federate
Service Account.match[]
parameter in the scrape configuration to filter the metrics as needed.This guide demonstrates how to export metrics from multiple organizations using the Prometheus /federate
endpoint.
This setup allows you to centralize metrics collection by federating Control Plane metrics into a single external Prometheus instance or service that can collect data using a Prometheus scrape job.
Create a Service Account:
prometheus-federate
.Generate a Key:
prometheus-federate
Service Account and save it securely.Create a Policy:
You can create the policy using either the Control Plane Console UI or by using YAML configuration.
Using the Control Plane Console UI:
prometheus-federate
that grants readMetrics
permission to the Service Account.New +
and fill in the details:
prometheus-federate
prometheus-federate
org
Next (Bindings)
:Add Binding
:
Permissions
tab, check readMetrics
Service Accounts
tab, check prometheus-federate
Add
Create
Using YAML Configuration:
Configure Scrape Job:
${org}
with the actual organization name.${CPLN_SERVICE_ACCOUNT_TOKEN}
is set as an environment variable containing the token from the prometheus-federate
Service Account.match[]
parameter in the scrape configuration to filter the metrics as needed.