-
Notifications
You must be signed in to change notification settings - Fork 44
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
feat(prometheus): add prometheus support #134
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d05dfdc
to
c8e424e
Compare
7c07014
to
a3880f8
Compare
zhwrd
approved these changes
Jan 15, 2025
zhwrd
pushed a commit
that referenced
this pull request
Jan 27, 2025
### Description This PR builds on the [previously-added Prometheus support](#134) to add Grafana support by: - adding a `grafana_params` section to the top-level `observability` parameter section - deploying a Grafana server - implementing dashboard provisioning The `grafana` module from the `ethereum-package` package was used as inspiration, but modified to simplify devX by removing support for inline dashboards and improving remote dashboard source support. Additionally, this PR implements API provisioning using the official [grizzly](https://grafana.github.io/grizzly/) tool, over the existing file-based provisioning approach to simplify the process of keeping Kurtosis Grafana in-sync with hosted Grafana. To this end, two new repositories ([`grafana-dashboards`](https://github.com/ethereum-optimism/grafana-dashboards), [`grafana-dashboards-public`](https://github.com/ethereum-optimism/grafana-dashboards-public)) have been created, with the intention of tracking extant public & private dashboards in hosted Grafana. This PR has been tested and successfully deploys a Grafana server with including all public dashboards present on our hosted Grafana instance, organized into the same folder structure: <img width="1214" alt="image" src="https://github.com/user-attachments/assets/9a007f0e-fb95-4399-9a96-8be3f33e4eba" /> Not all dashboards are yet at full parity, but a fair number of them do show data: <img width="1807" alt="image" src="https://github.com/user-attachments/assets/d1223067-9d31-4b8c-a76a-a9d7b4b4c787" /> If you want to try this out locally, add the following snippet to your params file: ```yaml optimism_package: observability: grafana_params: dashboard_sources: - github.com/ethereum-optimism/grafana-dashboards-public/resources@aa35389fc5dec4043838757e2372368c3efb0a29 ``` Remaining work: - continue converging metrics to enable additional dashboards - implement promtail/loki support to enable log-based dashboard panels - deploy any services required for certain dashboards (ie replica-healthcheck) (?) - support a subset of existing dashboards using tags/folders - automatic updates of the [`grafana-dashboards`](https://github.com/ethereum-optimism/grafana-dashboards) repository
sigma
added a commit
that referenced
this pull request
Jan 29, 2025
#134 accidentally broke the convention that an explicit "" for images meant using the default ones. This restores that behavior for now.
sigma
added a commit
that referenced
this pull request
Jan 30, 2025
#134 accidentally broke the convention that an explicit "" for images meant using the default ones. This restores that behavior for now.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds support for monitoring with Prometheus, by:
observability
parameter sectionThe
prometheus
module from theethereum-package
package was used as inspiration, but modified to add helper methods and improve the job-registration workflow.This PR has been tested and successfully deploys a Prometheus server with functioning metrics scrape jobs:
![image](https://private-user-images.githubusercontent.com/52695/402156763-397d5c5c-2465-40cd-a18e-9c581fb30ace.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2OTg4NDYsIm5iZiI6MTczOTY5ODU0NiwicGF0aCI6Ii81MjY5NS80MDIxNTY3NjMtMzk3ZDVjNWMtMjQ2NS00MGNkLWExOGUtOWM1ODFmYjMwYWNlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE2VDA5MzU0NlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI3ZWE0ODU1YTE0NzcyODJjOTEyYTMyMjJmOTQyYjE2YmYwNGFiNWNhN2FiNzkwNzYxNDUwMzAxODBiODJlNWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.dpKTWXIRlIJM27OlYTO79kmt6xG1mVcaDnQS0olO9Bw)