-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure prometheus to monitor deployed app
- Loading branch information
1 parent
4bc3c8f
commit c4e50d3
Showing
2 changed files
with
7 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
scrape_configs: | ||
- job_name: 'MyAppMetrics' | ||
- job_name: 'Snackscription Metrics' | ||
metrics_path: '/actuator/prometheus' | ||
scrape_interval: 3s | ||
static_configs: | ||
- targets: ['host.docker.internal:8080'] | ||
labels: | ||
application: 'Snackscription Review' | ||
application: 'Snackscription Review' | ||
- targets: ['34.124.152.90'] | ||
labels: | ||
application: 'Snackscription Review (deployed)' |
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