Documentation
¶
Overview ¶
Copyright The OpenTelemetry Authors SPDX-License-Identifier: Apache-2.0
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
NewFactory creates a new Prometheus receiver factory.
Types ¶
type Config ¶
type Config struct {
confighttp.ServerConfig `mapstructure:",squash"`
}
Config holds common fields and embedded protocol-specific configurations
type MetricIdentity ¶ added in v0.123.0
type MetricIdentity struct { ResourceID string ScopeName string ScopeVersion string MetricName string Unit string Type writev2.Metadata_MetricType }
MetricIdentity contains all the components that uniquely identify a metric according to the OpenTelemetry Protocol data model. The definition of the metric uniqueness is based on the following document. Ref: https://opentelemetry.io/docs/specs/otel/metrics/data-model/#opentelemetry-protocol-data-model
func (MetricIdentity) Hash ¶ added in v0.123.0
func (mi MetricIdentity) Hash() uint64
Hash generates a unique hash for the metric identity
Click to show internal directories.
Click to hide internal directories.