Skip to content

cmon-telegraf reports have with insufficently precise tags

The current version of cmon-telegraf looks like this:

                    println!(r#"cmon,host={},user={} pid={}u,ppid={}u,job_id="{}",rss={}u,utime={},stime={},cutime={},cstime={}"#,
                             hostname, user, p.pid, stats.ppid,  job_id, rss, utime_in_seconds(stats.utime, clk_tk), utime_in_seconds(stats.stime, clk_tk),
                             itime_in_seconds(stats.cutime, clk_tk), itime_in_seconds(stats.cstime, clk_tk),);

meaning that only host and user are tags. Problem is, only one tag combination per timestamp is allowed, so some data points are currently overwritten. I think pid should be added as a tag, what do you think @thomas.lahaie1?