content/operate/rs/references/metrics/prometheus-metrics-v1-to-v2.md
You can integrate Redis Software with Prometheus and tools such as [Grafana]({{<relref "/integrate/prometheus-with-redis-enterprise">}}), [Datadog]({{<relref "/integrate/datadog-with-redis-enterprise">}}), [Dynatrace]({{<relref "/integrate/dynatrace-with-redis-enterprise">}}), or [New Relic]({{<relref "/integrate/new-relic-with-redis-enterprise">}}) to create dashboards for important metrics.
As of Redis Software version 7.8.2, PromQL (Prometheus Query Language) metrics are available. V1 metrics are deprecated but still available.
To transition from v1 metrics to v2 metrics, you need to change the metrics_path in your Prometheus configuration file from / to /v2 to use the new scraping endpoint.
Here's an example of the updated scraping configuration in prometheus.yml:
scrape_configs:
# Scrape Redis Software
- job_name: redis-enterprise
scrape_interval: 30s
scrape_timeout: 30s
metrics_path: /v2
scheme: https
tls_config:
insecure_skip_verify: true
static_configs:
- targets: ["<cluster_name>:8070"]
It is possible to scrape both v1 and v2 endpoints simultaneously during the transition period to prepare dashboards and ensure a smooth transition.
You can use the following tables to transition from v1 metrics to equivalent v2 PromQL. For a list of all available v2 metrics, see [Prometheus metrics v2]({{<relref "/operate/rs/references/metrics/prometheus-metrics-v2">}}).
{{<embed-md "rs-prometheus-metrics-transition-plan.md">}}