telegraf icon indicating copy to clipboard operation
telegraf copied to clipboard

pull windows host server metrics using Telegraf inside docker

Open ywang412 opened this issue 8 years ago • 1 comments

I found we can only use telegraf container to collect linux host metrics as follows. docker run
-v /sys:/rootfs/sys:ro
-v /proc:/rootfs/proc:ro
-v /var/run/docker.sock:/var/run/docker.sock:ro
-v /var/run/utmp:/var/run/utmp:ro
telegraf

Can we do the same thing on windows host?

Thanks!

Directions

GitHub Issues are reserved for actionable bug reports and feature requests. General questions should be asked at the InfluxData Community site.

Before opening an issue, search for similar bug reports or feature requests on GitHub Issues. If no similar issue can be found, fill out either the "Bug Report" or the "Feature Request" section below. Erase the other section and everything on and above this line.

Please note, the quickest way to fix a bug is to open a Pull Request.

Bug report

Relevant telegraf.conf:

System info:

[Include Telegraf version, operating system name, and other relevant details]

Steps to reproduce:

  1. ...
  2. ...

Expected behavior:

Actual behavior:

Additional info:

[Include gist of relevant config, logs, etc.]

Feature Request

Opening a feature request kicks off a discussion.

Proposal:

Current behavior:

Desired behavior:

Use case: [Why is this important (helps with prioritizing requests)]

ywang412 avatar Jan 30 '18 17:01 ywang412

@ywang412 Not sure, it would depend on what type of containers you are running (Windows or Linux) and what plugins you would like to work. I suspect most of the Windows plugins such as win_perf_counters would not work using this method.

It would probably be best to ask over at the InfluxData Community site.

danielnelson avatar Jan 30 '18 23:01 danielnelson