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
Loghouse queries can be used as metrics for Prometheus. Consider query select count(*) as value, namespace from logs where log ~ ".*error.*" group by namespace.
This query can be run every minute, so Prometheus will get errors number as a metric: log_errors{namespace="$namespace"} $value.
Features:
metrics should have types: gauge, counter, histogram;
metrics’ labels should be populated from query’s results or parameters;
metrics’ value should be populated from query’s results;
loghouse-backend should have metrics endpoint for Prometheus scrapers.
The text was updated successfully, but these errors were encountered:
Loghouse queries can be used as metrics for Prometheus. Consider query
select count(*) as value, namespace from logs where log ~ ".*error.*" group by namespace
.This query can be run every minute, so Prometheus will get errors number as a metric:
log_errors{namespace="$namespace"} $value
.Features:
The text was updated successfully, but these errors were encountered: