Sensu influxDB Grafana cheat sheet: Difference between revisions
Jump to navigation
Jump to search
Line 36: | Line 36: | ||
select mean(value) from "cpu_system" where $timeFilter and host = 'host3' group by time($interval) order asc | select mean(value) from "cpu_system" where $timeFilter and host = 'host3' group by time($interval) order asc | ||
:and host = 'host3' に注目 | :and host = 'host3' に注目 | ||
*Templated dashboard 便利かも | |||
[http://play.grafana.org/dashboard/db/influxdb-templated-queries Grafana - InfluxDB Templated Queries] | |||
:これを参考にホゲる! |
Revision as of 18:07, 21 May 2015
Sensu influxDB Grafana 実験
Sensu
- omnibus installer
- ruby の環境を維持するのが良いので /etc/default/sensu は
EMBEDDED_RUBY=true
- /opt/sensu/embedded/bin/ruby を維持
- sensu plugin
- gem でインストールするまえに ~/.gemrc におまじない
gem: --no-ri --no-rdoc
- また現在は再編中とのことで、gem install には
--prerelease
- オプションが必要
- config
- 複数台の client で役割にあわせて checks かえるために subscriptions をうまく使う
"subscriptions": [ "linux", "load_balance" ]
influxDB
Grafana
- influxdb query で複数のホストから任意のホストのメトリックスを抽出
select mean(value) from "cpu_system" where $timeFilter and host = 'host3' group by time($interval) order asc
- and host = 'host3' に注目
- Templated dashboard 便利かも
Grafana - InfluxDB Templated Queries
- これを参考にホゲる!