summaryrefslogtreecommitdiffstats
path: root/modules/tick/templates
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2020-06-24 02:38:05 -0400
committerJesse Luehrs <doy@tozt.net>2020-07-04 16:32:25 -0400
commit8248275d4e015042a89e3a3d95765193641bfda1 (patch)
tree578e5a8b3c1af6f30e82067a44886e888f34c612 /modules/tick/templates
parentf7cb87b82615fbb0d4d6b63f709692e9732aeabf (diff)
downloadpuppet-tozt-8248275d4e015042a89e3a3d95765193641bfda1.tar.gz
puppet-tozt-8248275d4e015042a89e3a3d95765193641bfda1.zip
add tick stack stuff
Diffstat (limited to 'modules/tick/templates')
-rw-r--r--modules/tick/templates/kapacitor.conf34
-rw-r--r--modules/tick/templates/plugin.conf4
-rw-r--r--modules/tick/templates/telegraf.conf16
3 files changed, 54 insertions, 0 deletions
diff --git a/modules/tick/templates/kapacitor.conf b/modules/tick/templates/kapacitor.conf
new file mode 100644
index 0000000..4b6a307
--- /dev/null
+++ b/modules/tick/templates/kapacitor.conf
@@ -0,0 +1,34 @@
+hostname = "localhost"
+data_dir = "/media/persistent/kapacitor"
+[http]
+ bind-address = "127.0.0.1:9092"
+[logging]
+ file = "/var/log/kapacitor/kapacitor.log"
+ level = "INFO"
+[load]
+ enabled = true
+ dir = "/etc/kapacitor/load"
+[replay]
+ dir = "/media/persistent/kapacitor/replay"
+[storage]
+ boltdb = "/media/persistent/kapacitor/kapacitor.db"
+[deadman]
+ global = true
+ threshold = 0.0
+ interval = "10s"
+ id = "node 'NODE_NAME' in task '{{ .TaskName }}'"
+ message = "{{ .ID }} is {{ if eq .Level \"OK\" }}alive{{ else }}dead{{ end }}: {{ index .Fields \"collected\" | printf \"%0.3f\" }} points/INTERVAL."
+[[influxdb]]
+ enabled = true
+ default = true
+ name = "localhost"
+ urls = ["http://localhost:8086"]
+[smtp]
+ enabled = true
+ host = "mail.tozt.net"
+ port = 465
+ username = "kapacitor-noreply@tozt.net"
+ password = "<%= @smtp_password %>"
+ from = "kapacitor-noreply@tozt.net"
+ global = true
+ state-changes-only = true
diff --git a/modules/tick/templates/plugin.conf b/modules/tick/templates/plugin.conf
new file mode 100644
index 0000000..38b4525
--- /dev/null
+++ b/modules/tick/templates/plugin.conf
@@ -0,0 +1,4 @@
+[[inputs.<%= @name %>]]
+<%- @opts.each do |k, v| -%>
+<%= k %> = <%= JSON.dump(v) %>
+<%- end -%>
diff --git a/modules/tick/templates/telegraf.conf b/modules/tick/templates/telegraf.conf
new file mode 100644
index 0000000..ba307bd
--- /dev/null
+++ b/modules/tick/templates/telegraf.conf
@@ -0,0 +1,16 @@
+[global_tags]
+[agent]
+ interval = "10s"
+ round_interval = true
+ metric_batch_size = 1000
+ metric_buffer_limit = 10000
+ collection_jitter = "0s"
+ flush_interval = "10s"
+ flush_jitter = "0s"
+ precision = ""
+ hostname = ""
+ omit_hostname = false
+[[outputs.influxdb]]
+ urls = ["https://influxdb.tozt.net"]
+ username = "<%= @influxdb_username %>"
+ password = "<%= @influxdb_password %>"