Sensu influxDB Grafana cheat sheet: Difference between revisions

From misc notes
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 便利かも
*Templated dashboard 便利かも
  [http://play.grafana.org/dashboard/db/influxdb-templated-queries Grafana - InfluxDB Templated Queries]
  [http://play.grafana.org/dashboard/db/influxdb-templated-queries Grafana - InfluxDB Templated Queries]
:これを参考にホゲる!
:これを参考にホゲる!
:もちろんこれも
[http://play.grafana.org/dashboard/db/influxdb Grafana - InfluxDB]

Revision as of 18:11, 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