Sensu influxDB Grafana cheat sheet: Difference between revisions
Jump to navigation
Jump to search
Line 44: | Line 44: | ||
:もちろんこれも | :もちろんこれも | ||
[http://play.grafana.org/dashboard/db/influxdb Grafana - InfluxDB] | [http://play.grafana.org/dashboard/db/influxdb Grafana - InfluxDB] | ||
:meam(0 - value) おーーナイスなテクニック |
Revision as of 18:13, 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
- これを参考にホゲる!
- もちろんこれも
Grafana - InfluxDB
- meam(0 - value) おーーナイスなテクニック