grobian / carbon-c-relay

Enhanced C implementation of Carbon relay, aggregator and rewriter
Apache License 2.0
380 stars 107 forks source link

Internal metrics reported by carbon-c-relay seems to be wrong #427

Closed ervikrant06 closed 3 years ago

ervikrant06 commented 3 years ago

Plotting internal metrics of carbon-c-relay and go-carbon.. Pictures are showing stacked output. carbon-c-relay it showing total number of received metrics to be 1.5B but the total number of metrics reported by go-carbon is approx 5-6M I believe go-carbon reporting correct state.

Carbon-c-relay stat

image ` go-carbon stat

image

Some info about setup:

Whole setup is running in K8s

cluster graphite
        fnv1a_ch
                cache-testsvc-1:2003
                cache-testsvc-2:2003
                cache-testsvc-3:2003
    ;
listen
        type linemode
                2003 proto tcp
   ;
match
    *
    send to graphite
  ;
grobian commented 3 years ago

you need to use nonNegativeDerivative with c-relay's stats

ervikrant06 commented 3 years ago

Thanks. It worked.