hassio-addons / addon-influxdb

InfluxDB - Home Assistant Community Add-ons
https://addons.community
MIT License
158 stars 51 forks source link

Collectd in influxdb #1

Closed yeyeoke closed 6 years ago

yeyeoke commented 6 years ago

Problem/Motivation

Influxdb needs a simple change to the configuration to be able to collect data from collectd as far as I can tell atleast, but since I'm new to both influxdb and grafana, I'm open to the possibility that I'm wrong.

Proposed changes

While reading this guide https://anomaly.io/collectd-metrics-to-influxdb/ it seems that the only change needed is;

[collectd]
enabled = true
port = 25826
database = "collectd_db"
typesdb = "/opt/collectd/share/collectd/types.db"

Great work with the addon I'm really enjoying it.

Anomaly
Sending CollectD Metrics to InfluxDB - Anomaly
Configuration example to send metrics from Collectd to InfluxDB. Then, configure InfluxDB to receive Collectd metrics. Enjoy your new monitoring dashboard
addons-assistant[bot] commented 6 years ago

:wave: Thanks for opening your first issue here! If you're reporting a :bug: bug, please make sure you include steps to reproduce it. Also, logs, error messages and information about your hardware might be usefull.

tremebundo commented 6 years ago

Any news with this? It should be great to get collectd integrated with this Inluxdb instance and displayed in Home Assistant with your Grafana addon. Thanks a lot for your work.

frenck commented 6 years ago

@tremebundo @yeyeoke I've actually built the feature and it is currently living in a separate branch on my development machine.

I'm not sure if I should publish it though. It seems to be a pretty edge case. Maybe I'm just not too familiar with all this, but as far as I understand, I'd would need collectd itself as well.

Is this correct? Our would simply open up Collectd in Influx be enough? Could you guys provide me some hint on how to test and/or set this thing up?

tremebundo commented 6 years ago

Ufff! I am pretty new to collectd and Influxdb. I have just installed the official package of collectd in a Ubuntu 16.04. I am running Hassio in a docker container with your Inluxdb and Grafana plugins. Collectd seems to be already collecting data. Now I need to display its data some way and I thought using your plugins and have a panel frame in Home Assistant. I am trying to follow this guide:

https://www.buffalodatasystems.com/2017/10/24/Getting-started-with-grafana-and-ubuntu-16-04/

But I thought about using the Inluxdb instance provided by your plugin to avoid installing another Influxdb on the host system. My server is hanging up randomly and I think some persistent statistics would help me to address the problem. And I think also that having that data displayed on a healthy system through HA would be very convenient. Sorry for not being very helpful.

Getting Started with Grafana and Collectd on Ubuntu 16.04 Server
We're a new internet consulting company. We can help you with everything from basic web hosting to custom application development.

Drop us a line if you're interested in having a chat.
frenck commented 6 years ago

@yeyeoke, as the original requester; Do you have any pointers for me?

frenck commented 6 years ago

https://community.home-assistant.io/t/community-hass-io-add-on-influxdb/54491/60?u=frenck

image

Home Assistant Community
Community Hass.io Add-on: InfluxDB
Hi Frenk, In the end, I have setup a docker container with Telegraf. It supplies mostly the same information as Collectd, allows to have a config file at the host system and comunicates gracefully with the Influxdb instance of your plugin. https://hub.docker.com/_/telegraf/
frenck commented 6 years ago

Close this feature request, since it seems to me a very tiny use-case. Telegraf might be something to consider 😉

addons-assistant[bot] commented 6 years ago

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.