Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPromClient ¶
func NewPromClient( config Config, ) (domain.MetricsService, error)
Types ¶
type Config ¶
type Config struct { Endpoint string `mapstructure:"endpoint" yaml:"endpoint"` Queries []*QueryConfig `mapstructure:"queries" yaml:"queries"` }
type QueryConfig ¶
type QueryConfig struct { Name string `mapstructure:"name" yaml:"name"` Template string `mapstructure:"template" yaml:"template"` }
func DefaultQueriesConfig ¶
func DefaultQueriesConfig() []*QueryConfig
Click to show internal directories.
Click to hide internal directories.