Documentation
¶
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 a Prometheus exporter.
func NewExporter ¶
func NewExporter(cfg *ExporterConfig) (*Exporter, error)
NewExporter creates a Prometheus exporter using the ExporterConfig and registers the collectors.
type ExporterConfig ¶
type ExporterConfig struct {
ListenAddr *string
MetricsPath *string
Timeout *int
NestURL *string
NestOAuthClientID *string
NestOAuthClientSecret *string
NestOAuthToken *oauth2.Token // Only used to mock a dummy token in tests
NestProjectID *string
NestRefreshToken *string
WeatherLocation *string
WeatherURL *string
WeatherToken *string
}
ExporterConfig contains configuration for the Exporter.
Click to show internal directories.
Click to hide internal directories.