Kapacitor

Aus xinux.net
Zur Navigation springen Zur Suche springen

Install

Configuration

  • kapacitord config > kapacitor.conf (Konfigurationsdatei anlegen)
  • vi /etc/kapacitor/kapacitor.conf
# Multiple InfluxDB configurations can be defined.
# Exactly one must be marked as the default.
# Each one will be given a name and can be referenced in batch queries and InfluxDBOut nodes.
[[influxdb]]
  # Connect to an InfluxDB cluster
  # Kapacitor can subscribe, query and write to this cluster.
  # Using InfluxDB is not required and can be disabled.
  enabled = true
  default = true
  name = "telegraf"
  urls = ["http://localhost:8086"]
  username = "telegraf"
  password = "oimel"
  timeout = 0
  # Absolute path to pem encoded CA file.
  # A CA can be provided without a key/cert pair
  #   ssl-ca = "/etc/kapacitor/ca.pem"
  # Absolutes paths to pem encoded key and cert files.
  #   ssl-cert = "/etc/kapacitor/cert.pem"
  #   ssl-key = "/etc/kapacitor/key.pem"

Connect Chronograf to Kapacitor

  • Access über http://<HOSTNAME>:8888
  • Links auf das Zahnrad-Symbol und dort auf "Configuration" klicken, anschließend auf "Add Kapacitor"

Chronograf-kapacitor-3.png

  • Die gewünschten Daten wie unten im Bild eintragen und auf "Connect" klicken

Chronograf-kapacitor-2.png

  • Wenn das nächste Bild wie das im unteren Screenshot aus sieht, war die Verbindung erfolgreich

Chronograf-kapacitor-1.png

Configure Kapacitor to send Mails

Chronograf-kapacitor-5.png

Alert konfigurieren

Chronograf-kapacitor-4.png

Chronograf-kapacitor-6.png

Chronograf-kapacitor-7.png

Chronograf-kapacitor-8.png