googlemanagedprometheus

package module
v0.39.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2023 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddScopeInfoMetric added in v0.35.0

func AddScopeInfoMetric(m pmetric.Metrics)

AddScopeInfoMetric adds the otel_scope_info metric to a Metrics slice as specified in https://github.com/open-telemetry/opentelemetry-specification/blob/v1.16.0/specification/compatibility/prometheus_and_openmetrics.md#instrumentation-scope-1 It also updates all other metrics with the corresponding scope_name and scope_version attributes, if they are present.

func AddTargetInfoMetric added in v0.35.0

func AddTargetInfoMetric(m pmetric.Metrics)

AddTargetInfoMetric inserts target_info for each resource. First, it extracts the target_info metric from each ResourceMetric associated with the input pmetric.Metrics and inserts it into a new ScopeMetric for that resource, as specified in https://github.com/open-telemetry/opentelemetry-specification/blob/v1.16.0/specification/compatibility/prometheus_and_openmetrics.md#resource-attributes-1

func GetMetricName

func GetMetricName(baseName string, metric pmetric.Metric) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL