-
Notifications
You must be signed in to change notification settings - Fork 0
Feature/spring prometheus grafana #33
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
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
9f8dea9
feat(spring-prometheus-grafana-example): add endpoint test,docker-com…
igorcampos-dev 5441ae1
chore(spring-prometheus-grafana-example): adjustment workflow
igorcampos-dev 504f26a
Update spring-prometheus-grafana-example.yml
igorcampos-dev 01ecbc5
chore(spring-prometheus-grafana-example): adjustment workflow and com…
igorcampos-dev 2e94e24
chore(spring-prometheus-grafana-example): include new labeler and adj…
igorcampos-dev 65dab16
Update README.md
igorcampos-dev af35e82
Update TestController.java
igorcampos-dev 021ca67
Update compose.yaml
igorcampos-dev 7fd5e69
Update compose.yaml
igorcampos-dev 8c90c78
Update README.md
igorcampos-dev 4b0f616
Update labeler.yml
igorcampos-dev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| # spring-prometheus-grafana-example | ||
|
|
||
| --- | ||
|
|
||
| ## Overview | ||
|
|
||
| This is a basic Java Spring project demonstrating how to integrate Prometheus and Grafana | ||
| to collect and visualize application metrics from a Spring Boot application. | ||
| Metrics are exposed via Spring Actuator and scraped by Prometheus, which are then displayed | ||
| in customizable dashboards using Grafana. | ||
|
|
||
| --- | ||
|
|
||
| ## Tech stack | ||
|
|
||
| - Spring Boot | ||
| - Spring Actuator | ||
| - Java 21 | ||
| - Prometheus (Docker) | ||
| - Grafana (Docker) | ||
|
|
||
| --- | ||
|
|
||
| ## Ports | ||
|
|
||
| | Service | Local URL | Username/Password | | ||
| |------------|------------------------------------------------|-------------------| | ||
| | Prometheus | [http://localhost:9090](http://localhost:9090) | n/a | | ||
| | Grafana | [http://localhost:3000](http://localhost:3000) | admin/admin | | ||
|
|
||
| --- | ||
|
|
||
| ## Related Resources | ||
|
|
||
| | Description | Link | | ||
| |--------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ||
| | Basic config spring + grafana + prometheus | [monitoring-spring-boot-applications-with-prometheus-and-grafana](https://hidev.cc/tutoriais-praticos/2025/03/monitorando-aplicacoes-spring-boot-com-prometheus-e-grafana/) | | ||
| | Grafana Dashboards Spring boot | [grafana.com/grafana/dashboards](https://grafana.com/grafana/dashboards/?search=spring+boot) | | ||
|
|
||
| --- | ||
|
|
||
| ## Dashboards Configured | ||
|
|
||
| | Name | File Path | Source | | ||
| |-------------------------|------------------------------------------------|----------------------------------------------------------------------------------------| | ||
| | Spring Boot JVM Metrics | `docker/dashboards/jvm-metrics-dashboard.json` | [Grafana Dashboard #4701](https://grafana.com/grafana/dashboards/4701-jvm-micrometer/) | | ||
|
|
||
| --- |
This file contains hidden or 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.