Statsd and InfluxDB: how to handle host information?

懵懂的女人 提交于 2019-12-10 09:46:04

问题


I want to measure statsd performance metrics in a couple of applications on a couple of hosts. Those measurements will be aggregated by statsd, then stored in influxdb and then visualized in grafana. The architecture will be very similar to the one shown in this blog post: http://www.symantec.com/connect/blogs/metrics-cocktail-statsdinfluxdbgrafana

App -> Statsd -> InfluxDB -> Grafana

My application 'app1' runs on host1, host2, host3 in environment 'prod'.

So my statsd metrics names as sent from app1 in prod would be:

prod.app1.host1.load_customer
prod.app1.host2.load_customer
prod.app1.host3.load_customer

In grafana in prod I would then see three different metrics for the same thing, but I really want to see only one metric called prod.app1.load_customer that aggregates over all three hosts of the prod environment. I would like to be able to drill into a certain host if needed, however.

I think this should be a pretty common problem for users of this toolchain so I guess some people must have solved it?

I'm using influxdb-0.9.3-1, writing to it via API calls.

来源:https://stackoverflow.com/questions/32484708/statsd-and-influxdb-how-to-handle-host-information

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!