Negative values (peaks) appear when we deploy (restart) our application via CI pipeline. This seems to start happening with version update spring boot 2.2 -> 2.3.
Since I started to create this sample and tried to reproduce the negative peaks I could see no consistent behavior. Sometimes there are negative peaks on shutdown and sometimes not.
- start graphite container + spring boot app
- request e.g. http://localhost:8080/actuator/metrics/tomcat.global.request several times
- goto http://localhost:19090/
- clock path: Metrics -> namespace -> to -> my -> micrometer -> tomcatGlobalRequest -> name -> http-nio-8080 -> m1_rate (see graph)
- now shut down the application (eventually negative values already appears)
- adjust application.properties e.g. remove or change 'server.max-http-header-size' and start the app again
- repeat steps 2 to 5
- have a look at the tomcatGlobalRequest m1_rate graph in graphite which sometimes appears negative
- if there are no negative values repeat steps 5 to 8
docker run --name test-graphite --restart=always -p 19090:80 -p 12003:2003 graphiteapp/graphite-statsd