Documentation
¶
Index ¶
- Variables
- func CheckMetric(promAddress, metricName string, validMetric map[string]string) error
- func CheckMetricFromBuffer(prometheusMetricData []byte, metricName string, validMetric map[string]string) error
- func GetMetricGuageValueFromBuffer(prometheusMetricData []byte, metricName string, ...) (float64, error)
- func ParseReaderPrometheusMetrics(input io.Reader) (map[string]*promclient.MetricFamily, error)
- func StripExecGarbage(s string) string
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoMetricFound = fmt.Errorf("no metric found")
)
Functions ¶
func CheckMetric ¶
func CheckMetricFromBuffer ¶ added in v0.0.17
func ParseReaderPrometheusMetrics ¶ added in v0.0.17
func ParseReaderPrometheusMetrics(input io.Reader) (map[string]*promclient.MetricFamily, error)
func StripExecGarbage ¶
When capturing promethus output via curl and exect, there's a lot of garbage at the front
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.