Hello, We are using Telegraf, Influxdb, Kapacitor to monitor our system. One of the components monitored is Consul. We are seeing the following measurements in influxdb as a result of using Consul plugin with Telegraf:
consul name: consul ------------ time consul.session_ttl.active host metric_type node runtime.alloc_bytes runtime.free_count runtime.heap_objects runtime.malloc_count runtime.num_goroutines runtime.sys_bytes runtime.total_gc_pause_ns runtime.total_gc_runs 1486016860000000000 0 spydev0117-control-1 gauge spydev0117-control-1 8.986376e+06 1.7846562816e+10 52793 1.7846616064e+10 507 3.8762744e+07 1.591017865216e+12 110666 consul.runtime.gc_pause_ns name: consul.runtime.gc_pause_ns -------------------------------- time 90_percentile count host lower mean metric_type stddev upper 1486016860000000000 1.300114e+07 4 spydev0117-control-1 1.951964e+06 7.46887525e+06 timing 5.481349072651065e+06 1.300114e+07 Now, we would like to write a tick script to alert on Consul GC's taking too long. I am tempted to start with this, i.e. "alert if consul gc_pause every goes above 500 ms" select * from "consul.runtime.gc_pause_ns" where upper/1000000 > 500 But I am not sure what to do with the rolled-up metrics that we get from the "consul" measurement. What is the value of runtime.total_gc_pause_ns? Can I simply divide that by the interval over which that number is reported to get an estimate of "total gc time"? Thanks in advance, and sorry for the really detailed question. Regards -Sundar -- Remember to include the version number! --- You received this message because you are subscribed to the Google Groups "InfluxData" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/influxdb. To view this discussion on the web visit https://groups.google.com/d/msgid/influxdb/3e143b85-cebd-422d-a760-c8c78175b046%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
