Skip to content

Commit 4caf4be

Browse files
committed
audit signals for gauges
1 parent 0a8f29c commit 4caf4be

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

redis-enterprise-mixin/signals/databases.libsonnet

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function(this) {
1616
databaseUp: {
1717
name: 'Database up',
1818
nameShort: 'Up',
19-
type: 'raw',
19+
type: 'gauge',
2020
description: 'Displays up/down status for the selected database',
2121
unit: 'none',
2222
sources: {
@@ -29,7 +29,7 @@ function(this) {
2929
shardUp: {
3030
name: 'Shard up',
3131
nameShort: 'Shard up',
32-
type: 'raw',
32+
type: 'gauge',
3333
description: 'Displays up/down status for each shard related to the database',
3434
unit: 'none',
3535
sources: {
@@ -71,7 +71,7 @@ function(this) {
7171
databaseWriteRequests: {
7272
name: 'Database write requests',
7373
nameShort: 'Write requests',
74-
type: 'raw',
74+
type: 'gauge',
7575
description: 'Rate of write requests',
7676
unit: 'none',
7777
sources: {

redis-enterprise-mixin/signals/nodes.libsonnet

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ function(this) {
9595
nodeCPUSystem: {
9696
name: 'Node CPU system',
9797
nameShort: 'CPU system',
98-
type: 'raw',
98+
type: 'gauge',
9999
description: 'System CPU utilization for the selected node',
100100
unit: 'percent',
101101
sources: {
@@ -109,7 +109,7 @@ function(this) {
109109
nodeCPUUser: {
110110
name: 'Node CPU user',
111111
nameShort: 'CPU user',
112-
type: 'raw',
112+
type: 'gauge',
113113
description: 'User CPU utilization for the selected node',
114114
unit: 'percent',
115115
sources: {

redis-enterprise-mixin/signals/overview.libsonnet

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function(this) {
1515
nodeUp: {
1616
name: 'Node up',
1717
nameShort: 'Node up',
18-
type: 'raw',
18+
type: 'gauge',
1919
description: 'Up/down status for each node in the cluster',
2020
unit: 'none',
2121
sources: {
@@ -29,7 +29,7 @@ function(this) {
2929
databaseUp: {
3030
name: 'Database up',
3131
nameShort: 'Database up',
32-
type: 'raw',
32+
type: 'gauge',
3333
description: 'Up/down status for each database in the cluster',
3434
unit: 'none',
3535
sources: {
@@ -43,7 +43,7 @@ function(this) {
4343
shardUp: {
4444
name: 'Shard up',
4545
nameShort: 'Shard up',
46-
type: 'raw',
46+
type: 'gauge',
4747
description: 'Up/down status for each shard in the cluster',
4848
unit: 'none',
4949
sources: {
@@ -128,7 +128,7 @@ function(this) {
128128
clusterEvictedObjects: {
129129
name: 'Cluster evicted objects',
130130
nameShort: 'Evicted objects',
131-
type: 'raw',
131+
type: 'gauge',
132132
description: 'Sum of key evictions in the cluster by database',
133133
unit: 'ops',
134134
sources: {
@@ -142,7 +142,7 @@ function(this) {
142142
clusterExpiredObjects: {
143143
name: 'Cluster expired objects',
144144
nameShort: 'Expired objects',
145-
type: 'raw',
145+
type: 'gauge',
146146
description: 'Sum of key expirations in the cluster by database',
147147
unit: 'ops',
148148
sources: {
@@ -157,12 +157,12 @@ function(this) {
157157
nodeRequests: {
158158
name: 'Node requests',
159159
nameShort: 'Requests',
160-
type: 'raw',
160+
type: 'counter',
161161
description: 'Endpoint request rate for each node in the cluster',
162162
unit: 'reqps',
163163
sources: {
164164
prometheus: {
165-
expr: 'rate(node_total_req{%(queriesSelector)s}[$__rate_interval])',
165+
expr: 'node_total_req{%(queriesSelector)s}',
166166
legendCustomTemplate: '{{ redis_cluster }} - node: {{ node }}',
167167
},
168168
},
@@ -171,7 +171,7 @@ function(this) {
171171
nodeAverageLatency: {
172172
name: 'Node average latency',
173173
nameShort: 'Avg latency',
174-
type: 'raw',
174+
type: 'gauge',
175175
description: 'Average latency for each node in the cluster',
176176
unit: 's',
177177
sources: {
@@ -199,7 +199,7 @@ function(this) {
199199
nodeCPUSystem: {
200200
name: 'Node CPU system',
201201
nameShort: 'CPU system',
202-
type: 'raw',
202+
type: 'gauge',
203203
description: 'System CPU utilization for each node in the cluster',
204204
unit: 'percent',
205205
sources: {
@@ -213,7 +213,7 @@ function(this) {
213213
nodeCPUUser: {
214214
name: 'Node CPU user',
215215
nameShort: 'CPU user',
216-
type: 'raw',
216+
type: 'gauge',
217217
description: 'User CPU utilization for each node in the cluster',
218218
unit: 'percent',
219219
sources: {

0 commit comments

Comments
 (0)