Add /management endpoint provided via Spring Actuator
The new endpoint provide metrics including information about application environment, configuration, beans, caches via Spring Actuator. Additional custom endpoints for version info and statistics are available. The endpoint is protected by Spring Security and requires the admin role.
To allow monitoring of metrics, a Prometheus endpoint is provided via Micrometer.
The /management/health endpoint times out at the moment but this is caused by existing issues with beans for external services.
Web API documentation: https://docs.spring.io/spring-boot/docs/2.1.x/actuator-api/html/
Known issue:
Content type application/json
may not be set for the Accept
header of requests to the management API. Otherwise, only a JSON stub is returned. application/vnd.spring-boot.actuator.v2+json
or */*
should be used instead.
Refs #16 (closed).
Merge request reports
Activity
added api performance labels
changed milestone to %3.0-beta1
added 3 commits
-
2a5f09d9...884f6446 - 2 commits from branch
master
- d5190dac - Add /management endpoint provided via Spring Actuator
-
2a5f09d9...884f6446 - 2 commits from branch
added 9 commits
-
d5190dac...132a42fd - 6 commits from branch
master
- 172493cf - Add /management endpoint provided via Spring Actuator
- f363f4d5 - Remove Dropwizard/Stagemonitor metrics related code and deps
- 34a4d337 - WIP: Restrict access to /management endpoint to ROLE_ADMIN
Toggle commit list-
d5190dac...132a42fd - 6 commits from branch
added 1 commit
- ac6248f4 - Restrict access to /management endpoint to ROLE_ADMIN
added 1 commit
- 6de0308b - Restrict access to /management endpoint to ROLE_ADMIN
added ops label
@tksl38 Ready for review.
Management API usage example:
http localhost:8080/management/metrics/http.server.requests arsnova-auth-token:<admin-auth-token> http localhost:8080/management/prometheus arsnova-auth-token:<admin-auth-token>