You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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" suffix
Meanwhile, 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))
The text was updated successfully, but these errors were encountered:
Description
Promtool is complaining about non-conformity with OpenMetrics standards.
Meanwhile, I used the following workaround to disable this collector:
The text was updated successfully, but these errors were encountered: