I have my frist prometheus and grafana builds running in docker. I have a raspberry pi with a temp sensor attached and produces out put to a text file like this.
date temp
8/20/200 08:20:31 am, 89
8/20/200 08:25:31 am, 90
I am sure this is possible to read in to prometheus I just can't figure it out.
Related
im running Homeassistant + InfluxDb 1.8.10 on my Raspy 4 8GB.
Few days ago i noticed that my InfluxDB is running high on CPU, I/O Usage and Network Usage.
Earlier is was around 1-5 % CPU, now the Container Stats tells me ~250%...
Portainer Container Stats
Do u have a Idea what to do?
Thank you in advance,
Chris
So first i thought my sd card is diing, so i moved my complete data to a new ssd...
The Load moved from 7/8 to 4/5, but same container stats.
Pi Data
Then I moved the InfluxDB to a own container and removed it from Homeassistant, but even no success.
I have three docker containers running. The first runs a python script that writes data from a sensor to the InfluxDB emon_data bucket running in a second container. This works perfectly and i can run queries and create dashboards within InfluxDB. The third container runs Grafana. The data source setting in Grafana that establishes the connection to InfluxDB seems to be correct as it confirms having a connection to the data source - see picture.
However, when I go to set up a dashboard in Grafana it keeps throwing an error stating that the database cannot be found - see picture.
I have tried to find information on this error but am not finding much and what I am finding seems to be for much older versions of InfluxDB and Grafana. Any suggestions or pointers on how to resolve this would be much appreciated.
Baobab
I have a Prometheus Dashboard that will display No Data when viewing it on a remote machine and the time period is 6 hours or less. The issue does not happen on the local machine. Grafana and Prometheus service are both running on the same CentOS 7 server. I've tested this on Windows and Linux machines
Edit: Setting range to 12hrs doesn't populate the data properly, but 24hrs and more does
Hi I 'm new to prometheus I have a task to make prometheus show systemd services metrics (I use grafana for visualization) I' m using stefanprodan/dockprom example as my starting point however I couldn't find how to enable systemd collector for node exporter in the node exporter section of the docker-compose.yml and also leave all the enabled by default collectors. Also I need help with getting that info to be sent into grafana. I would appreciate the code in the example or a place where I could find an adequate explanation how to do it like for dummies because I'm not experienced. Thanks in advance.
In order to enable the systemd collector in node_exporter, the command line flag --collector.systemd needs to be passed to the exporter (reference). The default collectors will remain enabled, so you don't need to worry about that.
In order to pass that flag to the application, you need to add that flag to the command portion of the nodeexporter section of the Docker Compose file (here)
In regards to sending the data to Grafana, as long as you have your Prometheus data source configured in Grafana, those metrics will show up automatically -- you don't need to update your Prometheus->Grafana when or removing metrics (or really ever, after initial setup).
I use Grafana with CollectD (and Graphite) to monitor my network usage on my server.
I use the 'Interface' Plugin of CollectD and display the graphs like this:
alias(scale(nonNegativeDerivative(collectd.graph_host.interface-eth0.if_octets.rx), 0.00000095367431640625), 'download')
When I now initiate a downlad with a speedlimit. The download runs for approx 10 minutes, but only this is shown (green line is the download). So it only shows a peak.
Do I have to use some other metrics? I also tried the 'ethstat' but that has so many options none of which I understand!
Is there any beginners documentation. I only found the CollectD Docs, which I read but that does not say anything what the metrics of the ethstat actually mean.
No, there isn't any beginner documentation about the ethstats metrics meaning in collectd. This is because the ethstat plugin reports statistics collected by ethtool on your system and the ethtool stats are vendor specific.
To point you in the right direction, run ethtool -S eth0
That should show you names and numbers like what collectd is reporting.
Now run ethtool -i eth0 and find your driver info.
Then, google your driver name and find out what statistics your card reports and what they mean. It may involve reading linux driver source code, but don't be too scared of that. What you want is probably in the comments, not the code.