You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
some informations to #5283 and the older issue #5031: and as asked by @danielnelson
here the Issue
Relevant telegraf.conf:
used the standard, did no changes. just ran the two commands provided in the readme of Dockerhub: $ docker run -d --name influxdb -p 8083:8083 -p 8086:8086 influxdb $ docker run --net=container:influxdb telegraf:alpine
System info:
Host MacOs, Docker Version 2.0.0.2
[Include Telegraf version, operating system name, and other relevant details]
...$ docker run --net=container:influxdb telegraf:alpine
watch the command line output.
Expected behavior:
run without errors
Actual behavior:
2019-02-08T21:54:50Z E! [inputs.system]: Error in plugin: open /var/run/utmp: no such file or directory
Additional info:
I did dig deeper in this problem.
Alpine as being such a minimal image somehow does not provide the file, that [[inputs.system]] is looking for.
The command uptime is working.
I did not find a solution how to load the utmp corresponding program via apk.
So the workaround provided in other bugs #5031 has some deeper issue behind.
In my specific case I would like to use the container with alpine, without having to bind anything to the host. this behavior makes the container somehow dependent, what I would like to avoid.
[Include gist of relevant config, logs, etc.]
The text was updated successfully, but these errors were encountered:
Based on running strace uptime, I believe uptime is using /proc/uptime and /proc/loadavg on alpine. However I cannot see how it is retrieving the users value, perhaps it is always hardcoded to 0?
There are 23 issues relating around this and i'm just wondering if anybody else is interested in this just having a flag to turn off "uptime" collection. Would maintainers take a merge that put in a config flag for that?
Made the PR for both n_users (which is what actually requires utmp http://man7.org/linux/man-pages/man5/utmp.5.html) and for uptime. Both of which i feel are not useful enough to keep fighting with this.
Also @evanphx the docs do say to mount /var/run/utmp:/var/run/utmp however this wont work on the mac and the latest docker CE.
some informations to #5283 and the older issue #5031: and as asked by @danielnelson
here the Issue
Relevant telegraf.conf:
used the standard, did no changes. just ran the two commands provided in the readme of Dockerhub:
$ docker run -d --name influxdb -p 8083:8083 -p 8086:8086 influxdb
$ docker run --net=container:influxdb telegraf:alpine
System info:
Host MacOs, Docker Version 2.0.0.2
[Include Telegraf version, operating system name, and other relevant details]
Steps to reproduce:
$ docker run -d --name influxdb -p 8083:8083 -p 8086:8086 influxdb
$ docker run --net=container:influxdb telegraf:alpine
watch the command line output.
Expected behavior:
run without errors
Actual behavior:
2019-02-08T21:54:50Z E! [inputs.system]: Error in plugin: open /var/run/utmp: no such file or directory
Additional info:
I did dig deeper in this problem.
Alpine as being such a minimal image somehow does not provide the file, that [[inputs.system]] is looking for.
The command uptime is working.
I did not find a solution how to load the utmp corresponding program via apk.
So the workaround provided in other bugs #5031 has some deeper issue behind.
In my specific case I would like to use the container with alpine, without having to bind anything to the host. this behavior makes the container somehow dependent, what I would like to avoid.
[Include gist of relevant config, logs, etc.]
The text was updated successfully, but these errors were encountered: