@@ -191,48 +191,55 @@ func Test_metricsExporter_PushMetricsData(t *testing.T) {
191
191
"metric" : "int.gauge" ,
192
192
"points" : []any {map [string ]any {"timestamp" : float64 (0 ), "value" : float64 (222 )}},
193
193
"type" : float64 (datadogV2 .METRICINTAKETYPE_GAUGE ),
194
+ "interval" : float64 (0 ),
194
195
"resources" : []any {map [string ]any {"name" : "test-host" , "type" : "host" }},
195
196
"tags" : []any {"env:dev" },
196
197
},
197
198
map [string ]any {
198
199
"metric" : "otel.system.filesystem.utilization" ,
199
200
"points" : []any {map [string ]any {"timestamp" : float64 (0 ), "value" : float64 (333 )}},
200
201
"type" : float64 (datadogV2 .METRICINTAKETYPE_GAUGE ),
202
+ "interval" : float64 (0 ),
201
203
"resources" : []any {map [string ]any {"name" : "test-host" , "type" : "host" }},
202
204
"tags" : []any {"env:dev" },
203
205
},
204
206
map [string ]any {
205
207
"metric" : "double.histogram.bucket" ,
206
208
"points" : []any {map [string ]any {"timestamp" : float64 (0 ), "value" : float64 (2 )}},
207
209
"type" : float64 (datadogV2 .METRICINTAKETYPE_COUNT ),
210
+ "interval" : float64 (0 ),
208
211
"resources" : []any {map [string ]any {"name" : "test-host" , "type" : "host" }},
209
212
"tags" : []any {"lower_bound:-inf" , "upper_bound:0" , "env:dev" },
210
213
},
211
214
map [string ]any {
212
215
"metric" : "double.histogram.bucket" ,
213
216
"points" : []any {map [string ]any {"timestamp" : float64 (0 ), "value" : float64 (18 )}},
214
217
"type" : float64 (datadogV2 .METRICINTAKETYPE_COUNT ),
218
+ "interval" : float64 (0 ),
215
219
"resources" : []any {map [string ]any {"name" : "test-host" , "type" : "host" }},
216
220
"tags" : []any {"lower_bound:0" , "upper_bound:inf" , "env:dev" },
217
221
},
218
222
map [string ]any {
219
223
"metric" : "system.disk.in_use" ,
220
224
"points" : []any {map [string ]any {"timestamp" : float64 (0 ), "value" : float64 (333 )}},
221
225
"type" : float64 (datadogV2 .METRICINTAKETYPE_GAUGE ),
226
+ "interval" : float64 (0 ),
222
227
"resources" : []any {map [string ]any {"name" : "test-host" , "type" : "host" }},
223
228
"tags" : []any {"env:dev" },
224
229
},
225
230
map [string ]any {
226
231
"metric" : "datadog.otel.gateway" ,
227
232
"points" : []any {map [string ]any {"timestamp" : float64 (0 ), "value" : float64 (0 )}},
228
233
"type" : float64 (datadogV2 .METRICINTAKETYPE_GAUGE ),
234
+ "interval" : float64 (0 ),
229
235
"resources" : []any {map [string ]any {"name" : "test-host" , "type" : "host" }},
230
236
"tags" : []any {"version:latest" , "command:otelcol" },
231
237
},
232
238
map [string ]any {
233
239
"metric" : "otel.datadog_exporter.metrics.running" ,
234
240
"points" : []any {map [string ]any {"timestamp" : float64 (0 ), "value" : float64 (1 )}},
235
241
"type" : float64 (datadogV2 .METRICINTAKETYPE_GAUGE ),
242
+ "interval" : float64 (0 ),
236
243
"resources" : []any {map [string ]any {"name" : "test-host" , "type" : "host" }},
237
244
"tags" : []any {"version:latest" , "command:otelcol" },
238
245
},
@@ -256,48 +263,55 @@ func Test_metricsExporter_PushMetricsData(t *testing.T) {
256
263
"metric" : "int.gauge" ,
257
264
"points" : []any {map [string ]any {"timestamp" : float64 (0 ), "value" : float64 (222 )}},
258
265
"type" : float64 (datadogV2 .METRICINTAKETYPE_GAUGE ),
266
+ "interval" : float64 (0 ),
259
267
"resources" : []any {map [string ]any {"name" : "test-host" , "type" : "host" }},
260
268
"tags" : []any {"env:new_env" },
261
269
},
262
270
map [string ]any {
263
271
"metric" : "otel.system.filesystem.utilization" ,
264
272
"points" : []any {map [string ]any {"timestamp" : float64 (0 ), "value" : float64 (333 )}},
265
273
"type" : float64 (datadogV2 .METRICINTAKETYPE_GAUGE ),
274
+ "interval" : float64 (0 ),
266
275
"resources" : []any {map [string ]any {"name" : "test-host" , "type" : "host" }},
267
276
"tags" : []any {"env:new_env" },
268
277
},
269
278
map [string ]any {
270
279
"metric" : "double.histogram.bucket" ,
271
280
"points" : []any {map [string ]any {"timestamp" : float64 (0 ), "value" : float64 (2 )}},
272
281
"type" : float64 (datadogV2 .METRICINTAKETYPE_COUNT ),
282
+ "interval" : float64 (0 ),
273
283
"resources" : []any {map [string ]any {"name" : "test-host" , "type" : "host" }},
274
284
"tags" : []any {"lower_bound:-inf" , "upper_bound:0" , "env:new_env" },
275
285
},
276
286
map [string ]any {
277
287
"metric" : "double.histogram.bucket" ,
278
288
"points" : []any {map [string ]any {"timestamp" : float64 (0 ), "value" : float64 (18 )}},
279
289
"type" : float64 (datadogV2 .METRICINTAKETYPE_COUNT ),
290
+ "interval" : float64 (0 ),
280
291
"resources" : []any {map [string ]any {"name" : "test-host" , "type" : "host" }},
281
292
"tags" : []any {"lower_bound:0" , "upper_bound:inf" , "env:new_env" },
282
293
},
283
294
map [string ]any {
284
295
"metric" : "system.disk.in_use" ,
285
296
"points" : []any {map [string ]any {"timestamp" : float64 (0 ), "value" : float64 (333 )}},
286
297
"type" : float64 (datadogV2 .METRICINTAKETYPE_GAUGE ),
298
+ "interval" : float64 (0 ),
287
299
"resources" : []any {map [string ]any {"name" : "test-host" , "type" : "host" }},
288
300
"tags" : []any {"env:new_env" },
289
301
},
290
302
map [string ]any {
291
303
"metric" : "datadog.otel.gateway" ,
292
304
"points" : []any {map [string ]any {"timestamp" : float64 (0 ), "value" : float64 (0 )}},
293
305
"type" : float64 (datadogV2 .METRICINTAKETYPE_GAUGE ),
306
+ "interval" : float64 (0 ),
294
307
"resources" : []any {map [string ]any {"name" : "test-host" , "type" : "host" }},
295
308
"tags" : []any {"version:latest" , "command:otelcol" },
296
309
},
297
310
map [string ]any {
298
311
"metric" : "otel.datadog_exporter.metrics.running" ,
299
312
"points" : []any {map [string ]any {"timestamp" : float64 (0 ), "value" : float64 (1 )}},
300
313
"type" : float64 (datadogV2 .METRICINTAKETYPE_GAUGE ),
314
+ "interval" : float64 (0 ),
301
315
"resources" : []any {map [string ]any {"name" : "test-host" , "type" : "host" }},
302
316
"tags" : []any {"version:latest" , "command:otelcol" },
303
317
},
@@ -318,34 +332,39 @@ func Test_metricsExporter_PushMetricsData(t *testing.T) {
318
332
"metric" : "int.gauge" ,
319
333
"points" : []any {map [string ]any {"timestamp" : float64 (0 ), "value" : float64 (222 )}},
320
334
"type" : float64 (datadogV2 .METRICINTAKETYPE_GAUGE ),
335
+ "interval" : float64 (0 ),
321
336
"resources" : []any {map [string ]any {"name" : "test-host" , "type" : "host" }},
322
337
"tags" : []any {"env:dev" },
323
338
},
324
339
map [string ]any {
325
340
"metric" : "otel.system.filesystem.utilization" ,
326
341
"points" : []any {map [string ]any {"timestamp" : float64 (0 ), "value" : float64 (333 )}},
327
342
"type" : float64 (datadogV2 .METRICINTAKETYPE_GAUGE ),
343
+ "interval" : float64 (0 ),
328
344
"resources" : []any {map [string ]any {"name" : "test-host" , "type" : "host" }},
329
345
"tags" : []any {"env:dev" },
330
346
},
331
347
map [string ]any {
332
348
"metric" : "system.disk.in_use" ,
333
349
"points" : []any {map [string ]any {"timestamp" : float64 (0 ), "value" : float64 (333 )}},
334
350
"type" : float64 (datadogV2 .METRICINTAKETYPE_GAUGE ),
351
+ "interval" : float64 (0 ),
335
352
"resources" : []any {map [string ]any {"name" : "test-host" , "type" : "host" }},
336
353
"tags" : []any {"env:dev" },
337
354
},
338
355
map [string ]any {
339
356
"metric" : "datadog.otel.gateway" ,
340
357
"points" : []any {map [string ]any {"timestamp" : float64 (0 ), "value" : float64 (0 )}},
341
358
"type" : float64 (datadogV2 .METRICINTAKETYPE_GAUGE ),
359
+ "interval" : float64 (0 ),
342
360
"resources" : []any {map [string ]any {"name" : "test-host" , "type" : "host" }},
343
361
"tags" : []any {"version:latest" , "command:otelcol" },
344
362
},
345
363
map [string ]any {
346
364
"metric" : "otel.datadog_exporter.metrics.running" ,
347
365
"points" : []any {map [string ]any {"timestamp" : float64 (0 ), "value" : float64 (1 )}},
348
366
"type" : float64 (datadogV2 .METRICINTAKETYPE_GAUGE ),
367
+ "interval" : float64 (0 ),
349
368
"resources" : []any {map [string ]any {"name" : "test-host" , "type" : "host" }},
350
369
"tags" : []any {"version:latest" , "command:otelcol" },
351
370
},
@@ -384,48 +403,55 @@ func Test_metricsExporter_PushMetricsData(t *testing.T) {
384
403
"metric" : "int.gauge" ,
385
404
"points" : []any {map [string ]any {"timestamp" : float64 (0 ), "value" : float64 (222 )}},
386
405
"type" : float64 (datadogV2 .METRICINTAKETYPE_GAUGE ),
406
+ "interval" : float64 (0 ),
387
407
"resources" : []any {map [string ]any {"name" : "test-host" , "type" : "host" }},
388
408
"tags" : []any {"env:dev" , "key1:value1" , "key2:value2" },
389
409
},
390
410
map [string ]any {
391
411
"metric" : "otel.system.filesystem.utilization" ,
392
412
"points" : []any {map [string ]any {"timestamp" : float64 (0 ), "value" : float64 (333 )}},
393
413
"type" : float64 (datadogV2 .METRICINTAKETYPE_GAUGE ),
414
+ "interval" : float64 (0 ),
394
415
"resources" : []any {map [string ]any {"name" : "test-host" , "type" : "host" }},
395
416
"tags" : []any {"env:dev" , "key1:value1" , "key2:value2" },
396
417
},
397
418
map [string ]any {
398
419
"metric" : "double.histogram.bucket" ,
399
420
"points" : []any {map [string ]any {"timestamp" : float64 (0 ), "value" : float64 (2 )}},
400
421
"type" : float64 (datadogV2 .METRICINTAKETYPE_COUNT ),
422
+ "interval" : float64 (0 ),
401
423
"resources" : []any {map [string ]any {"name" : "test-host" , "type" : "host" }},
402
424
"tags" : []any {"lower_bound:-inf" , "upper_bound:0" , "env:dev" , "key1:value1" , "key2:value2" },
403
425
},
404
426
map [string ]any {
405
427
"metric" : "double.histogram.bucket" ,
406
428
"points" : []any {map [string ]any {"timestamp" : float64 (0 ), "value" : float64 (18 )}},
407
429
"type" : float64 (datadogV2 .METRICINTAKETYPE_COUNT ),
430
+ "interval" : float64 (0 ),
408
431
"resources" : []any {map [string ]any {"name" : "test-host" , "type" : "host" }},
409
432
"tags" : []any {"lower_bound:0" , "upper_bound:inf" , "env:dev" , "key1:value1" , "key2:value2" },
410
433
},
411
434
map [string ]any {
412
435
"metric" : "system.disk.in_use" ,
413
436
"points" : []any {map [string ]any {"timestamp" : float64 (0 ), "value" : float64 (333 )}},
414
437
"type" : float64 (datadogV2 .METRICINTAKETYPE_GAUGE ),
438
+ "interval" : float64 (0 ),
415
439
"resources" : []any {map [string ]any {"name" : "test-host" , "type" : "host" }},
416
440
"tags" : []any {"env:dev" , "key1:value1" , "key2:value2" },
417
441
},
418
442
map [string ]any {
419
443
"metric" : "datadog.otel.gateway" ,
420
444
"points" : []any {map [string ]any {"timestamp" : float64 (0 ), "value" : float64 (0 )}},
421
445
"type" : float64 (datadogV2 .METRICINTAKETYPE_GAUGE ),
446
+ "interval" : float64 (0 ),
422
447
"resources" : []any {map [string ]any {"name" : "test-host" , "type" : "host" }},
423
448
"tags" : []any {"version:latest" , "command:otelcol" , "key1:value1" , "key2:value2" },
424
449
},
425
450
map [string ]any {
426
451
"metric" : "otel.datadog_exporter.metrics.running" ,
427
452
"points" : []any {map [string ]any {"timestamp" : float64 (0 ), "value" : float64 (1 )}},
428
453
"type" : float64 (datadogV2 .METRICINTAKETYPE_GAUGE ),
454
+ "interval" : float64 (0 ),
429
455
"resources" : []any {map [string ]any {"name" : "test-host" , "type" : "host" }},
430
456
"tags" : []any {"version:latest" , "command:otelcol" , "key1:value1" , "key2:value2" },
431
457
},
0 commit comments