Skip to content

Commit 3435fc7

Browse files
committed
tests
1 parent aa02b5d commit 3435fc7

File tree

10 files changed

+1159
-1183
lines changed

10 files changed

+1159
-1183
lines changed

receiver/postgresqlreceiver/testdata/scraper/multiple/exclude.yaml

Lines changed: 119 additions & 123 deletions
Original file line numberDiff line numberDiff line change
@@ -1,123 +1,5 @@
11
resourceMetrics:
2-
- resource:
3-
attributes:
4-
- key: postgresql.database.name
5-
value:
6-
stringValue: otel
7-
scopeMetrics:
8-
- metrics:
9-
- description: The number of backends.
10-
name: postgresql.backends
11-
sum:
12-
aggregationTemporality: 2
13-
dataPoints:
14-
- asInt: "3"
15-
startTimeUnixNano: "1000000"
16-
timeUnixNano: "2000000"
17-
unit: "1"
18-
- description: The number of commits.
19-
name: postgresql.commits
20-
sum:
21-
aggregationTemporality: 2
22-
dataPoints:
23-
- asInt: "1"
24-
startTimeUnixNano: "1000000"
25-
timeUnixNano: "2000000"
26-
isMonotonic: true
27-
unit: "1"
28-
- description: The database disk usage.
29-
name: postgresql.db_size
30-
sum:
31-
aggregationTemporality: 2
32-
dataPoints:
33-
- asInt: "4"
34-
startTimeUnixNano: "1000000"
35-
timeUnixNano: "2000000"
36-
unit: By
37-
- description: The number of rollbacks.
38-
name: postgresql.rollbacks
39-
sum:
40-
aggregationTemporality: 2
41-
dataPoints:
42-
- asInt: "2"
43-
startTimeUnixNano: "1000000"
44-
timeUnixNano: "2000000"
45-
isMonotonic: true
46-
unit: "1"
47-
- description: Number of user tables in a database.
48-
name: postgresql.table.count
49-
sum:
50-
aggregationTemporality: 2
51-
dataPoints:
52-
- asInt: "2"
53-
startTimeUnixNano: "1000000"
54-
timeUnixNano: "2000000"
55-
unit: '{table}'
56-
scope:
57-
name: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/postgresqlreceiver
58-
version: latest
59-
- resource:
60-
attributes:
61-
- key: postgresql.database.name
62-
value:
63-
stringValue: telemetry
64-
scopeMetrics:
65-
- metrics:
66-
- description: The number of backends.
67-
name: postgresql.backends
68-
sum:
69-
aggregationTemporality: 2
70-
dataPoints:
71-
- asInt: "4"
72-
startTimeUnixNano: "1000000"
73-
timeUnixNano: "2000000"
74-
unit: "1"
75-
- description: The number of commits.
76-
name: postgresql.commits
77-
sum:
78-
aggregationTemporality: 2
79-
dataPoints:
80-
- asInt: "2"
81-
startTimeUnixNano: "1000000"
82-
timeUnixNano: "2000000"
83-
isMonotonic: true
84-
unit: "1"
85-
- description: The database disk usage.
86-
name: postgresql.db_size
87-
sum:
88-
aggregationTemporality: 2
89-
dataPoints:
90-
- asInt: "5"
91-
startTimeUnixNano: "1000000"
92-
timeUnixNano: "2000000"
93-
unit: By
94-
- description: The number of rollbacks.
95-
name: postgresql.rollbacks
96-
sum:
97-
aggregationTemporality: 2
98-
dataPoints:
99-
- asInt: "3"
100-
startTimeUnixNano: "1000000"
101-
timeUnixNano: "2000000"
102-
isMonotonic: true
103-
unit: "1"
104-
- description: Number of user tables in a database.
105-
name: postgresql.table.count
106-
sum:
107-
aggregationTemporality: 2
108-
dataPoints:
109-
- asInt: "2"
110-
startTimeUnixNano: "1000000"
111-
timeUnixNano: "2000000"
112-
unit: '{table}'
113-
scope:
114-
name: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/postgresqlreceiver
115-
version: latest
116-
- resource:
117-
attributes:
118-
- key: service.instance.id
119-
value:
120-
stringValue: INSTANCE-NAME:5432
2+
- resource: {}
1213
scopeMetrics:
1224
- metrics:
1235
- description: Number of buffers allocated.
@@ -257,6 +139,120 @@ resourceMetrics:
257139
scope:
258140
name: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/postgresqlreceiver
259141
version: latest
142+
- resource:
143+
attributes:
144+
- key: postgresql.database.name
145+
value:
146+
stringValue: otel
147+
scopeMetrics:
148+
- metrics:
149+
- description: The number of backends.
150+
name: postgresql.backends
151+
sum:
152+
aggregationTemporality: 2
153+
dataPoints:
154+
- asInt: "3"
155+
startTimeUnixNano: "1000000"
156+
timeUnixNano: "2000000"
157+
unit: "1"
158+
- description: The number of commits.
159+
name: postgresql.commits
160+
sum:
161+
aggregationTemporality: 2
162+
dataPoints:
163+
- asInt: "1"
164+
startTimeUnixNano: "1000000"
165+
timeUnixNano: "2000000"
166+
isMonotonic: true
167+
unit: "1"
168+
- description: The database disk usage.
169+
name: postgresql.db_size
170+
sum:
171+
aggregationTemporality: 2
172+
dataPoints:
173+
- asInt: "4"
174+
startTimeUnixNano: "1000000"
175+
timeUnixNano: "2000000"
176+
unit: By
177+
- description: The number of rollbacks.
178+
name: postgresql.rollbacks
179+
sum:
180+
aggregationTemporality: 2
181+
dataPoints:
182+
- asInt: "2"
183+
startTimeUnixNano: "1000000"
184+
timeUnixNano: "2000000"
185+
isMonotonic: true
186+
unit: "1"
187+
- description: Number of user tables in a database.
188+
name: postgresql.table.count
189+
sum:
190+
aggregationTemporality: 2
191+
dataPoints:
192+
- asInt: "2"
193+
startTimeUnixNano: "1000000"
194+
timeUnixNano: "2000000"
195+
unit: '{table}'
196+
scope:
197+
name: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/postgresqlreceiver
198+
version: latest
199+
- resource:
200+
attributes:
201+
- key: postgresql.database.name
202+
value:
203+
stringValue: telemetry
204+
scopeMetrics:
205+
- metrics:
206+
- description: The number of backends.
207+
name: postgresql.backends
208+
sum:
209+
aggregationTemporality: 2
210+
dataPoints:
211+
- asInt: "4"
212+
startTimeUnixNano: "1000000"
213+
timeUnixNano: "2000000"
214+
unit: "1"
215+
- description: The number of commits.
216+
name: postgresql.commits
217+
sum:
218+
aggregationTemporality: 2
219+
dataPoints:
220+
- asInt: "2"
221+
startTimeUnixNano: "1000000"
222+
timeUnixNano: "2000000"
223+
isMonotonic: true
224+
unit: "1"
225+
- description: The database disk usage.
226+
name: postgresql.db_size
227+
sum:
228+
aggregationTemporality: 2
229+
dataPoints:
230+
- asInt: "5"
231+
startTimeUnixNano: "1000000"
232+
timeUnixNano: "2000000"
233+
unit: By
234+
- description: The number of rollbacks.
235+
name: postgresql.rollbacks
236+
sum:
237+
aggregationTemporality: 2
238+
dataPoints:
239+
- asInt: "3"
240+
startTimeUnixNano: "1000000"
241+
timeUnixNano: "2000000"
242+
isMonotonic: true
243+
unit: "1"
244+
- description: Number of user tables in a database.
245+
name: postgresql.table.count
246+
sum:
247+
aggregationTemporality: 2
248+
dataPoints:
249+
- asInt: "2"
250+
startTimeUnixNano: "1000000"
251+
timeUnixNano: "2000000"
252+
unit: '{table}'
253+
scope:
254+
name: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/postgresqlreceiver
255+
version: latest
260256
- resource:
261257
attributes:
262258
- key: postgresql.database.name
@@ -403,7 +399,7 @@ resourceMetrics:
403399
startTimeUnixNano: "1000000"
404400
timeUnixNano: "2000000"
405401
isMonotonic: true
406-
unit: '{vacuum}'
402+
unit: '{vacuums}'
407403
scope:
408404
name: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/postgresqlreceiver
409405
version: latest
@@ -553,7 +549,7 @@ resourceMetrics:
553549
startTimeUnixNano: "1000000"
554550
timeUnixNano: "2000000"
555551
isMonotonic: true
556-
unit: '{vacuum}'
552+
unit: '{vacuums}'
557553
scope:
558554
name: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/postgresqlreceiver
559555
version: latest
@@ -703,7 +699,7 @@ resourceMetrics:
703699
startTimeUnixNano: "1000000"
704700
timeUnixNano: "2000000"
705701
isMonotonic: true
706-
unit: '{vacuum}'
702+
unit: '{vacuums}'
707703
scope:
708704
name: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/postgresqlreceiver
709705
version: latest
@@ -853,7 +849,7 @@ resourceMetrics:
853849
startTimeUnixNano: "1000000"
854850
timeUnixNano: "2000000"
855851
isMonotonic: true
856-
unit: '{vacuum}'
852+
unit: '{vacuums}'
857853
scope:
858854
name: github.com/open-telemetry/opentelemetry-collector-contrib/receiver/postgresqlreceiver
859855
version: latest

0 commit comments

Comments
 (0)