-
-
Notifications
You must be signed in to change notification settings - Fork 152
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
Automatically provision metrics dashboards? #151
Comments
I did a sqlite3 dump here: https://gist.github.com/gabriel-v/0ba9f15d62dd9a5aec5e1f1a475b5b84 I see relevant tables here:
Guess I'll truncate & repopulate these 3 on every container boot from a template. |
Hey @gabriel-v, We have dashboard templates here: https://github.com/uptrace/uptrace/tree/master/config/dashboard-templates. You can add your templates there and Uptrace will pick them up when it is restarted. Uptrace keeps those templates in memory and automatically provisions a dashboard when it receives a metric that is used in the template, for example, "HTTP: Server" dashboard will be created when We have lots of plans for dashboard templates:
If you willing to help with this work, let's connect via Telegram / Slack to discuss details. |
That's exactly what I was looking for! I missed that section of your code. I wanted to add a reference to everything you just said in your docs page on Metrics and also referenced here and as a separate "Managing Dashboards" section here, but I don't see documentation sources on GitHub where to send PR.
Yes, that sounds like it would close the loop where you edit the dashboard, save the yaml and push the changes back to the servers. I'll get in touch next week about contributing this feature. Closing issue: it works |
I was looking at the "Querying Metrics" documentation page and I am wondering how to automatically provision dashboard from the configuration YML file.
This would be similar to how Grafana loads dashboard from folders, encoded as JSON.
The documentation page mentions examples like this:
...but I don't see in the configuration file definition how they are used. I suppose these are actually instructions for clicking in the UI, not code samples?
Questions:
Thank you!
The text was updated successfully, but these errors were encountered: