MCPcopy
hub / github.com/prometheus/pushgateway / newPushFailedTimestampGauge

Function newPushFailedTimestampGauge

storage/diskmetricstore.go:506–508  ·  view source on GitHub ↗
(groupingLabels map[string]string, t time.Time)

Source from the content-addressed store, hash-verified

504}
505
506func newPushFailedTimestampGauge(groupingLabels map[string]string, t time.Time) *dto.MetricFamily {
507 return newTimestampGauge(pushFailedMetricName, pushFailedMetricHelp, groupingLabels, t)
508}
509
510func newTimestampGauge(name, help string, groupingLabels map[string]string, t time.Time) *dto.MetricFamily {
511 var ts float64

Callers 9

processWriteRequestMethod · 0.85
TestNoPersistenceFunction · 0.85
TestRejectTimestampsFunction · 0.85
TestSanitizeLabelsFunction · 0.85
TestReplaceFunction · 0.85
TestGetMetricFamiliesMapFunction · 0.85

Calls 1

newTimestampGaugeFunction · 0.85

Tested by 7

TestNoPersistenceFunction · 0.68
TestRejectTimestampsFunction · 0.68
TestSanitizeLabelsFunction · 0.68
TestReplaceFunction · 0.68
TestGetMetricFamiliesMapFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…