I have a Rest service implemented with Spring Boot 1.x. I'm trying to send metrics data to an existing influx db by leveraging actuator /metrics. I've found out that Micrometer project (http://micrometer.io/docs/influx#_install) supports Spring Boot integration, but I am unable to find any documentation on how to configure the project to talk to the influx db. E.g: influxdb.connurl, username, dbname etc.
My /metrics works fine. When I make a rest request to my endpoint, because influx db conn is not configured, I'm getting this error:
** [spectator-spring-metrics-publisher-0] WARN io.micrometer.influx.InfluxRegistry - failed to send metrics **
dependencies:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
<version>${spring-boot.version}</version>
</dependency>
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-spring-legacy</artifactId>
<version>${micrometer.version}</version>
</dependency>
<dependency>
<groupId>io.micrometer</groupId>
<artifactId>micrometer-registry-influx</artifactId>
<version>${micrometer.version}</version>
</dependency>
Is there a documentation somewhere how to write the metrics to influx db? I can write a parser for localhost access file, and install a Telegraf agent to send system metrics, but want to pursue this route first.