Skip to content

Commit

Permalink
Merge pull request #10 from madflojo/metrics
Browse files Browse the repository at this point in the history
Adding Grafana and Prometheus to the Docker Compose file
  • Loading branch information
madflojo authored Nov 25, 2023
2 parents cc63a78 + 31a770b commit 523821e
Show file tree
Hide file tree
Showing 7 changed files with 1,037 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ tests:
docker-compose:
docker compose up -d mysql
sleep 15
docker compose up airport-lookup-example
docker compose up example

docker-compose-background:
docker compose up -d mysql
sleep 15
docker compose up -d airport-lookup-example
docker compose up -d example

run: build docker-compose
run-nobuild: docker-compose
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ service dependencies are up and accessible. If everything is up and ready, a `20
This service leverages metrics & logging for observability. Users can enable Debug and Trace logging via the
environment variable configuration in the `docker-compose.yml` file.

Applications metrics are exposed via the `/metrics` end-point.
Applications metrics are exposed via the `/metrics` end-point. With a dashboard available at <http://localhost:3000/> (username: admin, password: example).

#### Caching

Expand Down
12 changes: 12 additions & 0 deletions config/grafana/dashboard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: 1

providers:
- name: "Dashboard provider"
orgId: 1
type: file
disableDeletion: false
updateIntervalSeconds: 10
allowUiUpdates: false
options:
path: /var/lib/grafana/dashboards
foldersFromFilesStructure: true
Loading

0 comments on commit 523821e

Please sign in to comment.