Prometheus
Last updated
Last updated
is an open-source monitoring and analytics platform that allows customers to analyze, visualize, automate, and alert on metrics data.
Integrating Cortex with Prometheus allows you to:
from Prometheus on entity pages in Cortex
Create that track progress and drive alignment on projects involving Prometheus SLOs
There are two options for integrating Prometheus: the default configuration method and Cortex Axon Relay, a relay broker allows you to securely connect your on-premises Prometheus data.
Before getting started, set up credentials in Prometheus.
In Cortex, navigate to the :
In Cortex, click your avatar in the lower left corner, then click Settings.
Under "Integrations", click Prometheus.
Click Add integration.
Configure the Prometheus integration form:
Account alias: Enter your account alias.
Username and Password: Enter your Prometheus basic auth credentials.
Host: Enter your self-managed Prometheus hostname.
Tenant ID: Optionally, enter your tenant ID.
If you have multiple tenants, you can enter an ID here to monitor a specific tenant.
Click Save.
The Prometheus integration has multi-account support. You can add a configuration for each additional by repeating the process above.
Each configuration requires an alias, which Cortex uses to correlate the designated with registrations for various entities. Registrations can also use a default configuration without a listed alias. You can edit aliases and default configurations from the Prometheus page in your Cortex settings. Select the edit icon next to a given configuration and toggle Set as default on. If you only have one configuration, it will automatically be set as the default.
You can create and manage SLOs by listing relevant SLIs through queries.
errorQuery
Query that indicates error events for your metric.
totalQuery
Query that indicates all events to be considered for your metric.
slo
Target number for SLO.
alias
Ties the SLO registration to a Prometheus instance listed under Settings → Prometheus. The alias parameter is optional, but if not provided the SLO will use the default configuration under Settings → Prometheus.
name
The SLO's name in Prometheus. The name parameter is optional.
When Cortex gets an SLO from Prometheus, the following query is calculated for it:
This value is calculated and resolved on an hour window, and calculated back for 7 days. Cortex averages the value for each 1-hour window, then averages each of those hourly averages across the lookback period, before displaying it in your Cortex workspace.
The value is updated when the entity page is loaded and when Scorecards are evaluated.
With the Prometheus integration, you can create Scorecard rules and write CQL queries based on Prometheus SLOs.
The following options are available to get assistance from the Cortex Customer Engineering team:
Chat: Available in the Resource Center
Slack: Users with a connected Slack channel will have a workflow added to their account. From here, you can either @CortexTechnicalSupport or add a :ticket:
reaction to a question in Slack, and the team will respond directly.
Don’t have a Slack channel? Talk with your Customer Success Manager.
Configure the integration for multiple Prometheus accounts
When an SLO is defined in an entity's descriptor, you'll see detailed data about SLOs in the Monitoring page in the sidebar of an . See the SLO query, target(s), and the current value for each SLO.
See more examples in the in Cortex.
Email: , or open a support ticket in the in app Resource Center