2

Let's say, we collect NTP-offset statistics from 500 servers. Each is known to Graphite as stats.hostname.ntpstats.offset.

I'd like my chart to show two curves:

  • A particular host's offset (easy)
  • The average of all hosts (with or without the one host above)

Can this be done? If not with Graphite, how about Grafana?

4

You can do this by using a wildcard:

avg(stats.*.ntpstats.offset)

1
  • Awesome, thanks! Any idea, why avg(abs(stats.*.ntpstats.offset)) does not work, though? I get a KeyError-exception from Graphite...
    – Mikhail T.
    Jul 16 '16 at 7:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.