Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeMetricName ¶
Types ¶
type JsonMetric ¶
type JsonMetric struct {
Desc *prometheus.Desc
KeyExtractorPath string
ValueExtractorPath string
LabelsExtractorPaths []string
Extractor extractor.Extractor
}
func CreateMetricsList ¶
func CreateMetricsList(c config.Config) ([]JsonMetric, error)
type JsonMetricCollector ¶
type JsonMetricCollector struct {
JsonMetrics []JsonMetric
Data []byte
Logger log.Logger
}
func (JsonMetricCollector) Collect ¶
func (mc JsonMetricCollector) Collect(ch chan<- prometheus.Metric)
func (JsonMetricCollector) Describe ¶
func (mc JsonMetricCollector) Describe(ch chan<- *prometheus.Desc)
Click to show internal directories.
Click to hide internal directories.