sqlinflux is a util to make a sql query against an mssql database, where the sql query returns a set of keys and values (normally a group by rollup) to insert into influxdb for charting.
- go build sqlinflux.go
- copy sqlinflux and a config file to a disk location where it can be called from telegraf (e.g. /opt/sqlinflux)
- configure telegraf to call sqlinflux with the config file as a parameter: [[inputs.exec]] commands = [ "/opt/sqlinflux/sqlinflux /opt/sqlinflux/orionnpm.yaml", "/opt/sqlinflux/sqlinflux /opt/sqlinflux/yourquery.yaml" ] data_format = "influx"
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
v0.1 - Initial release
MIT License