Documentation ¶
Overview ¶
Package exporter provides the ability for one to instantiate a web server that on requests to it, provides prometheus metrics in the http response.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
Exporter is responsible for bringing up a web server that collects metrics that have been globally registered via prometheus collectors (e.g., see `pkg/collector`).
type Option ¶
type Option func(e *Exporter)
Option allows overriding the exporter's defaults
func WithBindAddress ¶
WithBindAddress overrides the default address at which the prometheus metrics HTTP server would bind to.
Examples:
- :8080
- 127.0.0.2:1313
func WithTelemetryPath ¶
WithTelemetryPath overrides the default path under which the prometheus metrics are reported.
For instance:
- /
- /metrics
- /telemetry
Click to show internal directories.
Click to hide internal directories.