Documentation ¶
Index ¶
- type Config
- type Provider
- func (m *Provider) Close() error
- func (m *Provider) Count(n string, v int64, t []string, rate float64) error
- func (m *Provider) Gauge(n string, v float64, t []string, rate float64) error
- func (m *Provider) Histogram(n string, v float64, t []string, rate float64) error
- func (m *Provider) Publish(ctx context.Context)
- func (m *Provider) TimeInMilliseconds(n string, v float64, t []string, rate float64) error
- type Tags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // URL configures a host for exporting metrics to http[s]://host[:port][/path] URL string // AuthToken is included as a bearer token on requests AuthToken secret.String // GlobalTags are added to each metric. Be aware of high cardinality issues GlobalTags Tags // ClientName provides a name & user agent to the http client for observability. Defaults to "o11y-metrics-client" ClientName string // PublishInterval how often to publish metrics, defaults to 1 minute PublishInterval time.Duration // Namespace gets prepended to all stat names Namespace string }
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider is a struct that implements the CloseableMetricsProvider interface
Click to show internal directories.
Click to hide internal directories.