Skip to content

Instantly share code, notes, and snippets.

@code-of-kpp
Created February 27, 2020 12:55
Show Gist options
  • Save code-of-kpp/855e17b9e257068a56c17aec13a9e803 to your computer and use it in GitHub Desktop.
Save code-of-kpp/855e17b9e257068a56c17aec13a9e803 to your computer and use it in GitHub Desktop.
collectd-influxdb configs
FQDNLookup false
Interval 30
MaxReadInterval 600
WriteQueueLimitLow 10000
WriteQueueLimitHigh 20000
CollectInternalStats true
LoadPlugin syslog
LoadPlugin cgroups
LoadPlugin conntrack
LoadPlugin contextswitch
LoadPlugin cpu
LoadPlugin cpufreq
LoadPlugin df
LoadPlugin disk
LoadPlugin entropy
LoadPlugin fhcount
LoadPlugin ipc
LoadPlugin ipmi
LoadPlugin irq
LoadPlugin load
LoadPlugin md
LoadPlugin memory
LoadPlugin netlink
LoadPlugin numa
LoadPlugin ping
LoadPlugin processes
LoadPlugin protocols
LoadPlugin sensors
LoadPlugin smart
LoadPlugin snmp
LoadPlugin swap
LoadPlugin tcpconns
LoadPlugin thermal
LoadPlugin turbostat
LoadPlugin uptime
LoadPlugin users
LoadPlugin vmem
LoadPlugin write_graphite
LoadPlugin match_regex
LoadPlugin target_set
<Plugin cpu>
ReportByCpu true
ValuesPercentage true
</Plugin>
<Plugin df>
ReportReserved true
ReportInodes true
ValuesAbsolute true
ValuesPercentage false
</Plugin>
<Plugin netlink>
Interface "All"
VerboseInterface "All"
</Plugin>
<Plugin processes>
ProcessMatch "bash" "bash"
ProcessMatch "docker" "docker"
ProcessMatch "sshd" "sshd"
ProcessMatch "collectd" "collectd"
</Plugin>
<Plugin swap>
ReportBytes true
</Plugin>
<Plugin vmem>
Verbose true
</Plugin>
<Plugin write_graphite>
<Node "test">
Host "127.0.0.1"
Port "2003"
Protocol "tcp"
EscapeCharacter "_"
StoreRates false
SeparateInstances true
</Node>
</Plugin>
reporting-disabled = true
[meta]
enabled = true
dir = "/var/influxdb/meta"
[data]
enabled = true
dir = "/var/influxdb/data"
wal-dir = "/var/influxdb/wal"
wal-logging-enabled = true
query-log-enabled = true
[retention]
enabled = true
check-interval = "30m0s"
[monitor]
store-enabled = true
store-database = "_internal"
store-interval = "10s"
[subscriber]
enabled = true
http-timeout = "30s"
[http]
enabled = true
flux-enabled = true
bind-address = ":8086"
auth-enabled = false
log-enabled = true
[[graphite]]
bind-address = ":2003"
database = "graphite"
protocol = "tcp"
batch-size = 5000
batch-pending = 10
batch-timeout = "1s"
consistency-level = "one"
separator = "."
enabled = true
templates = [
"*.cgroups.*.cpu.* host.measurement.cgroup.measurement.metric",
"*.collectd.*.*.* host.measurement.metric.metric.metric",
"*.collectd.*.* host.measurement.metric.metric",
"*.conntrack.percent.used host.measurement.type.metric",
"*.conntrack.conntrack.max host.measurement..metric",
"*.conntrack.conntrack host..measurement metric=current",
"*.contextswitch.contextswitch host..measurement",
"*.cpu.*.percent.* host.measurement.cpu.type.metric",
"*.cpufreq.cpufreq.* host.measurement..cpu type=freq",
"*.dbi.*.*.* host.measurement.cluster.type.metric",
"*.df.dev.*.* host.measurement.fs.type.metric kind=skip",
"*.df.dev-shm.*.* host.measurement.fs.type.metric kind=skip",
"*.df.run.*.* host.measurement.fs.type.metric kind=skip",
"*.df.sys-fs-cgroup.*.* host.measurement.fs.type.metric kind=skip",
"*.df.*.*.* host.measurement.fs.type.metric kind=show",
"*.disk.*.*.read host.measurement.disk.metric.direction",
"*.disk.*.*.write host.measurement.disk.metric.direction",
"*.disk.*.* host.measurement.disk.metric",
"*.entropy.entropy host..measurement",
"*.fhcount.* host.measurement..metric",
"*.ipc.*.*.* host.measurement.measurement.type.metric",
"*.ipc.*.* host.measurement.measurement.type",
"*.irq.irq.* host..measurement.irq",
"*.ipmi.*.* host.measurement.type.sensor",
"*.load.load.* host..measurement.term",
"*.md.*.*.* host..md.measurement.metric",
"*.memory.memory.* host..measurement.metric",
"*.netlink.*.*.rx host.measurement.iface.metric.direction",
"*.netlink.*.*.tx host.measurement.iface.metric.direction",
"*.netlink.*.if_rx_errors.* host.measurement.iface.metric.kind direction=rx",
"*.netlink.*.if_tx_errors.* host.measurement.iface.metric.kind direction=tx",
"*.netlink.*.* host.measurement.iface.metric",
"*.numa.*.*.* host.measurement.node.measurement.metric",
"*.ping.*.* host.measurement.field.target",
"*.processes.*.ps_count.* host.measurement.process..kind metric=count",
"*.processes.*.ps_cputime.* host.measurement.process..kind metric=cpu",
"*.processes.*.ps_diskoctets.* host.measurement.process.kind.direction metric=disk",
"*.processes.*.ps_diskops.* host.measurement.process.kind.direction metric=disk",
"*.processes.*.ps_pagefaults.* host.measurement.process..kind metric=pagefaults",
"*.processes.ps_state.* host.measurement.measurement.metric",
"*.processes.fork_rate host.measurement.measurement",
"*.processes.*.* host.measurement.process.kind metric=memory",
"*.protocols.*.protocol_counter.* host..protocol.measurement.metric",
"*.sensors.*.*.* host.measurement.sensor.type.metric",
"*.smart.*.*.*.* host.measurement.disk..metric.kind",
"*.smart.*.* host.measurement.disk.metric kind=value",
"*.swap.swap.* host..measurement.metric",
"*.swap.swap_io.* host..measurement.direction",
"*.tcpconns.*.*.* host..port.measurement.metric",
"*.thermal.*.* host.measurement.sensor.type",
"*.turbostat.*.*.* host.measurement.sensor.type.metric",
"*.turbostat.*.* host.measurement.sensor.type",
"*.uptime.uptime host..measurement",
"*.users.users host..measurement",
"*.vmem.*.vmpage_action.* host.measurement.zone.measurement.metric",
"*.vmem.vmpage_io.*.* host.measurement.measurement.metric.direction",
"*.vmem.*.* host.measurement.metric.kind",
"*.dbi.*.*.* host.measurement.cluster.type.metric",
"*.*.ClickHouse.*.* .host.measurement.type.metric",
"*.*.*.*.*.* host.measurement.instance.type.metric.field template_match=general6",
"*.*.*.*.* host.measurement.instance.metric.field template_match=general5",
"*.*.*.* host.measurement.instance.field template_match=general4",
"*.*.* host.measurement.instance template_match=general3",
"* host.measurement* template_match=none",
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment