forked from Technofy/cloudwatch_exporter
-
Notifications
You must be signed in to change notification settings - Fork 86
/
metrics.go
254 lines (253 loc) · 8.58 KB
/
metrics.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
package basic
var Metrics = []Metric{
{
cwName: "ActiveTransactions",
prometheusName: "aws_rds_active_transactions_average",
prometheusHelp: "ActiveTransactions",
},
{
cwName: "AuroraBinlogReplicaLag",
prometheusName: "aws_rds_aurora_binlog_replica_lag_average",
prometheusHelp: "AuroraBinlogReplicaLag",
},
{
cwName: "AuroraReplicaLag",
prometheusName: "aws_rds_aurora_replica_lag_average",
prometheusHelp: "AuroraReplicaLag",
},
{
cwName: "AuroraReplicaLagMaximum",
prometheusName: "aws_rds_aurora_replica_lag_maximum_average",
prometheusHelp: "AuroraReplicaLagMaximum",
},
{
cwName: "AuroraReplicaLagMinimum",
prometheusName: "aws_rds_aurora_replica_lag_minimum_average",
prometheusHelp: "AuroraReplicaLagMinimum",
},
{
cwName: "BinLogDiskUsage",
prometheusName: "aws_rds_bin_log_disk_usage_average",
prometheusHelp: "The amount of disk space occupied by binary logs on the master. Applies to MySQL read replicas. Units: Bytes",
},
{
cwName: "BlockedTransactions",
prometheusName: "aws_rds_blocked_transactions_average",
prometheusHelp: "BlockedTransactions",
},
{
cwName: "BufferCacheHitRatio",
prometheusName: "aws_rds_buffer_cache_hit_ratio_average",
prometheusHelp: "BufferCacheHitRatio",
},
{
cwName: "BurstBalance",
prometheusName: "aws_rds_burst_balance_average",
prometheusHelp: "The percent of General Purpose SSD (gp2) burst-bucket I/O credits available. Units: Percent",
},
{
cwName: "CPUCreditBalance",
prometheusName: "aws_rds_cpu_credit_balance_average",
prometheusHelp: "[T2 instances] The number of CPU credits available for the instance to burst beyond its base CPU utilization. Credits are stored in the credit balance after they are earned and removed from the credit balance after they expire. Credits expire 24 hours after they are earned. CPU credit metrics are available only at a 5 minute frequency. Units: Count",
},
{
cwName: "CPUCreditUsage",
prometheusName: "aws_rds_cpu_credit_usage_average",
prometheusHelp: "[T2 instances] The number of CPU credits consumed by the instance. One CPU credit equals one vCPU running at 100% utilization for one minute or an equivalent combination of vCPUs, utilization, and time (for example, one vCPU running at 50% utilization for two minutes or two vCPUs running at 25% utilization for two minutes). CPU credit metrics are available only at a 5 minute frequency. If you specify a period greater than five minutes, use the Sum statistic instead of the Average statistic. Units: Count",
},
{
cwName: "CPUUtilization",
prometheusName: "node_cpu_average",
prometheusHelp: "The percentage of CPU utilization. Units: Percent",
},
{
cwName: "CommitLatency",
prometheusName: "aws_rds_commit_latency_average",
prometheusHelp: "CommitLatency",
},
{
cwName: "CommitThroughput",
prometheusName: "aws_rds_commit_throughput_average",
prometheusHelp: "CommitThroughput",
},
{
cwName: "DDLLatency",
prometheusName: "aws_rds_ddl_latency_average",
prometheusHelp: "DDLLatency",
},
{
cwName: "DDLThroughput",
prometheusName: "aws_rds_ddl_throughput_average",
prometheusHelp: "DDLThroughput",
},
{
cwName: "DMLLatency",
prometheusName: "aws_rds_dml_latency_average",
prometheusHelp: "DMLLatency",
},
{
cwName: "DMLThroughput",
prometheusName: "aws_rds_dml_throughput_average",
prometheusHelp: "DMLThroughput",
},
{
cwName: "DatabaseConnections",
prometheusName: "aws_rds_database_connections_average",
prometheusHelp: "The number of database connections in use. Units: Count",
},
{
cwName: "Deadlocks",
prometheusName: "aws_rds_deadlocks_average",
prometheusHelp: "Deadlocks",
},
{
cwName: "DeleteLatency",
prometheusName: "aws_rds_delete_latency_average",
prometheusHelp: "DeleteLatency",
},
{
cwName: "DeleteThroughput",
prometheusName: "aws_rds_delete_throughput_average",
prometheusHelp: "DeleteThroughput",
},
{
cwName: "DiskQueueDepth",
prometheusName: "aws_rds_disk_queue_depth_average",
prometheusHelp: "The number of outstanding IOs (read/write requests) waiting to access the disk. Units: Count",
},
{
cwName: "EngineUptime",
prometheusName: "node_boot_time_seconds",
prometheusHelp: "EngineUptime",
},
{
cwName: "FreeLocalStorage",
prometheusName: "aws_rds_free_local_storage_average",
prometheusHelp: "FreeLocalStorage",
},
{
cwName: "FreeStorageSpace",
prometheusName: "node_filesystem_free_bytes",
prometheusHelp: "The amount of available storage space. Units: Bytes",
},
{
cwName: "FreeableMemory",
prometheusName: "node_memory_Cached_bytes",
prometheusHelp: "The amount of available random access memory. Units: Bytes",
},
{
cwName: "InsertLatency",
prometheusName: "aws_rds_insert_latency_average",
prometheusHelp: "InsertLatency",
},
{
cwName: "InsertThroughput",
prometheusName: "aws_rds_insert_throughput_average",
prometheusHelp: "InsertThroughput",
},
{
cwName: "LoginFailures",
prometheusName: "aws_rds_login_failures_average",
prometheusHelp: "LoginFailures",
},
{
cwName: "NetworkReceiveThroughput",
prometheusName: "aws_rds_network_receive_throughput_average",
prometheusHelp: "The incoming (Receive) network traffic on the DB instance, including both customer database traffic and Amazon RDS traffic used for monitoring and replication. Units: Bytes/second",
},
{
cwName: "NetworkThroughput",
prometheusName: "aws_rds_network_throughput_average",
prometheusHelp: "NetworkThroughput",
},
{
cwName: "NetworkTransmitThroughput",
prometheusName: "aws_rds_network_transmit_throughput_average",
prometheusHelp: "The outgoing (Transmit) network traffic on the DB instance, including both customer database traffic and Amazon RDS traffic used for monitoring and replication. Units: Bytes/second",
},
{
cwName: "Queries",
prometheusName: "aws_rds_queries_average",
prometheusHelp: "Queries",
},
{
cwName: "ReadIOPS",
prometheusName: "aws_rds_read_iops_average",
prometheusHelp: "The average number of disk I/O operations per second. Units: Count/Second",
},
{
cwName: "ReadLatency",
prometheusName: "aws_rds_read_latency_average",
prometheusHelp: "The average amount of time taken per disk I/O operation. Units: Seconds",
},
{
cwName: "ReadThroughput",
prometheusName: "aws_rds_read_throughput_average",
prometheusHelp: "The average number of bytes read from disk per second. Units: Bytes/Second",
},
{
cwName: "ResultSetCacheHitRatio",
prometheusName: "aws_rds_result_set_cache_hit_ratio_average",
prometheusHelp: "ResultSetCacheHitRatio",
},
{
cwName: "SelectLatency",
prometheusName: "aws_rds_select_latency_average",
prometheusHelp: "SelectLatency",
},
{
cwName: "SelectThroughput",
prometheusName: "aws_rds_select_throughput_average",
prometheusHelp: "SelectThroughput",
},
{
cwName: "SwapUsage",
prometheusName: "aws_rds_swap_usage_average",
prometheusHelp: "The amount of swap space used on the DB instance. Units: Bytes",
},
{
cwName: "UpdateLatency",
prometheusName: "aws_rds_update_latency_average",
prometheusHelp: "UpdateLatency",
},
{
cwName: "UpdateThroughput",
prometheusName: "aws_rds_update_throughput_average",
prometheusHelp: "UpdateThroughput",
},
{
cwName: "VolumeBytesUsed",
prometheusName: "aws_rds_volume_bytes_used_average",
prometheusHelp: "VolumeBytesUsed",
},
{
cwName: "VolumeReadIOPs",
prometheusName: "aws_rds_volume_read_io_ps_average",
prometheusHelp: "VolumeReadIOPs",
},
{
cwName: "VolumeWriteIOPs",
prometheusName: "aws_rds_volume_write_io_ps_average",
prometheusHelp: "VolumeWriteIOPs",
},
{
cwName: "WriteIOPS",
prometheusName: "aws_rds_write_iops_average",
prometheusHelp: "The average number of disk I/O operations per second. Units: Count/Second",
},
{
cwName: "WriteLatency",
prometheusName: "aws_rds_write_latency_average",
prometheusHelp: "The average amount of time taken per disk I/O operation. Units: Seconds",
},
{
cwName: "WriteThroughput",
prometheusName: "aws_rds_write_throughput_average",
prometheusHelp: "The average number of bytes written to disk per second. Units: Bytes/Second",
},
{
cwName: "ReplicaLag",
prometheusName: "aws_rds_replica_lag",
prometheusHelp: "The amount of time a read replica DB instance lags behind the source DB instance. Unit: Seconds",
},
}