Starter for StatsD and Prometheus custom metrics
Для включения экспорта метрик указать параметры в application.yml
.
StatsD
management:
metrics:
export:
statsd:
enabled: true
flavor: etsy
# specify StatsD address
host: changeit
port: 8125
Prometheus
management:
server:
# optional – use 8022 for backward compatibility with wetkitty
port: 8023
endpoint:
metrics:
enabled: true
prometheus:
enabled: true
endpoints:
web:
exposure:
include: health,info,prometheus
metrics:
export:
prometheus:
enabled: true