-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Solaris Support #407
Comments
@calmh That is probably because we currently import the graphite service from influxdb to filter statsd metrics here: https://github.com/influxdb/telegraf/blob/master/plugins/statsd/statsd.go#L13 importing that service in turn imports the rest of the influxdb repo. If we moved that dependency (maybe just copy and paste the code into telegraf, or move it into an independent package within influxdb) then we wouldn't need to have all of influxdb as a dependency to telegraf. |
PR up that will eliminate the Bolt (and a few other) dependency #655 |
@calmh version 0.10.3 of telegraf now has many of these dependencies removed, care to try again? |
It's getting closer! |
I'm hitting the same issue under SmartOS. The gopsutil dependency doesn't support Solaris (and derivatives) at this time, which impacts inputs/system and inputs/procstat. It would be more effective to get these values directly from kstats. There is go-kstat which could serve as the basis for inputs/kstats in the future. In the short-term, I have excluded system and procstat which allows telegraf to compile, and intend to use the exec plugin via a shell wrapper to the kstat cli for now. |
I'm sure that @shirou would appreciate it if anyone sent up some PRs to support Solaris on gopsutil |
It seems golang has |
Cool. I don't have the time/inclination to hack up the required changes at the moment, but might possibly get around to it at some time. In the meantime, I have an example for CPU monitoring for Solaris here: https://github.com/syncthing/syncthing/blob/master/cmd/syncthing/gui_solaris.go (MPLv2 although I can relicense if you prefer as I'm the sole author) and can give you a SmartOS zone to run and test on if you like. The Solaris /proc interface is clean and documented, so these things are fairly straightforward. |
Has anyone been able to build on SmartOS successfully? I've forced However it's still failing on random plugins such as |
@jjlawren Open a new issue with the compile error and we will see what we can do. |
Looks like my primary problem was using a too-old version of Go in the package manager. Go 1.8 was just released in pkgsrc-2017Q1, so I'll try that first. Sorry for not digging enough by myself first. |
Here are the current compile errors:
|
Solaris support was added in a newer version of Godirwalk (v1.10.1), the Docker Client error seems to occur because the go file which contains the variables that are required doesn't include Solaris. For our use case we only want the ZFS plugin though, and that seems to be working wonderfully! I've forked Telegraf here: https://github.com/ybinnenwegin2ip/telegraf/tree/omnios_zfs That compiles and runs on OmniOS 5.11 (omnios-r151030-f1189fc02c). I've modified the zfs_freebsd input to work on OmniOS (use Edit: I've now also tested the zpool input, works well! I also extended it to include more zpool-specific metrics (such as the reads/writes etc). These metrics are absent from freebsd (got no idea why) but are present in ZOL. Anyhow, adding them for OmniOS was very easy. In addition to that I've also wrote down some quick instructions on how I compile my branch on OmniOS, the document can be found in the |
I updated godirwalk to a version that supports Solaris. Remaining work is in the docker, docker_logs, and ecs input plugins. |
Got latest successfully compiling on 11.4... bit painful though
go version go1.15.6 solaris/amd64
#plugins/outputs/all/all.go #plugins/processors/all/all.go |
Hi, Happy to see the community attempt to get Solaris working, however, per our own Supported Platforms doc we only generally support operating systems under general support, not in any extended or paid support. Given Solaris 10 and 11 are in the Premier and Extended support phase are not allowed with commercial or production use, I am going to go ahead and close this issue. Thanks! |
"Solaris" in this context includes OpenIndiana/Illumos/SmartOS, which are all supported platforms, FYI. Having Telegraf on these platforms would be a wonderful thing. |
The CPU and terminal stuff is probably trivial, the Bolt locking thing is a long standing issue on Bolt. Do we need a database just to send values to Influx?
The text was updated successfully, but these errors were encountered: