Documentation ¶
Index ¶
- func NewFactory() metrics.ProviderFactory
- func NewPointBuilder(src *prometheusMetricsSource, filtered gometrics.Counter) *pointBuilder
- func NewPrometheusMetricsSource(metricsURL, prefix, source, discovered string, tags map[string]string, ...) (metrics.Source, error)
- func NewPrometheusProvider(cfg configuration.PrometheusSourceConfig, lookupInstances LookupInstances) (metrics.SourceProvider, error)
- type HTTPError
- type Instance
- type LookaheadReader
- type LookupInstances
- type MetricReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
func NewFactory() metrics.ProviderFactory
Returns a new prometheus provider factory
func NewPointBuilder ¶
func NewPrometheusProvider ¶
func NewPrometheusProvider(cfg configuration.PrometheusSourceConfig, lookupInstances LookupInstances) (metrics.SourceProvider, error)
Types ¶
type Instance ¶
func InstanceFromHost ¶
type LookaheadReader ¶
type LookaheadReader struct {
// contains filtered or unexported fields
}
func NewLookaheadReader ¶
func NewLookaheadReader(reader io.Reader) *LookaheadReader
func (*LookaheadReader) Done ¶
func (laReader *LookaheadReader) Done() bool
func (*LookaheadReader) Peek ¶
func (laReader *LookaheadReader) Peek() []byte
func (*LookaheadReader) Read ¶
func (laReader *LookaheadReader) Read() []byte
type LookupInstances ¶
func InstancesFromEndpoints ¶
func InstancesFromEndpoints(client corev1.EndpointsGetter) LookupInstances
type MetricReader ¶
type MetricReader struct {
// contains filtered or unexported fields
}
func NewMetricReader ¶
func NewMetricReader(reader io.Reader) *MetricReader
func (*MetricReader) Done ¶
func (mReader *MetricReader) Done() bool
Done tells us if there is anything left to read
func (*MetricReader) Read ¶
func (mReader *MetricReader) Read() []byte
Click to show internal directories.
Click to hide internal directories.