Commit Graph

2111 Commits

Author SHA1 Message Date
Cameron Sparr 42a7203b1e Skip per-cpu unit test when in a circle ci container 2015-08-05 16:49:40 -06:00
Cameron Sparr 5259c50612 Mark more unit tests as 'integration' tests when they rely on external services/docker 2015-08-05 16:49:40 -06:00
Cameron Sparr 06a84def5f Merge pull request #71 from kureikain/haproxy_plugin
HAProxy plugin
2015-08-05 15:47:59 -06:00
Codeb Fan d7bda01ccb Add Nginx plugin (ngx_http_stub_status_module)
Add plugin to collect Nginx basic status information (ngx_http_stub_status_module).
http://nginx.org/en/docs/http/ngx_http_stub_status_module.html
2015-08-05 15:33:28 -06:00
Cameron Sparr df9e1669cf Merge pull request #76 from kotopes/redis-port-tag
add tag "port" to every redis metric
2015-08-05 15:01:36 -06:00
Cameron Sparr c698dc9784 Build & unit test fixup 2015-08-05 14:47:12 -06:00
Cameron Sparr 77dd1e3d45 Adding Kafka docker container and utilizing it in unit tests 2015-08-05 14:46:31 -06:00
Cameron Sparr 260fc43281 go fmt fixes 2015-08-05 14:46:31 -06:00
Simon Fraser 816313de30 Fix 'go vet' error, +build comment must be followed by a blank line 2015-08-05 14:46:30 -06:00
Cameron Sparr bb7bdffada Creating circleci job to just lint and vet code 2015-08-05 14:46:30 -06:00
Simon Fraser 8255945ea7 Tests for the lustre plugin, initial commit 2015-08-05 14:46:30 -06:00
Simon Fraser e442d754d0 Lustre filesystem plugin (http://lustre.org/)
The configuration allows users to override the /proc/ files
scanned for data, since that has been known to change with lustre
versions.
2015-08-05 14:46:30 -06:00
Simon Fraser 6b510652ed Add Lustre 2 plugin 2015-08-05 14:46:30 -06:00
Graham Floyd c0fa6af51b Add disque plugin 2015-07-31 14:46:46 -05:00
Todd Persen a4d0c47fc6 Merge pull request #49 from marcosnils/container_services
Container services
2015-07-30 16:29:44 -07:00
Vinh 5bf00e87cc Add haproxy plugin 2015-07-22 17:14:31 -07:00
Evgeny Kulev 014ddd76f4 add tag "port" to every redis metric
see issue https://github.com/influxdb/telegraf/issues/74
2015-07-23 00:55:03 +03:00
Evan Phoenix 6eb4bdcf0e Merge pull request #53 from alvaromorales/rethinkdb-fix
Add rethinkdb plugin to all.go
2015-07-21 13:37:55 -07:00
Evan Phoenix b4e032d9c9 Merge pull request #54 from jipperinbham/mongodb-plugin
add MongoDB plugin
2015-07-21 13:37:44 -07:00
Evan Phoenix 4ca39dfd1e Merge pull request #55 from brocaar/elasticsearch_plugin
Implement Elasticsearch plugin
2015-07-21 13:34:31 -07:00
Evan Phoenix ad6dcb478d Merge pull request #63 from bewiwi/master
Fix redis : change ending call with "\r\n"
2015-07-21 13:31:51 -07:00
Evan Phoenix e484d4bbf4 Merge pull request #72 from vadimtk/master
Add TokuDB metrics to MySQL plugin
2015-07-21 13:27:13 -07:00
Ian Unruh fad63b28d1 Add simple RabbitMQ plugin 2015-07-21 11:48:49 -07:00
Vadim Tkachenko 7a075e091d Add TokuDB metrics to MySQL plugin 2015-07-19 13:01:45 -07:00
Loïc d5b4e4ba60 Fix redis : change ending call with "\r\n" 2015-07-13 18:21:16 +02:00
Orne Brocaar 22d4d1fb42 Fix typo (tranport > transport). 2015-07-10 09:00:28 +02:00
JP 98b0543b26 fix merge conflicts 2015-07-09 15:09:43 -05:00
JP c0512e720c add SSL support, change tag to hostname 2015-07-09 15:06:18 -05:00
Orne Brocaar 0f6664b260 Remove that it only reads indices stats. 2015-07-09 21:02:19 +02:00
Orne Brocaar f76f99e789 Merge remote-tracking branch 'upstream/master' into elasticsearch_plugin 2015-07-09 21:01:06 +02:00
Orne Brocaar e2d48f42cc Cleanup repeated logic. 2015-07-09 20:58:54 +02:00
Orne Brocaar ec138cae62 Remove indices filter. 2015-07-09 20:53:54 +02:00
Orne Brocaar 986b89f5ed Cleanup tests. 2015-07-09 20:46:42 +02:00
Orne Brocaar d799011039 Implement breakers stats. 2015-07-09 20:43:52 +02:00
Orne Brocaar 0faa1c886a Implement http stats. 2015-07-09 20:38:51 +02:00
Orne Brocaar cb839d0fe8 Implement transport stats. 2015-07-09 20:36:22 +02:00
Orne Brocaar ec4079733e Implement fs stats. 2015-07-09 20:32:56 +02:00
Orne Brocaar 4743c9ab16 Implement network stats. 2015-07-09 20:23:04 +02:00
Orne Brocaar ac54b7cdd1 Implement thread-pool stats. 2015-07-09 20:18:24 +02:00
Orne Brocaar 10c4ec74cc Implement JVM stats. 2015-07-09 20:11:46 +02:00
Orne Brocaar d90026646f Implement process stats. 2015-07-09 20:06:30 +02:00
Orne Brocaar 9cd1344740 Implement os stats. 2015-07-09 20:01:59 +02:00
Orne Brocaar c6a9335bf2 Refactor parsing "indices" stats. 2015-07-09 19:51:51 +02:00
Orne Brocaar 6c87148cd4 Add node-id and node attributes to tags. 2015-07-09 18:41:16 +02:00
Orne Brocaar 3f6c46e1ec Add node_name to tags. 2015-07-08 23:07:10 +02:00
Emil Stolarsky b3c13b7aef Adds README for Kafka consumer plugin 2015-07-08 15:45:02 -04:00
Orne Brocaar 55cfd5c904 Check that API reponse is 200. 2015-07-08 21:28:25 +02:00
Orne Brocaar d38f2223a5 Implement Elasticsearch plugin (indices stats). 2015-07-08 21:14:51 +02:00
JP 86145d5eb5 add MongoDB plugin 2015-07-07 11:25:34 -05:00
Marcos Lilljedahl d2810ddc95 Add DOCKER_HOST support for tests
This allows to run tests in environments where DOCKER_HOST is used. This
is extremely helpful when using boot2docker to run docker
2015-07-06 22:18:31 -03:00
Alvaro Morales 037c43cd25 Add rethinkdb plugin to all.go. 2015-07-06 17:27:09 -07:00
Marcos Lilljedahl 4471e2bdbb Use postgres default configuration 2015-07-06 03:46:53 -03:00
Marcos Lilljedahl ae385b336d Remove unnecessary circleci configuration as we're using default
provided services

Update test users to use circleci default services
2015-07-06 02:20:25 -03:00
Marcos Lilljedahl d545b197ea Add docker containers to test services.
This commit initializes the needed services which are not mocked
so tests can be executed in any environment with docker.

Some default modifications (i.e: connection strings) were also made to
current tests to accomodate them for this setup.

A docker-compose.yml file is provided with all the necessary parameters
for this services to be initialized. Future services can be added
easily by extending this configuration file

In addition a makefile has been introduced to simplify command execution
2015-07-06 01:46:43 -03:00
Todd Persen 1d8e6473c6 Merge pull request #45 from jhofeditz/patch-1
skip disk tags with no value
2015-07-05 16:51:58 -07:00
Todd Persen 494704b479 Merge pull request #28 from brian-brazil/prometheus-plugin-only
Add support for Prometheus (plugin only)
2015-07-05 16:49:36 -07:00
Todd Persen d634b08969 Merge pull request #47 from jipperinbham/rethinkdb-plugin
add RethinkDB plugin
2015-07-05 16:47:20 -07:00
JP 1943d89147 add RethinkDB plugin 2015-07-04 15:09:33 -05:00
Joe Hofeditz 073b1084b7 skip disk tags with no value
Influxdb 0.9.1 now rejects writes with empty tag values. This patch skips tags with no values. A disk serial number does not exist for many devices including md raid arrays and VMs. Other plugins may also want to check for empty tags.
2015-07-03 08:11:52 -06:00
Marcos Lilljedahl 5cbe15b676 Return error when can't execute stats query 2015-07-03 09:25:18 -03:00
Marcos Lilljedahl e2cff9febe Fix mysql plugin due to test accumulator refactor 2015-07-03 09:17:53 -03:00
Emil Stolarsky 0692b4be61 Add Kafka Consumer Plugin
The Kafka consumer plugin polls a specified Kafka topic and adds messages to
InfluxDB. The plugin assumes messages follow the line protocol. Consumer Group
is used to talk to the Kafka cluster so multiple instances of telegraf can read
from the same topic in parallel.
2015-07-02 15:40:13 -04:00
Brian Brazil 5390a8ea71 Add Prometheus plugin.
This allows pulling Prometheus metrics from
any client library or exporter over HTTP.
2015-06-24 22:15:58 +01:00
Brian Brazil e34c52402f Improve test infrastructure 2015-06-24 22:15:58 +01:00
Evan Phoenix 86a6f337f6 Cleanup the URL when one isn't specified 2015-06-23 14:51:55 -07:00
Evan Phoenix a1f7d5549b Fix type error using URL as a string 2015-06-23 14:51:38 -07:00
Evan Phoenix 5fbd07b146 Add memcached to the all plugins package 2015-06-23 14:51:32 -07:00
Evan Phoenix b8f3c68b89 Merge pull request #21 from fromYukki/memcached
Memcached plugin
2015-06-23 14:44:52 -07:00
Evan Phoenix 043b171028 Merge pull request #16 from jipperinbham/redis_auth
convert Redis to use URI, support Redis AUTH
2015-06-23 14:37:08 -07:00
Maksim Naumov b86d789abe Explore "limit_maxbytes" and "bytes" individually 2015-06-23 09:44:39 +02:00
JP e1c7dc80ae redis plugin accepts URI or string, support Redis AUTH 2015-06-22 20:49:11 -05:00
Sherif Zain e2dac56a40 Added: server to tags 2015-06-22 10:40:30 +02:00
Maksim Naumov 039fc80ed7 Memcached plugin 2015-06-22 04:27:46 +02:00
Sherif Zain 2ccd828e81 Fixed: differentiate stats gathered from multiple redis servers/instances 2015-06-21 23:38:42 +02:00
gunnaraasen c492f8e7eb Update plugin registry from name -> measurement 2015-05-29 13:31:27 -07:00
Evan Phoenix 2bd58ee4df A set of fixes to fix the tests 2015-05-26 22:15:05 -07:00
Evan Phoenix 2667183bfb Add 'AddValuesWithTime' function to accumulator 2015-05-26 22:15:05 -07:00
Evan Phoenix 1653330421 Tivan is dead, long live Telegraf. Fixes #3 2015-05-22 16:45:14 -07:00
Evan Phoenix ead52e807e Improve sample config 2015-05-22 16:26:32 -07:00
Evan Phoenix 40cc034acb Add rule about 'localhost' 2015-05-18 16:08:22 -07:00
Evan Phoenix 5e6d33a57f Breakup the system plugin 2015-05-18 16:01:42 -07:00
Evan Phoenix 4146f5f6df Add ability to restrict which network interfaces are sampled 2015-05-18 15:50:09 -07:00
Evan Phoenix 13e6018eb0 Minor usability fixes to config 2015-05-18 15:22:04 -07:00
Evan Phoenix 82cbc4daa2 Add ability to generate config from available plugins 2015-05-18 15:10:11 -07:00
Evan Phoenix f1e1204374 Enforce stat prefixing at the accumulator layer 2015-05-18 12:15:15 -07:00
Evan Phoenix bcb33d880e Enable pg and mysql by default 2015-05-18 11:54:27 -07:00
Evan Phoenix 00c99ec373 Add mysql plugin 2015-05-18 11:54:11 -07:00
Evan Phoenix 60a49243cf Gather stats from PG and redis from localhost by default 2015-05-18 11:53:57 -07:00
Evan Phoenix 4d0784a64d Add postgresql plugin 2015-05-18 11:53:17 -07:00
Evan Phoenix 5b9f7e7bf3 Add ability to query many redis servers 2015-05-18 09:26:10 -07:00
Evan Phoenix 660285d764 Use _ as the namespace separator 2015-04-07 11:59:11 -07:00
Evan Phoenix 04b2bbd30b Add redis plugin 2015-04-07 11:54:21 -07:00
Evan Phoenix f0675e52c3 Namespace the system metrics 2015-04-07 10:25:05 -07:00
Evan Phoenix 2820c0391e Fix all imports 2015-04-07 09:39:23 -07:00
Evan Phoenix 6302dc553c Detect docker is not available gracefully 2015-04-07 09:24:16 -07:00
Evan Phoenix 7b0c09d5e9 Use dockerclient to get containers and info 2015-04-06 17:24:04 -07:00
Evan Phoenix a574261b3a Report better errors where system stats can't be gathered 2015-04-06 17:23:38 -07:00
Evan Phoenix 8dba9a9383 Report cpu stats using tags 2015-04-06 17:23:15 -07:00
Evan Phoenix 470ae6548e Report that docker isn't available better in psutils 2015-04-06 17:21:43 -07:00
Evan Phoenix da3aeca720 Fix a few more imports 2015-04-06 17:21:22 -07:00
Evan Phoenix 941c9acabf Fix a couple imports and a float comparison test 2015-04-06 16:22:34 -07:00
Evan Phoenix ba96ae78dd Add docker stats 2015-04-06 16:03:09 -07:00
Evan Phoenix 07261e885f Fix docker stats 2015-04-06 16:02:58 -07:00
Evan Phoenix b39b1958e8 Add VM and Swap stats 2015-04-06 14:53:43 -07:00
Evan Phoenix 250074eecf Add disk io stats 2015-04-06 10:59:05 -07:00
Evan Phoenix 065e094121 Add NetIO 2015-04-06 10:44:32 -07:00
Evan Phoenix 3d753d721a Add disk usage stats 2015-04-06 10:34:55 -07:00
Evan Phoenix 71461e7a49 Disable gopsutil tests that don't work on darwin 2015-04-06 09:46:47 -07:00
Evan Phoenix d1cc82653a Switch plugin API to use an accumulator 2015-04-06 09:32:10 -07:00
Evan Phoenix 9c42aea28c Vendor psutils and remove neko 2015-04-03 17:22:31 -07:00
Evan Phoenix db74acb86d Initial spike
This is mostly to solidify the overall structure with the agent,
plugins, and testing philosphy.
2015-04-01 21:55:51 -07:00