common

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DroppedKeyReason attribute.Key = "key_reason"
	MetricNameKey    attribute.Key = "metric_name"
)

Variables

View Source
var (
	DroppedSeries = sidecar.OTelMeterMust.NewInt64Counter(
		config.DroppedSeriesMetric,
		metric.WithDescription("Number of series that could not be exported"),
	)

	DroppedPoints = sidecar.OTelMeterMust.NewInt64Counter(
		config.DroppedPointsMetric,
		metric.WithDescription("Number of points that could not be exported"),
	)

	SkippedPoints = sidecar.OTelMeterMust.NewInt64Counter(
		config.SkippedPointsMetric,
		metric.WithDescription("Number of points that were skipped because of a filter"),
	)
)

Functions

This section is empty.

Types

type APIConfig

type APIConfig struct {
	YAML string `json:"yaml"`
}

type APIMetadata

type APIMetadata struct {
	// We do not decode the target information.
	Metric string               `json:"metric"`
	Help   string               `json:"help"`
	Type   textparse.MetricType `json:"type"`
}

type ConfigAPIResponse

type ConfigAPIResponse struct {
	Status    string    `json:"status"`
	Data      APIConfig `json:"data,omitempty"`
	ErrorType string    `json:"errorType,omitempty"`
	Error     string    `json:"error,omitempty"`
	Warnings  []string  `json:"warnings,omitempty"`
}

type FailingSet

type FailingSet struct {
	// contains filtered or unexported fields
}

FailingSet reports a set of gauges to describe failing data points.

func NewFailingSet

func NewFailingSet(logger log.Logger) *FailingSet

func (*FailingSet) Set

func (i *FailingSet) Set(reason, metricName string)

type MetadataAPIResponse

type MetadataAPIResponse struct {
	Status    string        `json:"status"`
	Data      []APIMetadata `json:"data,omitempty"`
	Error     string        `json:"error,omitempty"`
	ErrorType string        `json:"errorType,omitempty"`
	Warnings  []string      `json:"warnings,omitempty"`
}

Jump to

Keyboard shortcuts

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