Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeMetricName ¶
func SanitizeIntValue ¶ added in v0.6.0
func SanitizeValue ¶
Types ¶
type JSONFetcher ¶ added in v0.4.0
type JSONFetcher struct {
// contains filtered or unexported fields
}
func NewJSONFetcher ¶ added in v0.4.0
type JSONMetric ¶ added in v0.4.0
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 ¶ added in v0.4.0
type JSONMetricCollector struct { JSONMetrics []JSONMetric Data []byte Logger *slog.Logger }
func (JSONMetricCollector) Collect ¶ added in v0.4.0
func (mc JSONMetricCollector) Collect(ch chan<- prometheus.Metric)
func (JSONMetricCollector) Describe ¶ added in v0.4.0
func (mc JSONMetricCollector) Describe(ch chan<- *prometheus.Desc)
Click to show internal directories.
Click to hide internal directories.