Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpu plugin doesn't work on osx #6577

Closed
zibuyu1995 opened this issue Oct 25, 2019 · 1 comment
Closed

cpu plugin doesn't work on osx #6577

zibuyu1995 opened this issue Oct 25, 2019 · 1 comment

Comments

@zibuyu1995
Copy link

Relevant telegraf.conf:

[global_tags]
  dc = "denver-1"

[agent]
  interval = "10s"

# OUTPUTS
[[outputs.influxdb]]
  url = "http://192.168.59.103:8086" # required.
  database = "telegraf" # required.
  precision = "s"

# INPUTS
[[inputs.cpu]]
  percpu = true
  totalcpu = false
  # filter all fields beginning with 'time_'
  fielddrop = ["time_*"]

System info:

Mac OS 10.15
telegraf: 1.12.4

Expected behavior:

image

@danielnelson
Copy link
Contributor

This is because our build doesn't have CGO enabled. As a workaround you can install from brew, or compile it on a MacOS system.

We have issue #4801 for enabling CGO in the tar.gz package, so I'm going to close this issue and we can track over there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants