I am using micrometer in my Java application to wirte into my influxDB. When there is data to be recorder I call the corresponding methods of micrometer to store these data in influxDB, this works flawless.
The problem comes when there is no data to be stored but micrometer keeps writing into the DB which pollutes my data base with a lot of 0s. It will write as frequent as I configure micrometer, in this case every second. When I execute a query into the DB I see a lot of 0s
In grafana it looks as if I saved those 0s which makes the average calculation a useless value and when executing a query of several days in the past it can brake grafana.