Custom metrics Spring Boot starter

Starter for StatsD and Prometheus custom metrics

License

License

Categories

Categories

Spring Boot Container Microservices Metrics Application Testing & Monitoring Monitoring
GroupId

GroupId

com.rbkmoney
ArtifactId

ArtifactId

custom-metrics-spring-boot-starter
Last Version

Last Version

1.2.5
Release Date

Release Date

Type

Type

jar
Description

Description

Custom metrics Spring Boot starter
Starter for StatsD and Prometheus custom metrics
Project URL

Project URL

https://github.com/rbkmoney/custom-metrics-spring-boot-starter.git
Source Code Management

Source Code Management

https://github.com/rbkmoney/custom-metrics-spring-boot-starter/tree/master

Download custom-metrics-spring-boot-starter

How to add to project

<!-- https://jarcasting.com/artifacts/com.rbkmoney/custom-metrics-spring-boot-starter/ -->
<dependency>
    <groupId>com.rbkmoney</groupId>
    <artifactId>custom-metrics-spring-boot-starter</artifactId>
    <version>1.2.5</version>
</dependency>
// https://jarcasting.com/artifacts/com.rbkmoney/custom-metrics-spring-boot-starter/
implementation 'com.rbkmoney:custom-metrics-spring-boot-starter:1.2.5'
// https://jarcasting.com/artifacts/com.rbkmoney/custom-metrics-spring-boot-starter/
implementation ("com.rbkmoney:custom-metrics-spring-boot-starter:1.2.5")
'com.rbkmoney:custom-metrics-spring-boot-starter:jar:1.2.5'
<dependency org="com.rbkmoney" name="custom-metrics-spring-boot-starter" rev="1.2.5">
  <artifact name="custom-metrics-spring-boot-starter" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.rbkmoney', module='custom-metrics-spring-boot-starter', version='1.2.5')
)
libraryDependencies += "com.rbkmoney" % "custom-metrics-spring-boot-starter" % "1.2.5"
[com.rbkmoney/custom-metrics-spring-boot-starter "1.2.5"]

Dependencies

compile (6)

Group / Artifact Type Version
org.springframework.boot : spring-boot-autoconfigure jar 2.3.8.RELEASE
org.springframework.boot : spring-boot-configuration-processor Optional jar 2.3.8.RELEASE
org.springframework.boot : spring-boot-starter-actuator jar 2.3.8.RELEASE
io.micrometer : micrometer-registry-statsd jar 1.5.6
io.micrometer : micrometer-core jar 1.5.6
io.micrometer : micrometer-registry-prometheus jar 1.5.6

provided (1)

Group / Artifact Type Version
org.springframework.boot : spring-boot jar 2.3.8.RELEASE

Project Modules

There are no modules declared in this project.

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
com.rbkmoney

RBKmoney

Versions

Version
1.2.5
1.2.0