Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loghouse as a source for Prometheus #74

Open
z9r5 opened this issue Feb 20, 2018 · 0 comments
Open

Loghouse as a source for Prometheus #74

z9r5 opened this issue Feb 20, 2018 · 0 comments

Comments

@z9r5
Copy link
Contributor

z9r5 commented Feb 20, 2018

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant