cortex get <api_name>
command.http://<operator_url>/dashboard
. Run the following command to get the operator URL:kubectl port-forward -n default grafana-0 3000:3000
to forward Grafana's port to your local machine, and access the dashboard on http://localhost:3000 (see instructions for setting up kubectl
here).Dashboards -> Manage -> Cortex folder
.Explore
menu in Grafana and click the Metrics
button./federate
endpoint and push them to monitoring solutions such as Datadog.http://prometheus.default:9090/federate?match[]={job=~".+"}
as the target url to indicate that all metrics should be scraped.patch.yaml
file and add the relevant annotations for your monitoring solution. Below is an example for Datadog. These annotations instruct the Datadog agent to scrape the Prometheus server at the endpoint /federate?match[]={job=~".+"}
and extract cortex_in_flight_requests
. Note that Datadog specifically requires the query params in the Prometheus url to be encoded.patch.yaml
file with your changes to the Prometheus server: