Skip to content

Commit afdda5a

Browse files
committed
Fix metrics
1 parent 2e00ac0 commit afdda5a

File tree

3 files changed

+10
-45
lines changed

3 files changed

+10
-45
lines changed

metrics/all.go

Lines changed: 1 addition & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

metrics/genschema/gen.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def read_json_array(filename):
2020
package metrics
2121
2222
import (
23-
\totelmetrics "github.com/open-telemetry/opentelemetry-ebpf-profiler/metrics"
23+
\totelmetrics "go.opentelemetry.io/ebpf-profiler/metrics"
2424
)
2525
2626
const (
@@ -64,7 +64,7 @@ def get_unit(s):
6464
return "MetricUnitSeconds"
6565
case _:
6666
raise ValueError(f"Unknown metric unit: {s}")
67-
67+
6868
for metric in data:
6969
if not "name" in metric:
7070
continue

metrics/metrics.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,48 +434,55 @@
434434
"id": 59
435435
},
436436
{
437+
"obsolete": true,
437438
"description": "Indicator for whether the exeMetadata queue has been overwritten",
438439
"type": "counter",
439440
"name": "ExeMetadataOverwrite",
440441
"field": "agent.overwrites.exe_metadata",
441442
"id": 60
442443
},
443444
{
445+
"obsolete": true,
444446
"description": "Indicator for whether the countsForTraces queue has been overwritten",
445447
"type": "counter",
446448
"name": "CountsForTracesOverwrite",
447449
"field": "agent.overwrites.counts_for_traces",
448450
"id": 61
449451
},
450452
{
453+
"obsolete": true,
451454
"description": "Indicator for whether the metrics queue has been overwritten",
452455
"type": "counter",
453456
"name": "MetricsOverwrite",
454457
"field": "agent.overwrites.metrics",
455458
"id": 62
456459
},
457460
{
461+
"obsolete": true,
458462
"description": "Indicator for whether the framesForTraces queue has been overwritten",
459463
"type": "counter",
460464
"name": "FramesForTracesOverwrite",
461465
"field": "agent.overwrites.frames_for_traces",
462466
"id": 63
463467
},
464468
{
469+
"obsolete": true,
465470
"description": "Indicator for whether the frameMetadata queue has been overwritten",
466471
"type": "counter",
467472
"name": "FrameMetadataOverwrite",
468473
"field": "agent.overwrites.frame_metadata",
469474
"id": 64
470475
},
471476
{
477+
"obsolete": true,
472478
"description": "Indicator for whether the hostMetadata queue has been overwritten",
473479
"type": "counter",
474480
"name": "HostMetadataOverwrite",
475481
"field": "agent.overwrites.host_metadata",
476482
"id": 65
477483
},
478484
{
485+
"obsolete": true,
479486
"description": "Indicator for whether the fallbackSymbols queue has been overwritten",
480487
"type": "counter",
481488
"name": "FallbackSymbolsOverwrite",

0 commit comments

Comments
 (0)