{{range $name, $tmf := .Metrics }}
{{$mCount := $data.Count}}
{{$name}}
{{$tmf.GetMetricFamily.GetHelp}}
{{$tmf.GetMetricFamily.GetType}}
last pushed: {{$tmf.Timestamp}}
Labels |
Value |
Timestamp |
{{range $tmf.GetMetricFamily.Metric}}
{{range .Label}}
{{.Name}}="{{.GetValue}}"
{{end}}
|
{{with .Gauge}}
{{value .GetValue}}
{{else}}
{{with .Counter}}
{{value .GetValue}}
{{else}}
{{with .Untyped}}
{{value .GetValue}}
{{else}}
{{with .Summary}}
{{range .Quantile}}
Quantile {{.GetQuantile}} |
{{value .GetValue}} |
{{end}}
Sample Count |
{{.GetSampleCount}} |
Sample Sum |
{{value .GetSampleSum}} |
{{else}}
{{with .Histogram}}
{{range .Bucket}}
Sample values ≤ {{value .GetUpperBound}} |
{{.GetCumulativeCount}} |
{{end}}
Total sample Count |
{{.GetSampleCount}} |
Sample Sum |
{{value .GetSampleSum}} |
{{end}}
{{end}}
{{end}}
{{end}}
{{end}}
|
{{if .TimestampMs}}
{{$t := .TimestampMs | $data.FormatTimestamp}}{{$t}} {{/* Indirection via $t needed. Bug in template/html? */}}
{{end}}
|
{{end}}
{{end}}