Versions in this module Expand all Collapse all v1 v1.1.2 Dec 1, 2020 Changes in this version + func FetchJson(ctx context.Context, logger log.Logger, endpoint string, config config.Config) ([]byte, error) + func MakeMetricName(parts ...string) string + type JsonMetric struct + Desc *prometheus.Desc + Extractor extractor.Extractor + KeyExtractorPath string + LabelsExtractorPaths []string + ValueExtractorPath string + func CreateMetricsList(c config.Config) ([]JsonMetric, error) + type JsonMetricCollector struct + Data []byte + JsonMetrics []JsonMetric + Logger log.Logger + func (mc JsonMetricCollector) Collect(ch chan<- prometheus.Metric) + func (mc JsonMetricCollector) Describe(ch chan<- *prometheus.Desc)