Skip to content

Commit 161f7dd

Browse files
committed
add suffixes units and metric types
1 parent b58f789 commit 161f7dd

File tree

2 files changed

+96
-52
lines changed

2 files changed

+96
-52
lines changed

packages/gcp/data_stream/redis/elasticsearch/ingest_pipeline/default.yml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,127 +3,127 @@ description: Pipeline for parsing GCP Redis metrics.
33
processors:
44
- rename:
55
field: gcp.metrics.clients.blocked.value
6-
target_field: gcp.redis.clients.blocked
6+
target_field: gcp.redis.clients.blocked.count
77
ignore_missing: true
88
- rename:
99
field: gcp.metrics.clients.connected.value
10-
target_field: gcp.redis.clients.connected
10+
target_field: gcp.redis.clients.connected.count
1111
ignore_missing: true
1212
- rename:
1313
field: gcp.metrics.commands.calls.value
14-
target_field: gcp.redis.commands.calls
14+
target_field: gcp.redis.commands.calls.count
1515
ignore_missing: true
1616
- rename:
1717
field: gcp.metrics.commands.total_time.value
18-
target_field: gcp.redis.commands.total_time
18+
target_field: gcp.redis.commands.total_time.us
1919
ignore_missing: true
2020
- rename:
2121
field: gcp.metrics.commands.usec_per_call.value
22-
target_field: gcp.redis.commands.usec_per_call
22+
target_field: gcp.redis.commands.usec_per_call.sec
2323
ignore_missing: true
2424
- rename:
2525
field: gcp.metrics.keyspace.avg_ttl.value
26-
target_field: gcp.redis.keyspace.avg_ttl
26+
target_field: gcp.redis.keyspace.avg_ttl.sec
2727
ignore_missing: true
2828
- rename:
2929
field: gcp.metrics.keyspace.keys.value
30-
target_field: gcp.redis.keyspace.keys
30+
target_field: gcp.redis.keyspace.keys.count
3131
ignore_missing: true
3232
- rename:
3333
field: gcp.metrics.keyspace.keys_with_expiration.value
34-
target_field: gcp.redis.keyspace.keys_with_expiration
34+
target_field: gcp.redis.keyspace.keys_with_expiration.count
3535
ignore_missing: true
3636
- rename:
3737
field: gcp.metrics.persistence.rdb.bgsave_in_progress.value
3838
target_field: gcp.redis.persistence.rdb.bgsave_in_progress
3939
ignore_missing: true
4040
- rename:
4141
field: gcp.metrics.replication.master.slaves.lag.value
42-
target_field: gcp.redis.replication.master.slaves.lag
42+
target_field: gcp.redis.replication.master.slaves.lag.sec
4343
ignore_missing: true
4444
- rename:
4545
field: gcp.metrics.replication.master.slaves.offset.value
46-
target_field: gcp.redis.replication.master.slaves.offset
46+
target_field: gcp.redis.replication.master.slaves.offset.bytes
4747
ignore_missing: true
4848
- rename:
4949
field: gcp.metrics.replication.master_repl_offset.value
50-
target_field: gcp.redis.replication.master_repl_offset
50+
target_field: gcp.redis.replication.master_repl_offset.bytes
5151
ignore_missing: true
5252
- rename:
5353
field: gcp.metrics.replication.offset_diff.value
54-
target_field: gcp.redis.replication.offset_diff
54+
target_field: gcp.redis.replication.offset_diff.bytes
5555
ignore_missing: true
5656
- rename:
5757
field: gcp.metrics.replication.role.value
5858
target_field: gcp.redis.replication.role
5959
ignore_missing: true
6060
- rename:
6161
field: gcp.metrics.server.uptime.value
62-
target_field: gcp.redis.server.uptime
62+
target_field: gcp.redis.server.uptime.sec
6363
ignore_missing: true
6464
- rename:
6565
field: gcp.metrics.stats.cache_hit_ratio.value
6666
target_field: gcp.redis.stats.cache_hit_ratio
6767
ignore_missing: true
6868
- rename:
6969
field: gcp.metrics.stats.connections.total.value
70-
target_field: gcp.redis.stats.connections.total
70+
target_field: gcp.redis.stats.connections.total.count
7171
ignore_missing: true
7272
- rename:
7373
field: gcp.metrics.stats.cpu_utilization.value
74-
target_field: gcp.redis.stats.cpu_utilization
74+
target_field: gcp.redis.stats.cpu_utilization.sec
7575
ignore_missing: true
7676
- rename:
7777
field: gcp.metrics.stats.evicted_keys.value
78-
target_field: gcp.redis.stats.evicted_keys
78+
target_field: gcp.redis.stats.evicted_keys.count
7979
ignore_missing: true
8080
- rename:
8181
field: gcp.metrics.stats.expired_keys.value
82-
target_field: gcp.redis.stats.expired_keys
82+
target_field: gcp.redis.stats.expired_keys.count
8383
ignore_missing: true
8484
- rename:
8585
field: gcp.metrics.stats.keyspace_hits.value
86-
target_field: gcp.redis.stats.keyspace_hits
86+
target_field: gcp.redis.stats.keyspace_hits.count
8787
ignore_missing: true
8888
- rename:
8989
field: gcp.metrics.stats.keyspace_misses.value
90-
target_field: gcp.redis.stats.keyspace_misses
90+
target_field: gcp.redis.stats.keyspace_misses.count
9191
ignore_missing: true
9292
- rename:
9393
field: gcp.metrics.stats.memory.maxmemory.value
94-
target_field: gcp.redis.stats.memory.maxmemory
94+
target_field: gcp.redis.stats.memory.maxmemory.mb
9595
ignore_missing: true
9696
- rename:
9797
field: gcp.metrics.stats.memory.system_memory_overload_duration.value
98-
target_field: gcp.redis.stats.memory.system_memory_overload_duration
98+
target_field: gcp.redis.stats.memory.system_memory_overload_duration.us
9999
ignore_missing: true
100100
- rename:
101101
field: gcp.metrics.stats.memory.system_memory_usage_ratio.value
102102
target_field: gcp.redis.stats.memory.system_memory_usage_ratio
103103
ignore_missing: true
104104
- rename:
105105
field: gcp.metrics.stats.memory.usage.value
106-
target_field: gcp.redis.stats.memory.usage
106+
target_field: gcp.redis.stats.memory.usage.bytes
107107
ignore_missing: true
108108
- rename:
109109
field: gcp.metrics.stats.memory.usage_ratio.value
110110
target_field: gcp.redis.stats.memory.usage_ratio
111111
ignore_missing: true
112112
- rename:
113113
field: gcp.metrics.stats.network_traffic.value
114-
target_field: gcp.redis.stats.network_traffic
114+
target_field: gcp.redis.stats.network_traffic.bytes
115115
ignore_missing: true
116116
- rename:
117117
field: gcp.metrics.stats.pubsub.channels.value
118-
target_field: gcp.redis.stats.pubsub.channels
118+
target_field: gcp.redis.stats.pubsub.channels.count
119119
ignore_missing: true
120120
- rename:
121121
field: gcp.metrics.stats.pubsub.patterns.value
122-
target_field: gcp.redis.stats.pubsub.patterns
122+
target_field: gcp.redis.stats.pubsub.patterns.count
123123
ignore_missing: true
124124
- rename:
125125
field: gcp.metrics.stats.reject_connections_count.value
126-
target_field: gcp.redis.stats.reject_connections_count
126+
target_field: gcp.redis.stats.reject_connections.count
127127
ignore_missing: true
128128
on_failure:
129129
- set:

packages/gcp/data_stream/redis/fields/fields.yml

Lines changed: 70 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,96 +2,140 @@
22
description: Google Cloud Redis metrics
33
type: group
44
fields:
5-
- name: clients.blocked
5+
- name: clients.blocked.count
66
type: long
7+
metric_type: gauge
78
description: Number of blocked clients.
8-
- name: clients.connected
9+
- name: clients.connected.count
910
type: long
11+
metric_type: gauge
1012
description: Number of client connections.
11-
- name: commands.calls
13+
- name: commands.calls.count
1214
type: long
15+
metric_type: counter
1316
description: Total number of calls for this command in one minute.
14-
- name: commands.total_time
17+
- name: commands.total_time.us
1518
type: long
19+
unit: micros
20+
metric_type: counter
1621
description: The amount of time in microseconds that this command took in the last second.
17-
- name: commands.usec_per_call
22+
- name: commands.usec_per_call.sec
1823
type: double
24+
unit: s
25+
metric_type: gauge
1926
description: Average time per call over 1 minute by command.
20-
- name: keyspace.avg_ttl
27+
- name: keyspace.avg_ttl.sec
2128
type: double
29+
unit: s
30+
metric_type: gauge
2231
description: Average TTL for keys in this database.
23-
- name: keyspace.keys
32+
- name: keyspace.keys.count
2433
type: long
34+
metric_type: gauge
2535
description: Number of keys stored in this database.
26-
- name: keyspace.keys_with_expiration
36+
- name: keyspace.keys_with_expiration.count
2737
type: long
38+
metric_type: gauge
2839
description: Number of keys with an expiration in this database.
2940
- name: persistence.rdb.bgsave_in_progress
3041
type: boolean
42+
metric_type: gauge
3143
description: Flag indicating a RDB save is on-going.
32-
- name: replication.master.slaves.lag
44+
- name: replication.master.slaves.lag.sec
3345
type: long
46+
unit: s
47+
metric_type: gauge
3448
description: The number of seconds that replica is lagging behind primary.
35-
- name: replication.master.slaves.offset
49+
- name: replication.master.slaves.offset.bytes
3650
type: long
51+
unit: byte
52+
metric_type: gauge
3753
description: The number of bytes that have been acknowledged by replicas.
38-
- name: replication.master_repl_offset
54+
- name: replication.master_repl_offset.bytes
3955
type: long
56+
unit: byte
57+
metric_type: gauge
4058
description: The number of bytes that master has produced and sent to replicas.
41-
- name: replication.offset_diff
59+
- name: replication.offset_diff.bytes
4260
type: long
61+
unit: byte
62+
metric_type: gauge
4363
description: The largest number of bytes that have not been replicated across all replicas. This is the biggest difference between replication byte offset (master) and replication byte offset (replica) of all replicas.
4464
- name: replication.role
4565
type: long
66+
metric_type: gauge
4667
description: Returns a value indicating the node role. 1 indicates primary and 0 indicates replica.
47-
- name: server.uptime
68+
- name: server.uptime.sec
4869
type: long
70+
unit: s
71+
metric_type: gauge
4972
description: Uptime in seconds.
5073
- name: stats.cache_hit_ratio
5174
type: double
75+
metric_type: gauge
5276
description: Cache Hit ratio as a fraction.
53-
- name: stats.connections.total
77+
- name: stats.connections.total.count
5478
type: long
79+
metric_type: counter
5580
description: Total number of connections accepted by the server.
56-
- name: stats.cpu_utilization
81+
- name: stats.cpu_utilization.sec
5782
type: double
83+
unit: s
84+
metric_type: gauge
5885
description: CPU-seconds consumed by the Redis server, broken down by system/user space and parent/child relationship.
59-
- name: stats.evicted_keys
86+
- name: stats.evicted_keys.count
6087
type: long
88+
metric_type: counter
6189
description: Number of evicted keys due to maxmemory limit.
62-
- name: stats.expired_keys
90+
- name: stats.expired_keys.count
6391
type: long
92+
metric_type: counter
6493
description: Total number of key expiration events.
65-
- name: stats.keyspace_hits
94+
- name: stats.keyspace_hits.count
6695
type: long
96+
metric_type: counter
6797
description: Number of successful lookup of keys in the main dictionary.
68-
- name: stats.keyspace_misses
98+
- name: stats.keyspace_misses.count
6999
type: long
100+
metric_type: counter
70101
description: Number of failed lookup of keys in the main dictionary.
71-
- name: stats.memory.maxmemory
102+
- name: stats.memory.maxmemory.mb
72103
type: long
104+
unit: m
105+
metric_type: gauge
73106
description: Maximum amount of memory Redis can consume.
74-
- name: stats.memory.system_memory_overload_duration
107+
- name: stats.memory.system_memory_overload_duration.us
75108
type: long
109+
unit: micros
110+
metric_type: gauge
76111
description: The amount of time in microseconds the instance is in system memory overload mode.
77112
- name: stats.memory.system_memory_usage_ratio
78113
type: double
114+
metric_type: gauge
79115
description: Memory usage as a ratio of maximum system memory.
80-
- name: stats.memory.usage
116+
- name: stats.memory.usage.bytes
81117
type: long
118+
unit: byte
119+
metric_type: gauge
82120
description: Total number of bytes allocated by Redis.
83121
- name: stats.memory.usage_ratio
84122
type: double
123+
metric_type: gauge
85124
description: Memory usage as a ratio of maximum memory.
86-
- name: stats.network_traffic
125+
- name: stats.network_traffic.bytes
87126
type: long
127+
unit: byte
128+
metric_type: counter
88129
description: Total number of bytes sent to/from redis (includes bytes from commands themselves, payload data, and delimiters).
89-
- name: stats.pubsub.channels
130+
- name: stats.pubsub.channels.count
90131
type: long
132+
metric_type: gauge
91133
description: Global number of pub/sub channels with client subscriptions.
92-
- name: stats.pubsub.patterns
134+
- name: stats.pubsub.patterns.count
93135
type: long
136+
metric_type: gauge
94137
description: Global number of pub/sub pattern with client subscriptions.
95-
- name: stats.reject_connections_count
138+
- name: stats.reject_connections.count
96139
type: long
140+
metric_type: gauge
97141
description: Number of connections rejected because of maxclients limit.

0 commit comments

Comments
 (0)