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

💡 [Feature] Add recording rules to Prometheus configuration to store hourly/daily metrics #447

Open
huard opened this issue Apr 10, 2024 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@huard
Copy link
Collaborator

huard commented Apr 10, 2024

... trying to split the metrics collection issue into small digestible bits.

Description

  1. Select among all existing metrics recorded by Prometheus those of interest to external stakeholders:
  • Number of active users
  • CPU usage
  • Bandwidth usage
  • ...
  1. Create recording rules in our current Prometheus server to store hourly/daily resolution metrics:
  • Total number of active users per day
  • Mean hourly CPU usage
  • Mean hourly bandwidth usage
  • ...

Make sure the frequency is clearly indicated in the metrics names.

  1. Display hourly/daily data in Graphana dashboard

This doesn't solve the data retention issue, but it's a necessary step. A second Prometheus instance can federate the first instance and scrape the metrics that match a hourly/daily regexp pattern.

References

#277

Concerned Organizations

@mishaschwartz
Copy link
Collaborator

@huard you mentioned that there is an existing metric that records total number of active users per day. Do you know which metric that is (its name, how it is collected)?

@huard
Copy link
Collaborator Author

huard commented Jun 13, 2024

The only thing I know is that it's part of the vanilla config that came with the docker image. @tlvu would know more about this.

@tlvu
Copy link
Collaborator

tlvu commented Jun 13, 2024

The only thing I know is that it's part of the vanilla config that came with the docker image. @tlvu would know more about this.

No we do not have that metric (total number of active users per day).

All the metrics that comes with the "vanilla" config are listed here https://github.com/bird-house/birdhouse-deploy/blob/9d9f46c497e2b00a6ad5be9f1e3ec322f85868a3/birdhouse/components/README.rst#grafana-dashboard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants