Documentation ¶
Index ¶
- type Config
- type FakePrometheus
- func (fp *FakePrometheus) ReadyConfig() config.PromReady
- func (fp *FakePrometheus) ServeMux() *http.ServeMux
- func (fp *FakePrometheus) SetIntervals(is ...time.Duration)
- func (fp *FakePrometheus) SetPromConfigYaml(config string)
- func (fp *FakePrometheus) SetReady(r bool)
- func (fp *FakePrometheus) SetSegment(s int)
- func (fp *FakePrometheus) Test() *url.URL
- type MetadataMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Version string Metadata MetadataMap }
type FakePrometheus ¶
type FakePrometheus struct {
// contains filtered or unexported fields
}
func NewFakePrometheus ¶
func NewFakePrometheus(cfg Config) *FakePrometheus
func (*FakePrometheus) ReadyConfig ¶
func (fp *FakePrometheus) ReadyConfig() config.PromReady
func (*FakePrometheus) ServeMux ¶
func (fp *FakePrometheus) ServeMux() *http.ServeMux
func (*FakePrometheus) SetIntervals ¶
func (fp *FakePrometheus) SetIntervals(is ...time.Duration)
func (*FakePrometheus) SetPromConfigYaml ¶
func (fp *FakePrometheus) SetPromConfigYaml(config string)
func (*FakePrometheus) SetReady ¶
func (fp *FakePrometheus) SetReady(r bool)
func (*FakePrometheus) SetSegment ¶
func (fp *FakePrometheus) SetSegment(s int)
func (*FakePrometheus) Test ¶
func (fp *FakePrometheus) Test() *url.URL
type MetadataMap ¶
type MetadataMap map[string]*config.MetadataEntry
MetadataMap implements a MetadataGetter for exact matches of "job/instance/metric" inputs.
func (MetadataMap) Get ¶
func (m MetadataMap) Get(ctx context.Context, job, instance, metric string) (*config.MetadataEntry, error)
Click to show internal directories.
Click to hide internal directories.