Skip to content

Commit

Permalink
Added Grafana dashboard & README
Browse files Browse the repository at this point in the history
  • Loading branch information
mszarlinski committed Sep 14, 2019
1 parent c6b62cd commit 4d927b5
Show file tree
Hide file tree
Showing 2 changed files with 3,214 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -704,7 +704,7 @@ a look:
}
```
- As you could see above, we also try not to use component scan wherever possible. Instead we utilize
`@Configuration` classes where we define module specific beans in the infrastracture layer. Those
`@Configuration` classes where we define module specific beans in the infrastructure layer. Those
configuration classes are explicitly declared in the main application class.
### Tests
Expand Down Expand Up @@ -794,6 +794,20 @@ Either way once built you can run it like so:
$ docker run -ti --rm --name spring-library -p 8080:8080 spring/library
```

To run the application as well as Grafana dashboard for visualizing metrics run all services:

```console
$ docker-compose run
```


### Production ready metrics and visualization
* http://localhost:8080/actuator/prometheus - published Micrometer metrics
* http://localhost:9090 - Prometheus dashboard
* http://localhost:3000 - Grafana dashboard

To create a dashboard go to Create -> Import and select attached `jvm-micrometer_rev8.json`. File has been pulled from
`https://grafana.com/grafana/dashboards/4701`

## References

Expand Down
Loading

0 comments on commit 4d927b5

Please sign in to comment.