Skip to content

Commit

Permalink
Create telegrafconfig.yaml
Browse files Browse the repository at this point in the history
configmap for telegraf. accesses pypowerwall and influxdb via nodeport so that does not need to be changed, but tz does.
  • Loading branch information
cfoos authored Sep 21, 2024
1 parent c88647c commit 6b62d84
Showing 1 changed file with 68 additions and 0 deletions.
68 changes: 68 additions & 0 deletions k3s/telegrafconfig.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
---

apiVersion: v1
kind: ConfigMap
metadata:
name: telegraf
namespace: powerwall
labels:
app: telegraf
data:
telegraf.conf: |+
[global_tags]
[agent]
interval = "5s"
round_interval = true
metric_batch_size = 360
metric_buffer_limit = 10000
collection_jitter = "0s"
flush_interval = "10s"
flush_jitter = "0s"
precision = ""
hostname = ""
omit_hostname = false
[[outputs.influxdb]]
urls = ["http://influxdb.powerwall:8086"] # required
database = "powerwall" # required
skip_database_creation = false
retention_policy = "raw"
[[inputs.http]]
urls = [
"http://pypowerwall.powerwall:8675/aggregates",
"http://pypowerwall.powerwall:8675/soe",
"http://pypowerwall.powerwall:8675/strings",
"http://pypowerwall.powerwall:8675/temps/pw",
"http://pypowerwall.powerwall:8675/freq",
"http://pypowerwall.powerwall:8675/pod"
]
method = "GET"
insecure_skip_verify = true
timeout = "4s"
data_format = "json"
[[processors.date]]
tag_key = "month"
date_format = "Jan"
timezone = "America/Chicago"
[[processors.date]]
tag_key = "year"
date_format = "2006"
timezone = "America/Chicago"
[[inputs.http]]
urls = [
"http://pypowerwall.powerwall:8675/alerts/pw"
]
name_override = "alerts"
method = "GET"
insecure_skip_verify = true
timeout = "4s"
data_format = "json"
[[inputs.cpu]]
[[inputs.disk]]
[[inputs.diskio]]
[[inputs.kernel]]
[[inputs.mem]]
[[inputs.processes]]
[[inputs.swap]]
[[inputs.system]]
[[inputs.kubernetes]]
[[inputs.kube_inventory]]

0 comments on commit 6b62d84

Please sign in to comment.