common

package
v0.26.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ReasonKey     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 bypassed"),
	)
)

Functions

This section is empty.

Types

type APIConfig

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

type APIMetadata

type APIMetadata struct {
	Help string               `json:"help"`
	Type textparse.MetricType `json:"type"`
}

type APITargetMetadata added in v0.25.0

type APITargetMetadata 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 FailingReporter added in v0.22.0

type FailingReporter interface {
	Set(reason, metricName string)
}

FailingReporter is an interface for FailingSet

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      map[string][]APIMetadata `json:"data,omitempty"`
	Error     string                   `json:"error,omitempty"`
	ErrorType string                   `json:"errorType,omitempty"`
	Warnings  []string                 `json:"warnings,omitempty"`
}

type TargetMetadataAPIResponse added in v0.25.0

type TargetMetadataAPIResponse struct {
	Status    string              `json:"status"`
	Data      []APITargetMetadata `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