telegraf/plugins/inputs
Lukasz Jagiello e3e6fa4f1d
Sudo support for ceph/varnish plugin
In many default installations ceph and varnish binaries require root
permissions or specific user permissions to actually gather metrics.

Although it's possible to instrumented system configuration to either
run telegraf with root privileges or share the same user/permissions as
measured software it's not a default setup.

In my opinion ability to run binary with `sudo` makes entire setup
simpler without additional interaction.

My changes allow to use configuration like:
```
binary = "/usr/bin/sudo /usr/bin/varnishstat"
ceph_binary = "/usr/bin/sudo /usr/bin/ceph"
```

With a proper sudo configuration it will simplify amount of changes
needed to collect metrics.

I've also changed type of varnish metrics. It was `int` but in varnish source
code we can find all metrics are actually uint64
(https://github.com/varnishcache/varnish-cache/blob/master/include/tbl/vsc_f_main.h)

I hit that issue with some metrics:
```
~# varnishstat -1 | grep -i MAIN.n_objectcore
MAIN.n_objectcore      18446744073709550877          .   objectcore structs made
```
2016-05-25 23:49:42 +00:00
..
aerospike Seems to be a toml parse bug around triple pounds 2016-02-18 14:36:03 -07:00
all Add input plugin for rollbar service. (#1247) 2016-05-24 15:32:42 +01:00
apache Improve timeout in input plugins 2016-03-01 09:43:28 +00:00
bcache Seems to be a toml parse bug around triple pounds 2016-02-18 14:36:03 -07:00
cassandra Cassandra: update plugin supported prefix & fix panic 2016-04-27 15:23:05 -06:00
ceph Sudo support for ceph/varnish plugin 2016-05-25 23:49:42 +00:00
chrony add chrony support (#1238) 2016-05-24 09:55:25 +01:00
cloudwatch Consolidate AWS credentials (#1208) 2016-05-25 12:30:39 +01:00
couchbase Update gopsutil dependency 2016-03-22 09:13:31 -06:00
couchdb Improve timeout in input plugins 2016-03-01 09:43:28 +00:00
disque Don't allow inputs to overwrite host tag 2016-04-19 17:44:33 -06:00
dns_query skip network-dependent unit tests in short mode 2016-04-28 14:44:08 -06:00
docker Fix crash in Docker input plugin - Fixes #1195 2016-05-18 11:27:06 +01:00
dovecot dovecot: enabled global, user and ip queries 2016-04-08 11:56:08 -06:00
elasticsearch Update elasticsearch readme 2016-05-18 12:22:34 +01:00
exec Revert "exec plugin: allow using glob pattern in command list" 2016-05-02 12:07:17 -06:00
filestat Tail input plugin 2016-04-26 09:42:06 -06:00
github_webhooks Refactor GitHub webhooks (#1240) 2016-05-23 11:21:34 +01:00
haproxy Fix formatting for haproxy tests 2016-05-04 09:47:39 -06:00
http_response http_response plugin: Add SSL config options 2016-05-25 13:44:36 +01:00
httpjson Fix httpjson README 2016-03-31 20:37:04 -06:00
influxdb influxdb input: Use non-panicking type assertion 2016-05-25 13:32:10 +01:00
ipmi_sensor Implement timeouts for all exec command runners 2016-04-29 12:06:22 -06:00
jolokia Change server_ -> jolokia_ in tags and other formatting 2016-04-27 16:00:58 -06:00
kafka_consumer Update all readme instances of data formats 2016-04-05 14:42:20 -06:00
leofs Implement timeouts for all exec command runners 2016-04-29 12:06:22 -06:00
lustre2 Adding Jobstats support to Lustre2 input plugin 2016-04-27 15:35:24 -06:00
mailchimp Improve timeout in input plugins 2016-03-01 09:43:28 +00:00
memcached memcached unix socket: fix panic. Do not recreate conn inside if 2016-03-22 15:12:35 -06:00
mesos Cleanup & standardize config file 2016-04-01 10:59:53 -06:00
mongodb fix mongodb input concurrent map read/write 2016-05-18 21:23:39 +01:00
mqtt_consumer Update etc/telegraf.conf, mqtt_cons readme 2016-05-10 14:18:55 -07:00
mysql Don't use root user as example 2016-05-17 18:30:15 +01:00
nats_consumer Update all readme instances of data formats 2016-04-05 14:42:20 -06:00
net_response Utilize timeout in net_response plugin. 2016-05-23 15:59:23 +01:00
nginx Add writing in documentation. 2016-04-01 11:46:32 -06:00
nsq Improve timeout in input plugins 2016-03-01 09:43:28 +00:00
nstat nstat plugin cleanups and formatting 2016-05-17 17:00:46 +01:00
ntpq ntpq input: ignore lines that are '-' 2016-05-18 22:20:47 +01:00
passenger Seems to be a toml parse bug around triple pounds 2016-02-18 14:36:03 -07:00
phpfpm Fix leaky tcp connections in phpfpm plugin 2016-04-26 09:24:32 -06:00
ping Implement timeouts for all exec command runners 2016-04-29 12:06:22 -06:00
postgresql Cleanup & standardize config file 2016-04-01 10:59:53 -06:00
postgresql_extensible postgresql_extensible: custom address in metrics output 2016-04-25 16:33:35 -06:00
powerdns Seems to be a toml parse bug around triple pounds 2016-02-18 14:36:03 -07:00
procstat Update gopsutil dependency 2016-05-20 15:30:13 +01:00
prometheus Change prometheus doc to glob match 2016-04-19 14:46:37 -06:00
puppetagent Seems to be a toml parse bug around triple pounds 2016-02-18 14:36:03 -07:00
rabbitmq Improve timeout in input plugins 2016-03-01 09:43:28 +00:00
raindrops Improve timeout in input plugins 2016-03-01 09:43:28 +00:00
redis Add role tag to redis plugins (#1207) 2016-05-18 14:17:14 +01:00
rethinkdb Don't allow inputs to overwrite host tag 2016-04-19 17:44:33 -06:00
riak Improve timeout in input plugins 2016-03-01 09:43:28 +00:00
rollbar_webhooks Add input plugin for rollbar service. (#1247) 2016-05-24 15:32:42 +01:00
sensors Fix sensor plugin, was splitting on ":" incorrectly 2016-02-26 15:21:05 +00:00
snmp Add the OctetString OID value support (#1242) 2016-05-23 11:21:53 +01:00
sqlserver Fix datatype conversion 2016-04-23 09:14:04 +02:00
statsd README fixups for udp_listener, statsd inputs 2016-04-28 13:11:41 -06:00
sysstat fix interval rounding error 2016-05-23 11:20:01 +01:00
system kernel: use strconv.ParseInt instead of strconv.Atoi 2016-05-25 12:31:10 +01:00
tail prevent potential tail datarace (#1254) 2016-05-24 15:16:33 +01:00
tcp_listener README fixups for udp_listener, statsd inputs 2016-04-28 13:11:41 -06:00
trig Seems to be a toml parse bug around triple pounds 2016-02-18 14:36:03 -07:00
twemproxy Seems to be a toml parse bug around triple pounds 2016-02-18 14:36:03 -07:00
udp_listener README fixups for udp_listener, statsd inputs 2016-04-28 13:11:41 -06:00
varnish Sudo support for ceph/varnish plugin 2016-05-25 23:49:42 +00:00
win_perf_counters Sanitize Field name 2016-04-28 12:21:28 -06:00
zfs Update gopsutil dependency 2016-03-22 09:13:31 -06:00
zookeeper Improve timeout in input plugins 2016-03-01 09:43:28 +00:00
EXAMPLE_README.md Input plugin for running ntp queries 2016-03-14 16:53:37 +00:00
mock_Plugin.go Create public models for telegraf metrics, accumlator, plugins 2016-01-27 15:42:50 -07:00
registry.go Create public models for telegraf metrics, accumlator, plugins 2016-01-27 15:42:50 -07:00