You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: newrelic_v2/README.adoc
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -71,6 +71,22 @@ Replace NEW_RELIC_BEARER_TOKEN with the value of the bearer token you just gener
71
71
Finally, find the "scrape_config" configuration directive where "job_name" is "redis-enterprise".
72
72
Under "static_configs", replace REDIS_ENTERPRISE_HOST with the FQDN or hostname of your Redis Enterprise deployment.
73
73
74
+
Redis reports hundreds of metrics, and depending on the size of your deployment this may require large amounts of storage.
75
+
In order to tailor the stored data to meet minimal requirements we have included an link:./config/except.txt[except file].
76
+
The contents of this file should be used in conjunction with an except clause:
77
+
78
+
```
79
+
transformations:
80
+
- description: "General processing rules"
81
+
ignore_metrics:
82
+
- except:
83
+
- kube_hpa_
84
+
```
85
+
86
+
See the documentation link:https://docs.newrelic.com/docs/infrastructure/prometheus-integrations/install-configure-openmetrics/ignore-or-include-prometheus-metrics/[here]
87
+
if you have further questions.
88
+
89
+
74
90
=== Run a Prometheus Server using Docker
75
91
76
92
If you don't already have a Prometheus server, you can run Prometheus using a Docker container. This container will
Copy file name to clipboardExpand all lines: newrelic_v2/dashboards/newrelic-database.json
+90-15Lines changed: 90 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@
20
20
"id": "viz.markdown"
21
21
},
22
22
"rawConfiguration": {
23
-
"text": "# Database Dashboard\n\n### The various panels can be filtered by both cluster and database by entering those terms in the filter text area. \n\n#### - Click in the text area and wait until it loads the metadata\n#### - Scroll down and select the attribute and value with which you wish to filter\n#### - Choose an individual database -- bdb_name is the attribute -- for the finest granularity\n\n\n### See the following [page](https://redis.io/docs/latest/integrate/prometheus-with-redis-enterprise/prometheus-metrics-definitions/#database-metrics) for the details of the available database metrics. "
23
+
"text": "# Database Dashboard\n\n### The various panels can be filtered by both cluster and database by entering those terms in the filter text area. \n\n#### - Click in the text area and wait until it loads the metadata\n#### - Scroll down and select the attribute and value with which you wish to filter\n#### - Choose an individual database -- db_name is the attribute -- for the finest granularity\n\n\n### See the following [page](https://redis.io/docs/latest/integrate/prometheus-with-redis-enterprise/prometheus-metrics-definitions/#database-metrics) for the details of the available database metrics. "
24
24
}
25
25
},
26
26
{
@@ -44,7 +44,7 @@
44
44
"accountIds": [
45
45
3321735
46
46
],
47
-
"query": "SELECT latest(db_config) as Up FROM Metric FACET cluster as Cluster, db_name as Name, db as Id"
47
+
"query": "SELECT if(latest(db_config) = 1, 'Up', 'Down') as Status FROM Metric FACET substring(cluster, 0, 15) as Cluster, db_name as Name, db as Id"
48
48
}
49
49
],
50
50
"platformOptions": {
@@ -80,7 +80,7 @@
80
80
"accountIds": [
81
81
3321735
82
82
],
83
-
"query": "FROM Metric SELECT percentage(rate(count(*), 1 minute)/100, WHERE metricName = 'namedprocess_namegroup_cpu_seconds_total') SINCE 6 hours ago"
83
+
"query": "SELECT percentage(rate(count(*), 1 minute)/100, WHERE metricName = 'namedprocess_namegroup_cpu_seconds_total') FROM Metric SINCE 1 hour ago"
"query": "SELECT rate(average(namedprocess_namegroup_thread_cpu_seconds_total), 1 minute) FROM Metric WHERE (mode = 'user' OR mode = 'system') AND threadname like 'redis-server%' TIMESERIES 1 MINUTES"
159
173
}
160
174
],
161
175
"platformOptions": {
162
176
"ignoreTimeRange": false
163
177
},
178
+
"thresholds": {
179
+
"isLabelVisible": true
180
+
},
164
181
"units": {
165
182
"unit": "PERCENTAGE"
183
+
},
184
+
"yAxisLeft": {
185
+
"zero": true
186
+
},
187
+
"yAxisRight": {
188
+
"zero": true
166
189
}
167
190
}
168
191
},
@@ -198,7 +221,7 @@
198
221
"accountIds": [
199
222
3321735
200
223
],
201
-
"query": "SELECT latest(endpoint_client_connections)FROM Metric FACET db TIMESERIES 1 MINUTES"
224
+
"query": "SELECT rate(latest(endpoint_client_connections), 5 minutes) FROM Metric FACET db TIMESERIES 5 MINUTES"
202
225
}
203
226
],
204
227
"platformOptions": {
@@ -247,7 +270,7 @@
247
270
"accountIds": [
248
271
3321735
249
272
],
250
-
"query": "SELECT latest(endpoint_write_requests) FROM Metric FACET db TIMESERIES 1 MINUTES"
273
+
"query": "SELECT rate(latest(endpoint_read_requests), 1 minute) + rate(latest(endpoint_write_requests), 1 minute) + rate(latest(endpoint_other_requests), 1 minute) FROM Metric FACET db TIMESERIES 1 MINUTES"
0 commit comments