-
-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
Description
Promtool is complaining about non-conformity with OpenMetrics standards.
curl -sS http://api:8081/metrics | promtool check metrics
gorm_dbstats_wait_count non-histogram and non-summary metrics should not have "_count" suffixMeanwhile, I used the following workaround to disable this collector:
// workaround for
// prom tool is complaining about this particular field:
dbStatsValue := reflect.ValueOf(*dbStatsPrometheus.DBStats)
field := dbStatsValue.FieldByName("WaitCount")
fmt.Println(field, field.String())
prometheus.Unregister(field.Interface().(prometheus.Gauge))Metadata
Metadata
Assignees
Labels
No labels