Skip to content

Commit 034a755

Browse files
authored
DOC-5774 RS: Clarify Prometheus config transition from v1 to v2 (#2185)
1 parent c55453e commit 034a755

File tree

6 files changed

+194
-41
lines changed

6 files changed

+194
-41
lines changed

content/embeds/rs-prometheus-grafana-quickstart.md

Lines changed: 79 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -28,48 +28,91 @@ To get started with Prometheus and Grafana:
2828
1. Within that directory, create a configuration file called `prometheus.yml`.
2929
1. Add the following contents to the configuration file and replace `<cluster_name>` with your Redis Enterprise cluster's FQDN:
3030

31+
{{< multitabs id="prometheus-config-yml"
32+
tab1="v2 (metrics stream engine)"
33+
tab2="v1" >}}
34+
35+
```yml
36+
global:
37+
scrape_interval: 15s
38+
evaluation_interval: 15s
39+
40+
# Attach these labels to any time series or alerts when communicating with
41+
# external systems (federation, remote storage, Alertmanager).
42+
external_labels:
43+
monitor: "prometheus-stack-monitor"
44+
45+
# Load and evaluate rules in this file every 'evaluation_interval' seconds.
46+
#rule_files:
47+
# - "first.rules"
48+
# - "second.rules"
49+
50+
scrape_configs:
51+
# scrape Prometheus itself
52+
- job_name: prometheus
53+
scrape_interval: 10s
54+
scrape_timeout: 5s
55+
static_configs:
56+
- targets: ["localhost:9090"]
57+
58+
# scrape Redis Enterprise
59+
- job_name: redis-enterprise
60+
scrape_interval: 30s
61+
scrape_timeout: 30s
62+
metrics_path: /v2
63+
scheme: https
64+
tls_config:
65+
insecure_skip_verify: true
66+
static_configs:
67+
- targets: ["<cluster_name>:8070"]
68+
```
69+
70+
-tab-sep-
71+
72+
```yml
73+
global:
74+
scrape_interval: 15s
75+
evaluation_interval: 15s
76+
77+
# Attach these labels to any time series or alerts when communicating with
78+
# external systems (federation, remote storage, Alertmanager).
79+
external_labels:
80+
monitor: "prometheus-stack-monitor"
81+
82+
# Load and evaluate rules in this file every 'evaluation_interval' seconds.
83+
#rule_files:
84+
# - "first.rules"
85+
# - "second.rules"
86+
87+
scrape_configs:
88+
# scrape Prometheus itself
89+
- job_name: prometheus
90+
scrape_interval: 10s
91+
scrape_timeout: 5s
92+
static_configs:
93+
- targets: ["localhost:9090"]
94+
95+
# scrape Redis Enterprise
96+
- job_name: redis-enterprise
97+
scrape_interval: 30s
98+
scrape_timeout: 30s
99+
metrics_path: /
100+
scheme: https
101+
tls_config:
102+
insecure_skip_verify: true
103+
static_configs:
104+
- targets: ["<cluster_name>:8070"]
105+
```
106+
{{< /multitabs >}}
107+
108+
1. Set up your Prometheus and Grafana servers.
109+
31110
{{< note >}}
32111
33112
We recommend running Prometheus in Docker only for development and testing.
34113
35114
{{< /note >}}
36115
37-
```yml
38-
global:
39-
scrape_interval: 15s
40-
evaluation_interval: 15s
41-
42-
# Attach these labels to any time series or alerts when communicating with
43-
# external systems (federation, remote storage, Alertmanager).
44-
external_labels:
45-
monitor: "prometheus-stack-monitor"
46-
47-
# Load and evaluate rules in this file every 'evaluation_interval' seconds.
48-
#rule_files:
49-
# - "first.rules"
50-
# - "second.rules"
51-
52-
scrape_configs:
53-
# scrape Prometheus itself
54-
- job_name: prometheus
55-
scrape_interval: 10s
56-
scrape_timeout: 5s
57-
static_configs:
58-
- targets: ["localhost:9090"]
59-
60-
# scrape Redis Enterprise
61-
- job_name: redis-enterprise
62-
scrape_interval: 30s
63-
scrape_timeout: 30s
64-
metrics_path: / # For v2, use /v2
65-
scheme: https
66-
tls_config:
67-
insecure_skip_verify: true
68-
static_configs:
69-
- targets: ["<cluster_name>:8070"]
70-
```
71-
72-
1. Set up your Prometheus and Grafana servers.
73116
To set up Prometheus and Grafana on Docker:
74117
1. Create a _docker-compose.yml_ file:
75118

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

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,28 @@ tocEmbedHeaders: true
1616

1717
You can [integrate Redis Enterprise Software with Prometheus and Grafana]({{<relref "/integrate/prometheus-with-redis-enterprise/">}}) to create dashboards for important metrics.
1818

19-
As of Redis Enterprise Software version 7.8.2, [PromQL (Prometheus Query Language)](https://prometheus.io/docs/prometheus/latest/querying/basics/) metrics are available. V1 metrics are deprecated but still available. 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">}}).
19+
As of Redis Enterprise Software version 7.8.2, [PromQL (Prometheus Query Language)](https://prometheus.io/docs/prometheus/latest/querying/basics/) metrics are available. V1 metrics are deprecated but still available.
20+
21+
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.
22+
23+
Here's an example of the updated scraping configuration in `prometheus.yml`:
24+
25+
```yaml
26+
scrape_configs:
27+
# Scrape Redis Enterprise
28+
- job_name: redis-enterprise
29+
scrape_interval: 30s
30+
scrape_timeout: 30s
31+
metrics_path: /v2
32+
scheme: https
33+
tls_config:
34+
insecure_skip_verify: true
35+
static_configs:
36+
- targets: ["<cluster_name>:8070"]
37+
```
38+
39+
It is possible to scrape both v1 and v2 endpoints simultaneously during the transition period to prepare dashboards and ensure a smooth transition.
40+
41+
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">}}).
2042
2143
{{<embed-md "rs-prometheus-metrics-transition-plan.md">}}

content/operate/rs/7.8/monitoring/metrics_stream_engine.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,26 @@ The v2 scraping endpoint also exposes metrics for `node_exporter` version 1.8.1.
3737

3838
## Transition from Prometheus v1 to Prometheus v2
3939

40-
If you are already using the existing scraping endpoint for integration, follow [this guide]({{<relref "/operate/rs/7.8/references/metrics/prometheus-metrics-v1-to-v2">}}) to transition and try the new engine. It is possible to scrape both existing and new endpoints simultaneously, allowing advanced dashboard preparation and a smooth transition.
40+
If you are already using the existing scraping endpoint for integration, do the following to transition from v1 metrics to v2 metrics:
41+
42+
1. Change the `metrics_path` in your Prometheus configuration file from `/` to `/v2` to use the new scraping endpoint.
43+
44+
Here's an example of the updated scraping configuration in `prometheus.yml`:
45+
46+
```yaml
47+
scrape_configs:
48+
# Scrape Redis Enterprise
49+
- job_name: redis-enterprise
50+
scrape_interval: 30s
51+
scrape_timeout: 30s
52+
metrics_path: /v2
53+
scheme: https
54+
tls_config:
55+
insecure_skip_verify: true
56+
static_configs:
57+
- targets: ["<cluster_name>:8070"]
58+
```
59+
60+
1. Use the metrics tables in [this guide]({{<relref "/operate/rs/7.8/references/metrics/prometheus-metrics-v1-to-v2">}}) to transition from v1 metrics to equivalent v2 PromQL.
61+
62+
It is possible to scrape both existing and new endpoints simultaneously, allowing advanced dashboard preparation and a smooth transition.

content/operate/rs/7.8/references/metrics/prometheus-metrics-v1-to-v2.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,28 @@ url: '/operate/rs/7.8/references/metrics/prometheus-metrics-v1-to-v2/'
1717

1818
You can [integrate Redis Enterprise Software with Prometheus and Grafana]({{<relref "/operate/rs/7.8/monitoring/prometheus_and_grafana">}}) to create dashboards for important metrics.
1919

20-
As of Redis Enterprise Software version 7.8.2, [PromQL (Prometheus Query Language)](https://prometheus.io/docs/prometheus/latest/querying/basics/) metrics are available. V1 metrics are deprecated but still available. 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/7.8/references/metrics/prometheus-metrics-v2">}}).
20+
As of Redis Enterprise Software version 7.8.2, [PromQL (Prometheus Query Language)](https://prometheus.io/docs/prometheus/latest/querying/basics/) metrics are available. V1 metrics are deprecated but still available.
21+
22+
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.
23+
24+
Here's an example of the updated scraping configuration in `prometheus.yml`:
25+
26+
```yaml
27+
scrape_configs:
28+
# Scrape Redis Enterprise
29+
- job_name: redis-enterprise
30+
scrape_interval: 30s
31+
scrape_timeout: 30s
32+
metrics_path: /v2
33+
scheme: https
34+
tls_config:
35+
insecure_skip_verify: true
36+
static_configs:
37+
- targets: ["<cluster_name>:8070"]
38+
```
39+
40+
It is possible to scrape both v1 and v2 endpoints simultaneously during the transition period to prepare dashboards and ensure a smooth transition.
41+
42+
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/7.8/references/metrics/prometheus-metrics-v2">}}).
2143
2244
{{<embed-md "rs-prometheus-metrics-transition-plan.md">}}

content/operate/rs/monitoring/metrics_stream_engine.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,26 @@ The v2 scraping endpoint also exposes metrics for `node_exporter` version 1.8.1.
3636

3737
## Transition from Prometheus v1 to Prometheus v2
3838

39-
If you are already using the existing scraping endpoint for integration, follow [this guide]({{<relref "/operate/rs/references/metrics/prometheus-metrics-v1-to-v2">}}) to transition and try the new engine. It is possible to scrape both existing and new endpoints simultaneously, allowing advanced dashboard preparation and a smooth transition.
39+
If you are already using the existing scraping endpoint for integration, do the following to transition from v1 metrics to v2 metrics:
40+
41+
1. Change the `metrics_path` in your Prometheus configuration file from `/` to `/v2` to use the new scraping endpoint.
42+
43+
Here's an example of the updated scraping configuration in `prometheus.yml`:
44+
45+
```yaml
46+
scrape_configs:
47+
# Scrape Redis Enterprise
48+
- job_name: redis-enterprise
49+
scrape_interval: 30s
50+
scrape_timeout: 30s
51+
metrics_path: /v2
52+
scheme: https
53+
tls_config:
54+
insecure_skip_verify: true
55+
static_configs:
56+
- targets: ["<cluster_name>:8070"]
57+
```
58+
59+
1. Use the metrics tables in [this guide]({{<relref "/operate/rs/references/metrics/prometheus-metrics-v1-to-v2">}}) to transition from v1 metrics to equivalent v2 PromQL.
60+
61+
It is possible to scrape both existing and new endpoints simultaneously, allowing advanced dashboard preparation and a smooth transition.

content/operate/rs/references/metrics/prometheus-metrics-v1-to-v2.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,28 @@ tocEmbedHeaders: true
1616

1717
You can [integrate Redis Enterprise Software with Prometheus and Grafana]({{<relref "/operate/rs/monitoring/prometheus_and_grafana">}}) to create dashboards for important metrics.
1818

19-
As of Redis Enterprise Software version 7.8.2, [PromQL (Prometheus Query Language)](https://prometheus.io/docs/prometheus/latest/querying/basics/) metrics are available. V1 metrics are deprecated but still available. 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">}}).
19+
As of Redis Enterprise Software version 7.8.2, [PromQL (Prometheus Query Language)](https://prometheus.io/docs/prometheus/latest/querying/basics/) metrics are available. V1 metrics are deprecated but still available.
20+
21+
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.
22+
23+
Here's an example of the updated scraping configuration in `prometheus.yml`:
24+
25+
```yaml
26+
scrape_configs:
27+
# Scrape Redis Enterprise
28+
- job_name: redis-enterprise
29+
scrape_interval: 30s
30+
scrape_timeout: 30s
31+
metrics_path: /v2
32+
scheme: https
33+
tls_config:
34+
insecure_skip_verify: true
35+
static_configs:
36+
- targets: ["<cluster_name>:8070"]
37+
```
38+
39+
It is possible to scrape both v1 and v2 endpoints simultaneously during the transition period to prepare dashboards and ensure a smooth transition.
40+
41+
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">}}).
2042
2143
{{<embed-md "rs-prometheus-metrics-transition-plan.md">}}

0 commit comments

Comments
 (0)