Skip to content

Commit a09b2e4

Browse files
paulojmdiasChrsMark
authored andcommitted
[chore][receiver/haproxyreceiver] sort metadata.yaml entries (open-telemetry#43468)
#### Description Sort metadata.yaml file in preparation for sort validation using mdatagen. Context: open-telemetry/opentelemetry-collector#13782 Signed-off-by: Paulo Dias <[email protected]>
1 parent 474fe24 commit a09b2e4

File tree

1 file changed

+111
-111
lines changed

1 file changed

+111
-111
lines changed

receiver/haproxyreceiver/metadata.yaml

Lines changed: 111 additions & 111 deletions
Original file line numberDiff line numberDiff line change
@@ -54,46 +54,6 @@ metrics:
5454
value_type: int
5555
input_type: string
5656
unit: "{servers}"
57-
haproxy.connections.rate:
58-
description: Number of connections over the last elapsed second (frontend). Corresponds to HAProxy's `conn_rate` metric.
59-
stability:
60-
level: development
61-
enabled: true
62-
gauge:
63-
value_type: int
64-
input_type: string
65-
unit: "{connections}"
66-
haproxy.sessions.count:
67-
description: Current sessions. Corresponds to HAProxy's `scur` metric.
68-
stability:
69-
level: development
70-
enabled: true
71-
gauge:
72-
value_type: int
73-
input_type: string
74-
unit: "{sessions}"
75-
haproxy.connections.total:
76-
description: Cumulative number of connections (frontend). Corresponds to HAProxy's `conn_tot` metric.
77-
stability:
78-
level: development
79-
enabled: false
80-
sum:
81-
aggregation_temporality: cumulative
82-
monotonic: true
83-
value_type: int
84-
input_type: string
85-
unit: "{connections}"
86-
haproxy.server_selected.total:
87-
description: Number of times a server was selected, either for new sessions or when re-dispatching. Corresponds to HAProxy's `lbtot` metric.
88-
stability:
89-
level: development
90-
enabled: true
91-
sum:
92-
aggregation_temporality: cumulative
93-
monotonic: true
94-
value_type: int
95-
input_type: string
96-
unit: "{selections}"
9757
haproxy.bytes.input:
9858
description: Bytes in. Corresponds to HAProxy's `bin` metric.
9959
stability:
@@ -138,6 +98,17 @@ metrics:
13898
value_type: int
13999
input_type: string
140100
unit: by
101+
haproxy.compression.count:
102+
description: Number of HTTP responses that were compressed. Corresponds to HAProxy's `comp_rsp` metric.
103+
stability:
104+
level: development
105+
enabled: false
106+
sum:
107+
aggregation_temporality: cumulative
108+
monotonic: true
109+
value_type: int
110+
input_type: string
111+
unit: "{responses}"
141112
haproxy.compression.input:
142113
description: Number of HTTP response bytes fed to the compressor. Corresponds to HAProxy's `comp_in` metric.
143114
stability:
@@ -160,19 +131,37 @@ metrics:
160131
value_type: int
161132
input_type: string
162133
unit: by
163-
haproxy.compression.count:
164-
description: Number of HTTP responses that were compressed. Corresponds to HAProxy's `comp_rsp` metric.
134+
haproxy.connections.average_time:
135+
description: Average connect time in ms over the 1024 last requests. Corresponds to HAProxy's `ctime` metric.
165136
stability:
166137
level: development
167138
enabled: false
139+
gauge:
140+
value_type: double
141+
input_type: string
142+
unit: ms
143+
haproxy.connections.errors:
144+
description: Number of requests that encountered an error trying to connect to a backend server. The backend stat is the sum of the stat. Corresponds to HAProxy's `econ` metric
145+
stability:
146+
level: development
147+
enabled: true
168148
sum:
169149
aggregation_temporality: cumulative
170150
monotonic: true
171151
value_type: int
172152
input_type: string
173-
unit: "{responses}"
174-
haproxy.requests.denied:
175-
description: Requests denied because of security concerns. Corresponds to HAProxy's `dreq` metric
153+
unit: "{errors}"
154+
haproxy.connections.rate:
155+
description: Number of connections over the last elapsed second (frontend). Corresponds to HAProxy's `conn_rate` metric.
156+
stability:
157+
level: development
158+
enabled: true
159+
gauge:
160+
value_type: int
161+
input_type: string
162+
unit: "{connections}"
163+
haproxy.connections.retries:
164+
description: Number of times a connection to a server was retried. Corresponds to HAProxy's `wretr` metric.
176165
stability:
177166
level: development
178167
enabled: true
@@ -181,20 +170,20 @@ metrics:
181170
monotonic: true
182171
value_type: int
183172
input_type: string
184-
unit: "{requests}"
185-
haproxy.responses.denied:
186-
description: Responses denied because of security concerns. Corresponds to HAProxy's `dresp` metric
173+
unit: "{retries}"
174+
haproxy.connections.total:
175+
description: Cumulative number of connections (frontend). Corresponds to HAProxy's `conn_tot` metric.
187176
stability:
188177
level: development
189-
enabled: true
178+
enabled: false
190179
sum:
191180
aggregation_temporality: cumulative
192181
monotonic: true
193182
value_type: int
194183
input_type: string
195-
unit: "{responses}"
184+
unit: "{connections}"
196185
haproxy.downtime:
197-
description: Total downtime (in seconds). The value for the backend is the downtime for the whole backend, not the sum of the server downtime. Corresponds to HAProxy's `downtime` metric
186+
description: Total downtime (in seconds). The value for the backend is the downtime for the whole backend, not the sum of the server downtime. Corresponds to HAProxy's `downtime` metric
198187
stability:
199188
level: development
200189
enabled: false
@@ -204,19 +193,28 @@ metrics:
204193
value_type: int
205194
input_type: string
206195
unit: s
207-
haproxy.connections.errors:
208-
description: Number of requests that encountered an error trying to connect to a backend server. The backend stat is the sum of the stat. Corresponds to HAProxy's `econ` metric
196+
haproxy.failed_checks:
197+
description: Number of failed checks. (Only counts checks failed when the server is up). Corresponds to HAProxy's `chkfail` metric.
209198
stability:
210199
level: development
211-
enabled: true
200+
enabled: false
212201
sum:
213202
aggregation_temporality: cumulative
214203
monotonic: true
215204
value_type: int
216205
input_type: string
217-
unit: "{errors}"
218-
haproxy.requests.errors:
219-
description: Cumulative number of request errors. Corresponds to HAProxy's `ereq` metric.
206+
unit: "{checks}"
207+
haproxy.requests.average_time:
208+
description: Average queue time in ms over the 1024 last requests. Corresponds to HAProxy's `qtime` metric.
209+
stability:
210+
level: development
211+
enabled: false
212+
gauge:
213+
value_type: double
214+
input_type: string
215+
unit: ms
216+
haproxy.requests.denied:
217+
description: Requests denied because of security concerns. Corresponds to HAProxy's `dreq` metric
220218
stability:
221219
level: development
222220
enabled: true
@@ -225,28 +223,38 @@ metrics:
225223
monotonic: true
226224
value_type: int
227225
input_type: string
228-
unit: "{errors}"
229-
haproxy.responses.errors:
230-
description: Cumulative number of response errors. Corresponds to HAProxy's `eresp` metric, `srv_abrt` will be counted here also.
226+
unit: "{requests}"
227+
haproxy.requests.errors:
228+
description: Cumulative number of request errors. Corresponds to HAProxy's `ereq` metric.
231229
stability:
232230
level: development
233231
enabled: true
234232
sum:
235233
aggregation_temporality: cumulative
236234
monotonic: true
237235
value_type: int
236+
input_type: string
238237
unit: "{errors}"
239-
haproxy.failed_checks:
240-
description: Number of failed checks. (Only counts checks failed when the server is up). Corresponds to HAProxy's `chkfail` metric.
238+
haproxy.requests.queued:
239+
description: Current queued requests. For the backend this reports the number queued without a server assigned. Corresponds to HAProxy's `qcur` metric.
241240
stability:
242241
level: development
243-
enabled: false
242+
enabled: true
244243
sum:
245244
aggregation_temporality: cumulative
246245
monotonic: true
247246
value_type: int
248247
input_type: string
249-
unit: "{checks}"
248+
unit: "{requests}"
249+
haproxy.requests.rate:
250+
description: HTTP requests per second over last elapsed second. Corresponds to HAProxy's `req_rate` metric.
251+
stability:
252+
level: development
253+
enabled: true
254+
gauge:
255+
value_type: double
256+
input_type: string
257+
unit: "{requests}"
250258
haproxy.requests.redispatched:
251259
description: Number of times a request was redispatched to another server. Corresponds to HAProxy's `wredis` metric.
252260
stability:
@@ -271,8 +279,17 @@ metrics:
271279
unit: "{requests}"
272280
attributes:
273281
- status_code
274-
haproxy.connections.retries:
275-
description: Number of times a connection to a server was retried. Corresponds to HAProxy's `wretr` metric.
282+
haproxy.responses.average_time:
283+
description: Average response time in ms over the 1024 last requests. Corresponds to HAProxy's `rtime` metric.
284+
stability:
285+
level: development
286+
enabled: false
287+
gauge:
288+
value_type: double
289+
input_type: string
290+
unit: ms
291+
haproxy.responses.denied:
292+
description: Responses denied because of security concerns. Corresponds to HAProxy's `dresp` metric
276293
stability:
277294
level: development
278295
enabled: true
@@ -281,20 +298,19 @@ metrics:
281298
monotonic: true
282299
value_type: int
283300
input_type: string
284-
unit: "{retries}"
285-
haproxy.sessions.total:
286-
description: Cumulative number of sessions. Corresponds to HAProxy's `stot` metric.
301+
unit: "{responses}"
302+
haproxy.responses.errors:
303+
description: Cumulative number of response errors. Corresponds to HAProxy's `eresp` metric, `srv_abrt` will be counted here also.
287304
stability:
288305
level: development
289-
enabled: false
306+
enabled: true
290307
sum:
291308
aggregation_temporality: cumulative
292309
monotonic: true
293310
value_type: int
294-
input_type: string
295-
unit: "{sessions}"
296-
haproxy.requests.queued:
297-
description: Current queued requests. For the backend this reports the number queued without a server assigned. Corresponds to HAProxy's `qcur` metric.
311+
unit: "{errors}"
312+
haproxy.server_selected.total:
313+
description: Number of times a server was selected, either for new sessions or when re-dispatching. Corresponds to HAProxy's `lbtot` metric.
298314
stability:
299315
level: development
300316
enabled: true
@@ -303,16 +319,7 @@ metrics:
303319
monotonic: true
304320
value_type: int
305321
input_type: string
306-
unit: "{requests}"
307-
haproxy.requests.rate:
308-
description: HTTP requests per second over last elapsed second. Corresponds to HAProxy's `req_rate` metric.
309-
stability:
310-
level: development
311-
enabled: true
312-
gauge:
313-
value_type: double
314-
input_type: string
315-
unit: "{requests}"
322+
unit: "{selections}"
316323
haproxy.sessions.average:
317324
description: Average total session time in ms over the last 1024 requests. Corresponds to HAProxy's `ttime` metric.
318325
stability:
@@ -322,57 +329,50 @@ metrics:
322329
value_type: double
323330
input_type: string
324331
unit: ms
325-
haproxy.sessions.rate:
326-
description: Number of sessions per second over last elapsed second. Corresponds to HAProxy's `rate` metric.
332+
haproxy.sessions.count:
333+
description: Current sessions. Corresponds to HAProxy's `scur` metric.
327334
stability:
328335
level: development
329336
enabled: true
330337
gauge:
331-
value_type: double
338+
value_type: int
332339
input_type: string
333340
unit: "{sessions}"
334-
haproxy.weight:
335-
description: Total effective weight (backend) or effective weight (server). Corresponds to HAProxy's `weight` metric.
341+
haproxy.sessions.limit:
342+
description: Configured session limit. Corresponds to HAProxy's `slim` metric.
336343
stability:
337344
level: development
338345
enabled: false
339346
gauge:
340347
value_type: int
341348
input_type: string
342-
unit: "1"
343-
haproxy.connections.average_time:
344-
description: Average connect time in ms over the 1024 last requests. Corresponds to HAProxy's `ctime` metric.
345-
stability:
346-
level: development
347-
enabled: false
348-
gauge:
349-
value_type: double
350-
input_type: string
351-
unit: ms
352-
haproxy.requests.average_time:
353-
description: Average queue time in ms over the 1024 last requests. Corresponds to HAProxy's `qtime` metric.
349+
unit: "{sessions}"
350+
haproxy.sessions.rate:
351+
description: Number of sessions per second over last elapsed second. Corresponds to HAProxy's `rate` metric.
354352
stability:
355353
level: development
356-
enabled: false
354+
enabled: true
357355
gauge:
358356
value_type: double
359357
input_type: string
360-
unit: ms
361-
haproxy.responses.average_time:
362-
description: Average response time in ms over the 1024 last requests. Corresponds to HAProxy's `rtime` metric.
358+
unit: "{sessions}"
359+
haproxy.sessions.total:
360+
description: Cumulative number of sessions. Corresponds to HAProxy's `stot` metric.
363361
stability:
364362
level: development
365363
enabled: false
366-
gauge:
367-
value_type: double
364+
sum:
365+
aggregation_temporality: cumulative
366+
monotonic: true
367+
value_type: int
368368
input_type: string
369-
unit: ms
370-
haproxy.sessions.limit:
371-
description: Configured session limit. Corresponds to HAProxy's `slim` metric.
369+
unit: "{sessions}"
370+
haproxy.weight:
371+
description: Total effective weight (backend) or effective weight (server). Corresponds to HAProxy's `weight` metric.
372372
stability:
373373
level: development
374374
enabled: false
375375
gauge:
376376
value_type: int
377377
input_type: string
378-
unit: "{sessions}"
378+
unit: "1"

0 commit comments

Comments
 (0)