-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.yaml
228 lines (228 loc) · 6.19 KB
/
configuration.yaml
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
# yaml-language-server: $schema=https://raw.githubusercontent.com/hasura/ndc-prometheus/main/jsonschema/configuration.json
connection_settings:
url:
env: CONNECTION_URL
authentication:
basic:
username:
env: PROMETHEUS_USERNAME
password:
env: PROMETHEUS_PASSWORD
generator:
metrics:
enabled: true
behavior: merge
include: []
exclude:
- ^prometheus_+
- ^go_+
- ^node_+
exclude_labels:
- pattern: ^net_.+
labels:
- dialer_name
start_at: 2024-09-01T00:00:00Z
metadata:
metrics:
http_client_duration_milliseconds:
type: histogram
description: Measures the duration of outbound HTTP requests.
labels:
http_method: {}
http_status_code: {}
instance: {}
job: {}
net_peer_name: {}
net_peer_port: {}
otel_scope_name: {}
otel_scope_version: {}
http_client_request_size_bytes_total:
type: counter
description: Measures the size of HTTP request messages.
labels:
http_method: {}
http_status_code: {}
instance: {}
job: {}
net_peer_name: {}
net_peer_port: {}
otel_scope_name: {}
otel_scope_version: {}
http_client_response_size_bytes_total:
type: counter
description: Measures the size of HTTP response messages.
labels:
http_method: {}
http_status_code: {}
instance: {}
job: {}
net_peer_name: {}
net_peer_port: {}
otel_scope_name: {}
otel_scope_version: {}
ndc_prometheus_query_total:
type: counter
description: Total number of query requests
labels:
collection: {}
http_status: {}
instance: {}
job: {}
otel_scope_name: {}
status: {}
ndc_prometheus_query_total_time:
type: histogram
description: Total time taken to plan and execute a query, in seconds
labels:
collection: {}
instance: {}
job: {}
otel_scope_name: {}
net_conntrack_dialer_conn_attempted_total:
type: counter
description: Total number of connections attempted by the given dialer a given name.
labels:
instance: {}
job: {}
net_conntrack_dialer_conn_closed_total:
type: counter
description: Total number of connections closed which originated from the dialer of a given name.
labels:
instance: {}
job: {}
net_conntrack_dialer_conn_established_total:
type: counter
description: Total number of connections successfully established by the given dialer a given name.
labels:
instance: {}
job: {}
net_conntrack_dialer_conn_failed_total:
type: counter
description: Total number of connections failed to dial by the dialer a given name.
labels:
instance: {}
job: {}
reason: {}
otel_scope_info:
type: gauge
description: Instrumentation Scope metadata
labels:
instance: {}
job: {}
otel_scope_name: {}
process_cpu_seconds_total:
type: counter
description: Total user and system CPU time spent in seconds.
labels:
instance: {}
job: {}
process_max_fds:
type: gauge
description: Maximum number of open file descriptors.
labels:
instance: {}
job: {}
process_network_receive_bytes_total:
type: counter
description: Number of bytes received by the process over the network.
labels:
instance: {}
job: {}
process_network_transmit_bytes_total:
type: counter
description: Number of bytes sent by the process over the network.
labels:
instance: {}
job: {}
process_open_fds:
type: gauge
description: Number of open file descriptors.
labels:
instance: {}
job: {}
process_resident_memory_bytes:
type: gauge
description: Resident memory size in bytes.
labels:
instance: {}
job: {}
process_start_time_seconds:
type: gauge
description: Start time of the process since unix epoch in seconds.
labels:
instance: {}
job: {}
process_virtual_memory_bytes:
type: gauge
description: Virtual memory size in bytes.
labels:
instance: {}
job: {}
process_virtual_memory_max_bytes:
type: gauge
description: Maximum amount of virtual memory available in bytes.
labels:
instance: {}
job: {}
promhttp_metric_handler_errors_total:
type: counter
description: Total number of internal errors encountered by the promhttp metric handler.
labels:
cause: {}
instance: {}
job: {}
promhttp_metric_handler_requests_in_flight:
type: gauge
description: Current number of scrapes being served.
labels:
instance: {}
job: {}
promhttp_metric_handler_requests_total:
type: counter
description: Total number of scrapes by HTTP status code.
labels:
code: {}
instance: {}
job: {}
target_info:
type: gauge
description: Target metadata
labels:
instance: {}
job: {}
service_name: {}
service_version: {}
telemetry_sdk_language: {}
telemetry_sdk_name: {}
telemetry_sdk_version: {}
native_operations:
queries:
ndc_prometheus_query_latency_avg:
query: sum by (collection)(rate(ndc_prometheus_query_total_time_sum{job="${job}"}[${interval}])) / sum by (collection)(rate(ndc_prometheus_query_total_time_count{job="${job}"}[${interval}]))
labels:
collection: {}
arguments:
interval:
type: Duration
job:
type: String
service_up:
query: up{job="${job}", instance="${instance}"}
labels:
instance: {}
job: {}
arguments:
instance:
type: String
job:
type: String
runtime:
flat: true
unix_time_unit: s
format:
timestamp: rfc3339
value: float64
nan: null
inf: "+Inf"
negative_inf: "-Inf"
concurrency_limit: 3