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?

Mikhail T.
  • 2,272
  • 1
  • 22
  • 49

1 Answers1

4

You can do this by using a wildcard:

avg(stats.*.ntpstats.offset)

jordanm
  • 869
  • 5
  • 9
  • 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 07:54