Back to Redis

Prometheus Metrics V1 To V2

content/integrate/prometheus-with-redis-enterprise/prometheus-metrics-v1-to-v2.md

latest1.3 KB
Original Source

You can [integrate Redis Software with Prometheus and Grafana]({{<relref "/integrate/prometheus-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:

yaml
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 PromQL metrics, see [Prometheus metrics v2]({{<relref "/integrate/prometheus-with-redis-enterprise/prometheus-metrics-definitions">}}).

{{<embed-md "rs-prometheus-metrics-transition-plan.md">}}