Influxdb
- Get started with InfluxDB | InfluxDB OSS 2.0 Documentation
- Query with the InfluxDB API | InfluxDB OSS 2.0 Documentation
basic
``` bash= ./influxd
## Telegraf
- [Install Telegraf | Telegraf 1.27 Documentation](https://docs.influxdata.com/telegraf/v1.27/install/)
``` bash=
sudo vim /etc/telegraf/telegraf.conf
sudo systemctl restart telegraf.service
inputs
- [Feature Request] ipmitool dcmi power reading · Issue #1566 · influxdata/telegraf · GitHub
- Remote SNMP Host in Chronograf host list - InfluxDB 2 / Dashboards - InfluxData Community Forums
ipmi
[[inputs.ipmi_sensor]]
servers = ["foo:bar@lan(172.17.30.139)"]
interval = "30s"
timeout = "20s"
metric_version = 2
[[inputs.exec]]
timeout = "5s"
data_format = "influx"
environment = [
"server=172.17.30.139",
"username=foo",
"password=bar",
"interface=lan"
]
name_suffix="_dcmi_power_reading"
commands = ['/bin/bash -c "ipmitool -I $interface -H $server -U $username -P $password -c dcmi power reading | grep -Po \"(\d+)(?=\sWatts)\" -m1 | sed \"s/.*/ipmi_sensor,server=${server},name=psu_power,rack=r1,unit=watts value=&/\""']
outputs
[[outputs.influxdb_v2]]
## The URLs of the InfluxDB cluster nodes.
##
## Multiple URLs can be specified for a single cluster, only ONE of the
## urls will be written to each interval.
## urls exp: http://127.0.0.1:9999
urls = ["http://172.17.30.109:8086"]
## Token for authentication.
token = "$INFLUX_TOKEN"
## Organization is the name of the organization you wish to write to; must exist.
organization = "foo"
## Destination bucket to write into.
bucket = "/tmp/t-data"