-
Notifications
You must be signed in to change notification settings - Fork 4
Demo service
Lachezar Balev edited this page May 16, 2018
·
3 revisions
The demo service is a very simple spring boot service which exports several metrics - out-of-the-box (via micrometer) and custom. The service might be imported your favourite IDE and explored and/or started.
The following metrics are discussed and of interest:
demoservice_heart_beat_total{beat="beat1"}
demoservice_heart_beat_total{beat="beat2"}
demoservice_gauge
logback_events_total{level="error"}
logback_events_total{level="warn"}
logback_events_total{level="info"}
logback_events_total{level="debug"}
logback_events_total{level="trace"}
The demo service exposes several endpoints described below.
- Prometheus - the service metrics is exported here, prometheus collects this data.
-
Error log - logs
jprime
in the error log. -
Warning log - logs
jprime
in the warning log. - Echo - echoes everything which is POST-ed in the logs.