/boot-metrics-exporter

Springboot metrics导出到influxdb

Primary LanguageJava

How to use

<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>

<dependency>
    <groupId>com.github.Ryan-Miao</groupId>
    <artifactId>boot-metrics-exporter</artifactId>
    <version>1.0</version>
</dependency>

application.yaml

management:
  metrics:
    export:
      influx:
        db: my-db
        uri: http://192.168.5.9:8086
        user-name: admin
        password: admin
        enabled: true
    web:
      server:
        auto-time-requests: true
    tags:
      app: ${spring.application.name}

More details: https://www.cnblogs.com/woshimrf/p/springboot-metrics-expore-influxdb-grafana.html