Java Spring Boot 2 application monitoring with Netdata
Monitors one or more Java Spring-boot applications depending on configuration. Netdata can be used to monitor running Java Spring Boot applications that expose their metrics with the use of the Spring Boot Actuator included in Spring Boot library.
#
ConfigurationThe Spring Boot Actuator exposes these metrics over HTTP and is very easy to use:
- add
org.springframework.boot:spring-boot-starter-actuator
to your application dependencies - set
endpoints.metrics.sensitive=false
in yourapplication.properties
You can create custom Metrics by add and inject a PublicMetrics in your application. This is a example to add custom metrics:
Please refer Spring Boot Actuator: Production-ready Features and 81. Actuator - Part IX. ‘How-to’ guides for more information.
#
ChartsResponse Codes in requests/s
- 1xx
- 2xx
- 3xx
- 4xx
- 5xx
- others
Threads
- daemon
- total
GC Time in milliseconds and GC Operations in operations/s
- Copy
- MarkSweep
- ...
Heap Memory Usage in KB
- used
- committed
#
UsageEdit the python.d/springboot.conf
configuration file using edit-config
from the Netdata config
directory, which is typically at /etc/netdata
.
This module defines some common charts, and you can add custom charts by change the configurations.
The configuration format is like:
By default, it creates response_code
, threads
, gc_time
, gc_ope
abd heap
charts.
You can disable the default charts by set defaults.<chart-id>: false
.
The dimension name of extras charts should replace .
to _
.
Please check springboot.conf for more examples.