Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeMetricName ¶
func SanitizeIntValue ¶
func SanitizeValue ¶
Types ¶
type JSONFetcher ¶
type JSONFetcher struct {
// contains filtered or unexported fields
}
func NewJSONFetcher ¶
type JSONMetric ¶
type JSONMetric struct { Desc *prometheus.Desc Type config.ScrapeType KeyJSONPath string ValueJSONPath string LabelsJSONPaths []string ValueType prometheus.ValueType EpochTimestampJSONPath string }
func CreateMetricsList ¶
func CreateMetricsList(c config.Module) ([]JSONMetric, error)
type JSONMetricCollector ¶
type JSONMetricCollector struct { JSONMetrics []JSONMetric Data []byte }
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.