Corrected import paths:

influxdb/telegraf -> koksan83/telegraf
This commit is contained in:
me 2015-09-22 12:57:12 +08:00
parent c5b1a6d77e
commit 5e46d5e45a
100 changed files with 216 additions and 216 deletions

View File

@ -1,93 +1,93 @@
## v0.1.7 [unreleased] ## v0.1.7 [unreleased]
### Features ### Features
- [#38](https://github.com/influxdb/telegraf/pull/38): Kafka output producer. - [#38](https://github.com/koksan83/telegraf/pull/38): Kafka output producer.
- [#133](https://github.com/influxdb/telegraf/pull/133): Add plugin.Gather error logging. Thanks @nickscript0! - [#133](https://github.com/koksan83/telegraf/pull/133): Add plugin.Gather error logging. Thanks @nickscript0!
- [#136](https://github.com/influxdb/telegraf/issues/136): Add a -usage flag for printing usage of a single plugin. - [#136](https://github.com/koksan83/telegraf/issues/136): Add a -usage flag for printing usage of a single plugin.
- [#137](https://github.com/influxdb/telegraf/issues/137): Memcached: fix when a value contains a space - [#137](https://github.com/koksan83/telegraf/issues/137): Memcached: fix when a value contains a space
- [#138](https://github.com/influxdb/telegraf/issues/138): MySQL server address tag. - [#138](https://github.com/koksan83/telegraf/issues/138): MySQL server address tag.
- [#142](https://github.com/influxdb/telegraf/pull/142): Add Description and SampleConfig funcs to output interface - [#142](https://github.com/koksan83/telegraf/pull/142): Add Description and SampleConfig funcs to output interface
- Indent the toml config file for readability - Indent the toml config file for readability
### Bugfixes ### Bugfixes
- [#128](https://github.com/influxdb/telegraf/issues/128): system_load measurement missing. - [#128](https://github.com/koksan83/telegraf/issues/128): system_load measurement missing.
- [#129](https://github.com/influxdb/telegraf/issues/129): Latest pkg url fix. - [#129](https://github.com/koksan83/telegraf/issues/129): Latest pkg url fix.
- [#131](https://github.com/influxdb/telegraf/issues/131): Fix memory reporting on linux & darwin. Thanks @subhachandrachandra! - [#131](https://github.com/koksan83/telegraf/issues/131): Fix memory reporting on linux & darwin. Thanks @subhachandrachandra!
- [#140](https://github.com/influxdb/telegraf/issues/140): Memory plugin prec->perc typo fix. Thanks @brunoqc! - [#140](https://github.com/koksan83/telegraf/issues/140): Memory plugin prec->perc typo fix. Thanks @brunoqc!
## v0.1.6 [2015-08-20] ## v0.1.6 [2015-08-20]
### Features ### Features
- [#112](https://github.com/influxdb/telegraf/pull/112): Datadog output. Thanks @jipperinbham! - [#112](https://github.com/koksan83/telegraf/pull/112): Datadog output. Thanks @jipperinbham!
- [#116](https://github.com/influxdb/telegraf/pull/116): Use godep to vendor all dependencies - [#116](https://github.com/koksan83/telegraf/pull/116): Use godep to vendor all dependencies
- [#120](https://github.com/influxdb/telegraf/pull/120): Httpjson plugin. Thanks @jpalay & @alvaromorales! - [#120](https://github.com/koksan83/telegraf/pull/120): Httpjson plugin. Thanks @jpalay & @alvaromorales!
### Bugfixes ### Bugfixes
- [#113](https://github.com/influxdb/telegraf/issues/113): Update README with Telegraf/InfluxDB compatibility - [#113](https://github.com/koksan83/telegraf/issues/113): Update README with Telegraf/InfluxDB compatibility
- [#118](https://github.com/influxdb/telegraf/pull/118): Fix for disk usage stats in Windows. Thanks @srfraser! - [#118](https://github.com/koksan83/telegraf/pull/118): Fix for disk usage stats in Windows. Thanks @srfraser!
- [#122](https://github.com/influxdb/telegraf/issues/122): Fix for DiskUsage segv fault. Thanks @srfraser! - [#122](https://github.com/koksan83/telegraf/issues/122): Fix for DiskUsage segv fault. Thanks @srfraser!
- [#126](https://github.com/influxdb/telegraf/issues/126): Nginx plugin not catching net.SplitHostPort error - [#126](https://github.com/koksan83/telegraf/issues/126): Nginx plugin not catching net.SplitHostPort error
## v0.1.5 [2015-08-13] ## v0.1.5 [2015-08-13]
### Features ### Features
- [#54](https://github.com/influxdb/telegraf/pull/54): MongoDB plugin. Thanks @jipperinbham! - [#54](https://github.com/koksan83/telegraf/pull/54): MongoDB plugin. Thanks @jipperinbham!
- [#55](https://github.com/influxdb/telegraf/pull/55): Elasticsearch plugin. Thanks @brocaar! - [#55](https://github.com/koksan83/telegraf/pull/55): Elasticsearch plugin. Thanks @brocaar!
- [#71](https://github.com/influxdb/telegraf/pull/71): HAProxy plugin. Thanks @kureikain! - [#71](https://github.com/koksan83/telegraf/pull/71): HAProxy plugin. Thanks @kureikain!
- [#72](https://github.com/influxdb/telegraf/pull/72): Adding TokuDB metrics to MySQL. Thanks vadimtk! - [#72](https://github.com/koksan83/telegraf/pull/72): Adding TokuDB metrics to MySQL. Thanks vadimtk!
- [#73](https://github.com/influxdb/telegraf/pull/73): RabbitMQ plugin. Thanks @ianunruh! - [#73](https://github.com/koksan83/telegraf/pull/73): RabbitMQ plugin. Thanks @ianunruh!
- [#77](https://github.com/influxdb/telegraf/issues/77): Automatically create database. - [#77](https://github.com/koksan83/telegraf/issues/77): Automatically create database.
- [#79](https://github.com/influxdb/telegraf/pull/56): Nginx plugin. Thanks @codeb2cc! - [#79](https://github.com/koksan83/telegraf/pull/56): Nginx plugin. Thanks @codeb2cc!
- [#86](https://github.com/influxdb/telegraf/pull/86): Lustre2 plugin. Thanks srfraser! - [#86](https://github.com/koksan83/telegraf/pull/86): Lustre2 plugin. Thanks srfraser!
- [#91](https://github.com/influxdb/telegraf/pull/91): Unit testing - [#91](https://github.com/koksan83/telegraf/pull/91): Unit testing
- [#92](https://github.com/influxdb/telegraf/pull/92): Exec plugin. Thanks @alvaromorales! - [#92](https://github.com/koksan83/telegraf/pull/92): Exec plugin. Thanks @alvaromorales!
- [#98](https://github.com/influxdb/telegraf/pull/98): LeoFS plugin. Thanks @mocchira! - [#98](https://github.com/koksan83/telegraf/pull/98): LeoFS plugin. Thanks @mocchira!
- [#103](https://github.com/influxdb/telegraf/pull/103): Filter by metric tags. Thanks @srfraser! - [#103](https://github.com/koksan83/telegraf/pull/103): Filter by metric tags. Thanks @srfraser!
- [#106](https://github.com/influxdb/telegraf/pull/106): Options to filter plugins on startup. Thanks @zepouet! - [#106](https://github.com/koksan83/telegraf/pull/106): Options to filter plugins on startup. Thanks @zepouet!
- [#107](https://github.com/influxdb/telegraf/pull/107): Multiple outputs beyong influxdb. Thanks @jipperinbham! - [#107](https://github.com/koksan83/telegraf/pull/107): Multiple outputs beyong influxdb. Thanks @jipperinbham!
- [#108](https://github.com/influxdb/telegraf/issues/108): Support setting per-CPU and total-CPU gathering. - [#108](https://github.com/koksan83/telegraf/issues/108): Support setting per-CPU and total-CPU gathering.
- [#111](https://github.com/influxdb/telegraf/pull/111): Report CPU Usage in cpu plugin. Thanks @jpalay! - [#111](https://github.com/koksan83/telegraf/pull/111): Report CPU Usage in cpu plugin. Thanks @jpalay!
### Bugfixes ### Bugfixes
- [#85](https://github.com/influxdb/telegraf/pull/85): Fix GetLocalHost testutil function for mac users - [#85](https://github.com/koksan83/telegraf/pull/85): Fix GetLocalHost testutil function for mac users
- [#89](https://github.com/influxdb/telegraf/pull/89): go fmt fixes - [#89](https://github.com/koksan83/telegraf/pull/89): go fmt fixes
- [#94](https://github.com/influxdb/telegraf/pull/94): Fix for issue #93, explicitly call sarama.v1 -> sarama - [#94](https://github.com/koksan83/telegraf/pull/94): Fix for issue #93, explicitly call sarama.v1 -> sarama
- [#101](https://github.com/influxdb/telegraf/issues/101): switch back from master branch if building locally - [#101](https://github.com/koksan83/telegraf/issues/101): switch back from master branch if building locally
- [#99](https://github.com/influxdb/telegraf/issues/99): update integer output to new InfluxDB line protocol format - [#99](https://github.com/koksan83/telegraf/issues/99): update integer output to new InfluxDB line protocol format
## v0.1.4 [2015-07-09] ## v0.1.4 [2015-07-09]
### Features ### Features
- [#56](https://github.com/influxdb/telegraf/pull/56): Update README for Kafka plugin. Thanks @EmilS! - [#56](https://github.com/koksan83/telegraf/pull/56): Update README for Kafka plugin. Thanks @EmilS!
### Bugfixes ### Bugfixes
- [#50](https://github.com/influxdb/telegraf/pull/50): Fix init.sh script to use telegraf directory. Thanks @jseriff! - [#50](https://github.com/koksan83/telegraf/pull/50): Fix init.sh script to use telegraf directory. Thanks @jseriff!
- [#52](https://github.com/influxdb/telegraf/pull/52): Update CHANGELOG to reference updated directory. Thanks @benfb! - [#52](https://github.com/koksan83/telegraf/pull/52): Update CHANGELOG to reference updated directory. Thanks @benfb!
## v0.1.3 [2015-07-05] ## v0.1.3 [2015-07-05]
### Features ### Features
- [#35](https://github.com/influxdb/telegraf/pull/35): Add Kafka plugin. Thanks @EmilS! - [#35](https://github.com/koksan83/telegraf/pull/35): Add Kafka plugin. Thanks @EmilS!
- [#47](https://github.com/influxdb/telegraf/pull/47): Add RethinkDB plugin. Thanks @jipperinbham! - [#47](https://github.com/koksan83/telegraf/pull/47): Add RethinkDB plugin. Thanks @jipperinbham!
### Bugfixes ### Bugfixes
- [#45](https://github.com/influxdb/telegraf/pull/45): Skip disk tags that don't have a value. Thanks @jhofeditz! - [#45](https://github.com/koksan83/telegraf/pull/45): Skip disk tags that don't have a value. Thanks @jhofeditz!
- [#43](https://github.com/influxdb/telegraf/pull/43): Fix bug in MySQL plugin. Thanks @marcosnils! - [#43](https://github.com/koksan83/telegraf/pull/43): Fix bug in MySQL plugin. Thanks @marcosnils!
## v0.1.2 [2015-07-01] ## v0.1.2 [2015-07-01]
### Features ### Features
- [#12](https://github.com/influxdb/telegraf/pull/12): Add Linux/ARM to the list of built binaries. Thanks @voxxit! - [#12](https://github.com/koksan83/telegraf/pull/12): Add Linux/ARM to the list of built binaries. Thanks @voxxit!
- [#14](https://github.com/influxdb/telegraf/pull/14): Clarify the S3 buckets that Telegraf is pushed to. - [#14](https://github.com/koksan83/telegraf/pull/14): Clarify the S3 buckets that Telegraf is pushed to.
- [#16](https://github.com/influxdb/telegraf/pull/16): Convert Redis to use URI, support Redis AUTH. Thanks @jipperinbham! - [#16](https://github.com/koksan83/telegraf/pull/16): Convert Redis to use URI, support Redis AUTH. Thanks @jipperinbham!
- [#21](https://github.com/influxdb/telegraf/pull/21): Add memcached plugin. Thanks @Yukki! - [#21](https://github.com/koksan83/telegraf/pull/21): Add memcached plugin. Thanks @Yukki!
### Bugfixes ### Bugfixes
- [#13](https://github.com/influxdb/telegraf/pull/13): Fix the packaging script. - [#13](https://github.com/koksan83/telegraf/pull/13): Fix the packaging script.
- [#19](https://github.com/influxdb/telegraf/pull/19): Add host name to metric tags. Thanks @sherifzain! - [#19](https://github.com/koksan83/telegraf/pull/19): Add host name to metric tags. Thanks @sherifzain!
- [#20](https://github.com/influxdb/telegraf/pull/20): Fix race condition with accumulator mutex. Thanks @nkatsaros! - [#20](https://github.com/koksan83/telegraf/pull/20): Fix race condition with accumulator mutex. Thanks @nkatsaros!
- [#23](https://github.com/influxdb/telegraf/pull/23): Change name of folder for packages. Thanks @colinrymer! - [#23](https://github.com/koksan83/telegraf/pull/23): Change name of folder for packages. Thanks @colinrymer!
- [#32](https://github.com/influxdb/telegraf/pull/32): Fix spelling of memoory -> memory. Thanks @tylernisonoff! - [#32](https://github.com/koksan83/telegraf/pull/32): Fix spelling of memoory -> memory. Thanks @tylernisonoff!
## v0.1.1 [2015-06-19] ## v0.1.1 [2015-06-19]

2
Godeps/Godeps.json generated
View File

@ -1,5 +1,5 @@
{ {
"ImportPath": "github.com/influxdb/telegraf", "ImportPath": "github.com/koksan83/telegraf",
"GoVersion": "go1.4.2", "GoVersion": "go1.4.2",
"Packages": [ "Packages": [
"./..." "./..."

View File

@ -1,4 +1,4 @@
# Telegraf - A native agent for InfluxDB [![Circle CI](https://circleci.com/gh/influxdb/telegraf.svg?style=svg)](https://circleci.com/gh/influxdb/telegraf) # Telegraf - A native agent for InfluxDB [![Circle CI](https://circleci.com/gh/koksan83/telegraf.svg?style=svg)](https://circleci.com/gh/koksan83/telegraf)
Telegraf is an agent written in Go for collecting metrics from the system it's Telegraf is an agent written in Go for collecting metrics from the system it's
running on or from other services and writing them into InfluxDB. running on or from other services and writing them into InfluxDB.
@ -51,8 +51,8 @@ if you don't have it already. You also must build with golang version 1.4+
1. [Install Go](https://golang.org/doc/install) 1. [Install Go](https://golang.org/doc/install)
2. [Setup your GOPATH](https://golang.org/doc/code.html#GOPATH) 2. [Setup your GOPATH](https://golang.org/doc/code.html#GOPATH)
3. run `go get github.com/influxdb/telegraf` 3. run `go get github.com/koksan83/telegraf`
4. `cd $GOPATH/src/github.com/influxdb/telegraf` 4. `cd $GOPATH/src/github.com/koksan83/telegraf`
5. run `make` 5. run `make`
### How to use it: ### How to use it:
@ -186,7 +186,7 @@ it prepended. This is to keep plugins honest.
* Plugins should call `plugins.Add` in their `init` function to register themselves. * Plugins should call `plugins.Add` in their `init` function to register themselves.
See below for a quick example. See below for a quick example.
* To be available within Telegraf itself, plugins must add themselves to the * To be available within Telegraf itself, plugins must add themselves to the
`github.com/influxdb/telegraf/plugins/all/all.go` file. `github.com/koksan83/telegraf/plugins/all/all.go` file.
* The `SampleConfig` function should return valid toml that describes how the * The `SampleConfig` function should return valid toml that describes how the
plugin can be configured. This is include in `telegraf -sample-config`. plugin can be configured. This is include in `telegraf -sample-config`.
* The `Description` function should say in one line what this plugin does. * The `Description` function should say in one line what this plugin does.
@ -259,7 +259,7 @@ package simple
// simple.go // simple.go
import "github.com/influxdb/telegraf/plugins" import "github.com/koksan83/telegraf/plugins"
type Simple struct { type Simple struct {
Ok bool Ok bool
@ -303,7 +303,7 @@ which would take some time to replicate.
To overcome this situation we've decided to use docker containers to provide a To overcome this situation we've decided to use docker containers to provide a
fast and reproducible environment to test those services which require it. fast and reproducible environment to test those services which require it.
For other situations For other situations
(i.e: https://github.com/influxdb/telegraf/blob/master/plugins/redis/redis_test.go ) (i.e: https://github.com/koksan83/telegraf/blob/master/plugins/redis/redis_test.go )
a simple mock will suffice. a simple mock will suffice.
To execute Telegraf tests follow these simple steps: To execute Telegraf tests follow these simple steps:

4
Vagrantfile vendored
View File

@ -7,7 +7,7 @@ VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64" config.vm.box = "ubuntu/trusty64"
config.vm.synced_folder ".", "/home/vagrant/go/src/github.com/influxdb/telegraf", config.vm.synced_folder ".", "/home/vagrant/go/src/github.com/koksan83/telegraf",
type: "rsync", type: "rsync",
rsync__args: ["--verbose", "--archive", "--delete", "-z", "--safe-links"], rsync__args: ["--verbose", "--archive", "--delete", "-z", "--safe-links"],
rsync__exclude: ["./telegraf", ".vagrant/"] rsync__exclude: ["./telegraf", ".vagrant/"]
@ -26,7 +26,7 @@ Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
gvm use go1.4.2 --default gvm use go1.4.2 --default
echo "export PATH=$PATH:$GOPATH/bin" >> "$HOME/.bashrc" echo "export PATH=$PATH:$GOPATH/bin" >> "$HOME/.bashrc"
echo 'export GOPATH=/home/vagrant/go' >> "$HOME/.bashrc" echo 'export GOPATH=/home/vagrant/go' >> "$HOME/.bashrc"
cd "$HOME/go/src/github.com/influxdb/telegraf" &&\ cd "$HOME/go/src/github.com/koksan83/telegraf" &&\
rm -rf Godeps/_workspace/pkg &&\ rm -rf Godeps/_workspace/pkg &&\
GOPATH="$HOME/go" make GOPATH="$HOME/go" make
SHELL SHELL

View File

@ -10,8 +10,8 @@ import (
"sync" "sync"
"time" "time"
"github.com/influxdb/telegraf/outputs" "github.com/koksan83/telegraf/outputs"
"github.com/influxdb/telegraf/plugins" "github.com/koksan83/telegraf/plugins"
) )
type runningOutput struct { type runningOutput struct {

View File

@ -5,7 +5,7 @@ import (
"testing" "testing"
// needing to load the plugins // needing to load the plugins
_ "github.com/influxdb/telegraf/plugins/all" _ "github.com/koksan83/telegraf/plugins/all"
) )
func TestAgent_LoadPlugin(t *testing.T) { func TestAgent_LoadPlugin(t *testing.T) {

View File

@ -51,7 +51,7 @@ echo "\$CIRCLE_BRANCH: $CIRCLE_BRANCH"
# Move the checked-out source to a better location # Move the checked-out source to a better location
exit_if_fail mv $HOME/telegraf $GOPATH/src/github.com/influxdb exit_if_fail mv $HOME/telegraf $GOPATH/src/github.com/influxdb
exit_if_fail cd $GOPATH/src/github.com/influxdb/telegraf exit_if_fail cd $GOPATH/src/github.com/koksan83/telegraf
# Install the code # Install the code
exit_if_fail godep go build -v ./... exit_if_fail godep go build -v ./...

View File

@ -8,9 +8,9 @@ import (
"os/signal" "os/signal"
"strings" "strings"
"github.com/influxdb/telegraf" "github.com/koksan83/telegraf"
_ "github.com/influxdb/telegraf/outputs/all" _ "github.com/koksan83/telegraf/outputs/all"
_ "github.com/influxdb/telegraf/plugins/all" _ "github.com/koksan83/telegraf/plugins/all"
) )
var fDebug = flag.Bool("debug", false, var fDebug = flag.Bool("debug", false,

View File

@ -8,8 +8,8 @@ import (
"strings" "strings"
"time" "time"
"github.com/influxdb/telegraf/outputs" "github.com/koksan83/telegraf/outputs"
"github.com/influxdb/telegraf/plugins" "github.com/koksan83/telegraf/plugins"
"github.com/naoina/toml" "github.com/naoina/toml"
"github.com/naoina/toml/ast" "github.com/naoina/toml/ast"
) )

View File

@ -1,7 +1,7 @@
package all package all
import ( import (
_ "github.com/influxdb/telegraf/outputs/datadog" _ "github.com/koksan83/telegraf/outputs/datadog"
_ "github.com/influxdb/telegraf/outputs/influxdb" _ "github.com/koksan83/telegraf/outputs/influxdb"
_ "github.com/influxdb/telegraf/outputs/kafka" _ "github.com/koksan83/telegraf/outputs/kafka"
) )

View File

@ -9,8 +9,8 @@ import (
"sort" "sort"
"github.com/influxdb/influxdb/client" "github.com/influxdb/influxdb/client"
t "github.com/influxdb/telegraf" t "github.com/koksan83/telegraf"
"github.com/influxdb/telegraf/outputs" "github.com/koksan83/telegraf/outputs"
) )
type Datadog struct { type Datadog struct {

View File

@ -9,7 +9,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/influxdb/telegraf/testutil" "github.com/koksan83/telegraf/testutil"
"github.com/influxdb/influxdb/client" "github.com/influxdb/influxdb/client"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"

View File

@ -7,8 +7,8 @@ import (
"strings" "strings"
"github.com/influxdb/influxdb/client" "github.com/influxdb/influxdb/client"
t "github.com/influxdb/telegraf" t "github.com/koksan83/telegraf"
"github.com/influxdb/telegraf/outputs" "github.com/koksan83/telegraf/outputs"
) )
type InfluxDB struct { type InfluxDB struct {

View File

@ -6,7 +6,7 @@ import (
"github.com/Shopify/sarama" "github.com/Shopify/sarama"
"github.com/influxdb/influxdb/client" "github.com/influxdb/influxdb/client"
"github.com/influxdb/telegraf/outputs" "github.com/koksan83/telegraf/outputs"
) )
type Kafka struct { type Kafka struct {

View File

@ -3,7 +3,7 @@ package kafka
import ( import (
"testing" "testing"
"github.com/influxdb/telegraf/testutil" "github.com/koksan83/telegraf/testutil"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View File

@ -1,22 +1,22 @@
package all package all
import ( import (
_ "github.com/influxdb/telegraf/plugins/disque" _ "github.com/koksan83/telegraf/plugins/disque"
_ "github.com/influxdb/telegraf/plugins/elasticsearch" _ "github.com/koksan83/telegraf/plugins/elasticsearch"
_ "github.com/influxdb/telegraf/plugins/exec" _ "github.com/koksan83/telegraf/plugins/exec"
_ "github.com/influxdb/telegraf/plugins/haproxy" _ "github.com/koksan83/telegraf/plugins/haproxy"
_ "github.com/influxdb/telegraf/plugins/httpjson" _ "github.com/koksan83/telegraf/plugins/httpjson"
_ "github.com/influxdb/telegraf/plugins/kafka_consumer" _ "github.com/koksan83/telegraf/plugins/kafka_consumer"
_ "github.com/influxdb/telegraf/plugins/leofs" _ "github.com/koksan83/telegraf/plugins/leofs"
_ "github.com/influxdb/telegraf/plugins/lustre2" _ "github.com/koksan83/telegraf/plugins/lustre2"
_ "github.com/influxdb/telegraf/plugins/memcached" _ "github.com/koksan83/telegraf/plugins/memcached"
_ "github.com/influxdb/telegraf/plugins/mongodb" _ "github.com/koksan83/telegraf/plugins/mongodb"
_ "github.com/influxdb/telegraf/plugins/mysql" _ "github.com/koksan83/telegraf/plugins/mysql"
_ "github.com/influxdb/telegraf/plugins/nginx" _ "github.com/koksan83/telegraf/plugins/nginx"
_ "github.com/influxdb/telegraf/plugins/postgresql" _ "github.com/koksan83/telegraf/plugins/postgresql"
_ "github.com/influxdb/telegraf/plugins/prometheus" _ "github.com/koksan83/telegraf/plugins/prometheus"
_ "github.com/influxdb/telegraf/plugins/rabbitmq" _ "github.com/koksan83/telegraf/plugins/rabbitmq"
_ "github.com/influxdb/telegraf/plugins/redis" _ "github.com/koksan83/telegraf/plugins/redis"
_ "github.com/influxdb/telegraf/plugins/rethinkdb" _ "github.com/koksan83/telegraf/plugins/rethinkdb"
_ "github.com/influxdb/telegraf/plugins/system" _ "github.com/koksan83/telegraf/plugins/system"
) )

View File

@ -10,7 +10,7 @@ import (
"strings" "strings"
"sync" "sync"
"github.com/influxdb/telegraf/plugins" "github.com/koksan83/telegraf/plugins"
) )
type Disque struct { type Disque struct {

View File

@ -6,7 +6,7 @@ import (
"net" "net"
"testing" "testing"
"github.com/influxdb/telegraf/testutil" "github.com/koksan83/telegraf/testutil"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View File

@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"net/http" "net/http"
"github.com/influxdb/telegraf/plugins" "github.com/koksan83/telegraf/plugins"
) )
const statsPath = "/_nodes/stats" const statsPath = "/_nodes/stats"

View File

@ -6,7 +6,7 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/influxdb/telegraf/testutil" "github.com/koksan83/telegraf/testutil"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

View File

@ -5,7 +5,7 @@ import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"github.com/gonuts/go-shellquote" "github.com/gonuts/go-shellquote"
"github.com/influxdb/telegraf/plugins" "github.com/koksan83/telegraf/plugins"
"os/exec" "os/exec"
"sync" "sync"
) )

View File

@ -2,7 +2,7 @@ package exec
import ( import (
"fmt" "fmt"
"github.com/influxdb/telegraf/testutil" "github.com/koksan83/telegraf/testutil"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"testing" "testing"

View File

@ -3,7 +3,7 @@ package haproxy
import ( import (
"encoding/csv" "encoding/csv"
"fmt" "fmt"
"github.com/influxdb/telegraf/plugins" "github.com/koksan83/telegraf/plugins"
"io" "io"
"net/http" "net/http"
"net/url" "net/url"

View File

@ -5,7 +5,7 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/influxdb/telegraf/testutil" "github.com/koksan83/telegraf/testutil"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"net/http" "net/http"

View File

@ -10,7 +10,7 @@ import (
"strings" "strings"
"sync" "sync"
"github.com/influxdb/telegraf/plugins" "github.com/koksan83/telegraf/plugins"
) )
type HttpJson struct { type HttpJson struct {

View File

@ -7,7 +7,7 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/influxdb/telegraf/testutil" "github.com/koksan83/telegraf/testutil"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View File

@ -7,7 +7,7 @@ import (
"github.com/Shopify/sarama" "github.com/Shopify/sarama"
"github.com/influxdb/influxdb/tsdb" "github.com/influxdb/influxdb/tsdb"
"github.com/influxdb/telegraf/plugins" "github.com/koksan83/telegraf/plugins"
"github.com/wvanbergen/kafka/consumergroup" "github.com/wvanbergen/kafka/consumergroup"
) )

View File

@ -6,7 +6,7 @@ import (
"time" "time"
"github.com/Shopify/sarama" "github.com/Shopify/sarama"
"github.com/influxdb/telegraf/testutil" "github.com/koksan83/telegraf/testutil"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View File

@ -6,7 +6,7 @@ import (
"time" "time"
"github.com/Shopify/sarama" "github.com/Shopify/sarama"
"github.com/influxdb/telegraf/testutil" "github.com/koksan83/telegraf/testutil"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View File

@ -3,7 +3,7 @@ package leofs
import ( import (
"bufio" "bufio"
"fmt" "fmt"
"github.com/influxdb/telegraf/plugins" "github.com/koksan83/telegraf/plugins"
"net/url" "net/url"
"os/exec" "os/exec"
"strconv" "strconv"

View File

@ -1,7 +1,7 @@
package leofs package leofs
import ( import (
"github.com/influxdb/telegraf/testutil" "github.com/koksan83/telegraf/testutil"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"io/ioutil" "io/ioutil"

View File

@ -13,8 +13,8 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/influxdb/telegraf/plugins" "github.com/koksan83/telegraf/plugins"
common "github.com/influxdb/telegraf/plugins/system/ps/common" common "github.com/koksan83/telegraf/plugins/system/ps/common"
) )
// Lustre proc files can change between versions, so we want to future-proof // Lustre proc files can change between versions, so we want to future-proof

View File

@ -5,7 +5,7 @@ import (
"os" "os"
"testing" "testing"
"github.com/influxdb/telegraf/testutil" "github.com/koksan83/telegraf/testutil"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View File

@ -8,7 +8,7 @@ import (
"strconv" "strconv"
"time" "time"
"github.com/influxdb/telegraf/plugins" "github.com/koksan83/telegraf/plugins"
) )
// Memcached is a memcached plugin // Memcached is a memcached plugin

View File

@ -3,7 +3,7 @@ package memcached
import ( import (
"testing" "testing"
"github.com/influxdb/telegraf/testutil" "github.com/koksan83/telegraf/testutil"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View File

@ -9,7 +9,7 @@ import (
"sync" "sync"
"time" "time"
"github.com/influxdb/telegraf/plugins" "github.com/koksan83/telegraf/plugins"
"gopkg.in/mgo.v2" "gopkg.in/mgo.v2"
) )

View File

@ -5,7 +5,7 @@ import (
"reflect" "reflect"
"strconv" "strconv"
"github.com/influxdb/telegraf/plugins" "github.com/koksan83/telegraf/plugins"
) )
type MongodbData struct { type MongodbData struct {

View File

@ -4,7 +4,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/influxdb/telegraf/testutil" "github.com/koksan83/telegraf/testutil"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View File

@ -4,7 +4,7 @@ import (
"net/url" "net/url"
"time" "time"
"github.com/influxdb/telegraf/plugins" "github.com/koksan83/telegraf/plugins"
"gopkg.in/mgo.v2" "gopkg.in/mgo.v2"
"gopkg.in/mgo.v2/bson" "gopkg.in/mgo.v2/bson"
) )

View File

@ -6,7 +6,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/influxdb/telegraf/testutil" "github.com/koksan83/telegraf/testutil"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View File

@ -6,7 +6,7 @@ import (
"strings" "strings"
_ "github.com/go-sql-driver/mysql" _ "github.com/go-sql-driver/mysql"
"github.com/influxdb/telegraf/plugins" "github.com/koksan83/telegraf/plugins"
) )
type Mysql struct { type Mysql struct {

View File

@ -5,7 +5,7 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/influxdb/telegraf/testutil" "github.com/koksan83/telegraf/testutil"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View File

@ -11,7 +11,7 @@ import (
"sync" "sync"
"time" "time"
"github.com/influxdb/telegraf/plugins" "github.com/koksan83/telegraf/plugins"
) )
type Nginx struct { type Nginx struct {

View File

@ -8,7 +8,7 @@ import (
"net/url" "net/url"
"testing" "testing"
"github.com/influxdb/telegraf/testutil" "github.com/koksan83/telegraf/testutil"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View File

@ -3,7 +3,7 @@ package postgresql
import ( import (
"database/sql" "database/sql"
"github.com/influxdb/telegraf/plugins" "github.com/koksan83/telegraf/plugins"
_ "github.com/lib/pq" _ "github.com/lib/pq"
) )

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"testing" "testing"
"github.com/influxdb/telegraf/testutil" "github.com/koksan83/telegraf/testutil"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View File

@ -7,7 +7,7 @@ import (
"sync" "sync"
"time" "time"
"github.com/influxdb/telegraf/plugins" "github.com/koksan83/telegraf/plugins"
"github.com/prometheus/client_golang/extraction" "github.com/prometheus/client_golang/extraction"
"github.com/prometheus/client_golang/model" "github.com/prometheus/client_golang/model"
) )

View File

@ -6,7 +6,7 @@ import (
"net/http/httptest" "net/http/httptest"
"testing" "testing"
"github.com/influxdb/telegraf/testutil" "github.com/koksan83/telegraf/testutil"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View File

@ -5,7 +5,7 @@ import (
"fmt" "fmt"
"net/http" "net/http"
"github.com/influxdb/telegraf/plugins" "github.com/koksan83/telegraf/plugins"
) )
const DefaultUsername = "guest" const DefaultUsername = "guest"

View File

@ -6,7 +6,7 @@ import (
"net/http/httptest" "net/http/httptest"
"testing" "testing"
"github.com/influxdb/telegraf/testutil" "github.com/koksan83/telegraf/testutil"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View File

@ -10,7 +10,7 @@ import (
"strings" "strings"
"sync" "sync"
"github.com/influxdb/telegraf/plugins" "github.com/koksan83/telegraf/plugins"
) )
type Redis struct { type Redis struct {

View File

@ -6,7 +6,7 @@ import (
"net" "net"
"testing" "testing"
"github.com/influxdb/telegraf/testutil" "github.com/koksan83/telegraf/testutil"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View File

@ -5,7 +5,7 @@ import (
"net/url" "net/url"
"sync" "sync"
"github.com/influxdb/telegraf/plugins" "github.com/koksan83/telegraf/plugins"
"gopkg.in/dancannon/gorethink.v1" "gopkg.in/dancannon/gorethink.v1"
) )

View File

@ -4,7 +4,7 @@ import (
"reflect" "reflect"
"time" "time"
"github.com/influxdb/telegraf/plugins" "github.com/koksan83/telegraf/plugins"
) )
type serverStatus struct { type serverStatus struct {

View File

@ -3,7 +3,7 @@ package rethinkdb
import ( import (
"testing" "testing"
"github.com/influxdb/telegraf/testutil" "github.com/koksan83/telegraf/testutil"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
) )

View File

@ -9,7 +9,7 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/influxdb/telegraf/plugins" "github.com/koksan83/telegraf/plugins"
"gopkg.in/dancannon/gorethink.v1" "gopkg.in/dancannon/gorethink.v1"
) )

View File

@ -5,7 +5,7 @@ package rethinkdb
import ( import (
"testing" "testing"
"github.com/influxdb/telegraf/testutil" "github.com/koksan83/telegraf/testutil"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View File

@ -3,8 +3,8 @@ package system
import ( import (
"fmt" "fmt"
"github.com/influxdb/telegraf/plugins" "github.com/koksan83/telegraf/plugins"
"github.com/influxdb/telegraf/plugins/system/ps/cpu" "github.com/koksan83/telegraf/plugins/system/ps/cpu"
) )
type CPUStats struct { type CPUStats struct {

View File

@ -3,7 +3,7 @@ package system
import ( import (
"fmt" "fmt"
"github.com/influxdb/telegraf/plugins" "github.com/koksan83/telegraf/plugins"
) )
type DiskStats struct { type DiskStats struct {

View File

@ -5,7 +5,7 @@ package system
import ( import (
"fmt" "fmt"
"github.com/influxdb/telegraf/plugins" "github.com/koksan83/telegraf/plugins"
) )
type DockerStats struct { type DockerStats struct {

View File

@ -5,9 +5,9 @@ package system
import ( import (
"testing" "testing"
"github.com/influxdb/telegraf/plugins/system/ps/cpu" "github.com/koksan83/telegraf/plugins/system/ps/cpu"
"github.com/influxdb/telegraf/plugins/system/ps/docker" "github.com/koksan83/telegraf/plugins/system/ps/docker"
"github.com/influxdb/telegraf/testutil" "github.com/koksan83/telegraf/testutil"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"

View File

@ -3,7 +3,7 @@ package system
import ( import (
"fmt" "fmt"
"github.com/influxdb/telegraf/plugins" "github.com/koksan83/telegraf/plugins"
) )
type MemStats struct { type MemStats struct {

View File

@ -2,12 +2,12 @@ package system
import "github.com/stretchr/testify/mock" import "github.com/stretchr/testify/mock"
import "github.com/influxdb/telegraf/plugins/system/ps/cpu" import "github.com/koksan83/telegraf/plugins/system/ps/cpu"
import "github.com/influxdb/telegraf/plugins/system/ps/disk" import "github.com/koksan83/telegraf/plugins/system/ps/disk"
import "github.com/influxdb/telegraf/plugins/system/ps/load" import "github.com/koksan83/telegraf/plugins/system/ps/load"
import "github.com/influxdb/telegraf/plugins/system/ps/mem" import "github.com/koksan83/telegraf/plugins/system/ps/mem"
import "github.com/influxdb/telegraf/plugins/system/ps/net" import "github.com/koksan83/telegraf/plugins/system/ps/net"
type MockPS struct { type MockPS struct {
mock.Mock mock.Mock

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"net" "net"
"github.com/influxdb/telegraf/plugins" "github.com/koksan83/telegraf/plugins"
) )
type NetIOStats struct { type NetIOStats struct {

View File

@ -5,14 +5,14 @@ import (
"strings" "strings"
dc "github.com/fsouza/go-dockerclient" dc "github.com/fsouza/go-dockerclient"
"github.com/influxdb/telegraf/plugins" "github.com/koksan83/telegraf/plugins"
"github.com/influxdb/telegraf/plugins/system/ps/common" "github.com/koksan83/telegraf/plugins/system/ps/common"
"github.com/influxdb/telegraf/plugins/system/ps/cpu" "github.com/koksan83/telegraf/plugins/system/ps/cpu"
"github.com/influxdb/telegraf/plugins/system/ps/disk" "github.com/koksan83/telegraf/plugins/system/ps/disk"
"github.com/influxdb/telegraf/plugins/system/ps/docker" "github.com/koksan83/telegraf/plugins/system/ps/docker"
"github.com/influxdb/telegraf/plugins/system/ps/load" "github.com/koksan83/telegraf/plugins/system/ps/load"
"github.com/influxdb/telegraf/plugins/system/ps/mem" "github.com/koksan83/telegraf/plugins/system/ps/mem"
"github.com/influxdb/telegraf/plugins/system/ps/net" "github.com/koksan83/telegraf/plugins/system/ps/net"
) )
type DockerContainerStat struct { type DockerContainerStat struct {

View File

@ -24,7 +24,7 @@ import (
"strings" "strings"
"unsafe" "unsafe"
common "github.com/influxdb/telegraf/plugins/system/ps/common" common "github.com/koksan83/telegraf/plugins/system/ps/common"
) )
// sys/resource.h // sys/resource.h

View File

@ -8,7 +8,7 @@ import (
"strconv" "strconv"
"strings" "strings"
common "github.com/influxdb/telegraf/plugins/system/ps/common" common "github.com/koksan83/telegraf/plugins/system/ps/common"
) )
// sys/resource.h // sys/resource.h

View File

@ -8,7 +8,7 @@ import (
"strconv" "strconv"
"strings" "strings"
common "github.com/influxdb/telegraf/plugins/system/ps/common" common "github.com/koksan83/telegraf/plugins/system/ps/common"
) )
func CPUTimes(percpu bool) ([]CPUTimesStat, error) { func CPUTimes(percpu bool) ([]CPUTimesStat, error) {

View File

@ -8,7 +8,7 @@ import (
"time" "time"
"unsafe" "unsafe"
common "github.com/influxdb/telegraf/plugins/system/ps/common" common "github.com/koksan83/telegraf/plugins/system/ps/common"
) )
// TODO: Get percpu // TODO: Get percpu

View File

@ -6,7 +6,7 @@ import (
"syscall" "syscall"
"unsafe" "unsafe"
"github.com/influxdb/telegraf/plugins/system/ps/common" "github.com/koksan83/telegraf/plugins/system/ps/common"
) )
func DiskPartitions(all bool) ([]DiskPartitionStat, error) { func DiskPartitions(all bool) ([]DiskPartitionStat, error) {

View File

@ -9,7 +9,7 @@ import (
"syscall" "syscall"
"unsafe" "unsafe"
common "github.com/influxdb/telegraf/plugins/system/ps/common" common "github.com/koksan83/telegraf/plugins/system/ps/common"
) )
const ( const (

View File

@ -8,7 +8,7 @@ import (
"strconv" "strconv"
"strings" "strings"
common "github.com/influxdb/telegraf/plugins/system/ps/common" common "github.com/koksan83/telegraf/plugins/system/ps/common"
) )
const ( const (

View File

@ -5,7 +5,7 @@ import (
"runtime" "runtime"
"testing" "testing"
"github.com/influxdb/telegraf/plugins/system/ps/common" "github.com/koksan83/telegraf/plugins/system/ps/common"
) )
func TestDisk_usage(t *testing.T) { func TestDisk_usage(t *testing.T) {

View File

@ -9,7 +9,7 @@ import (
"time" "time"
"unsafe" "unsafe"
common "github.com/influxdb/telegraf/plugins/system/ps/common" common "github.com/koksan83/telegraf/plugins/system/ps/common"
) )
var ( var (

View File

@ -9,8 +9,8 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/influxdb/telegraf/plugins/system/ps/common" "github.com/koksan83/telegraf/plugins/system/ps/common"
"github.com/influxdb/telegraf/plugins/system/ps/cpu" "github.com/koksan83/telegraf/plugins/system/ps/cpu"
) )
// GetDockerIDList returnes a list of DockerID. // GetDockerIDList returnes a list of DockerID.

View File

@ -5,8 +5,8 @@ package docker
import ( import (
"encoding/json" "encoding/json"
"github.com/influxdb/telegraf/plugins/system/ps/common" "github.com/koksan83/telegraf/plugins/system/ps/common"
"github.com/influxdb/telegraf/plugins/system/ps/cpu" "github.com/koksan83/telegraf/plugins/system/ps/cpu"
) )
// GetDockerIDList returnes a list of DockerID. // GetDockerIDList returnes a list of DockerID.

View File

@ -13,7 +13,7 @@ import (
"strings" "strings"
"unsafe" "unsafe"
common "github.com/influxdb/telegraf/plugins/system/ps/common" common "github.com/koksan83/telegraf/plugins/system/ps/common"
) )
func HostInfo() (*HostInfoStat, error) { func HostInfo() (*HostInfoStat, error) {

View File

@ -13,7 +13,7 @@ import (
"strings" "strings"
"unsafe" "unsafe"
common "github.com/influxdb/telegraf/plugins/system/ps/common" common "github.com/koksan83/telegraf/plugins/system/ps/common"
) )
const ( const (

View File

@ -14,7 +14,7 @@ import (
"syscall" "syscall"
"unsafe" "unsafe"
common "github.com/influxdb/telegraf/plugins/system/ps/common" common "github.com/koksan83/telegraf/plugins/system/ps/common"
) )
type LSB struct { type LSB struct {

View File

@ -8,8 +8,8 @@ import (
"strings" "strings"
"time" "time"
common "github.com/influxdb/telegraf/plugins/system/ps/common" common "github.com/koksan83/telegraf/plugins/system/ps/common"
process "github.com/influxdb/telegraf/plugins/system/ps/process" process "github.com/koksan83/telegraf/plugins/system/ps/process"
) )
var ( var (

View File

@ -5,7 +5,7 @@ package load
import ( import (
"strconv" "strconv"
common "github.com/influxdb/telegraf/plugins/system/ps/common" common "github.com/koksan83/telegraf/plugins/system/ps/common"
) )
func LoadAvg() (*LoadAvgStat, error) { func LoadAvg() (*LoadAvgStat, error) {

View File

@ -5,7 +5,7 @@ package load
import ( import (
"strconv" "strconv"
common "github.com/influxdb/telegraf/plugins/system/ps/common" common "github.com/koksan83/telegraf/plugins/system/ps/common"
) )
func LoadAvg() (*LoadAvgStat, error) { func LoadAvg() (*LoadAvgStat, error) {

View File

@ -3,7 +3,7 @@
package load package load
import ( import (
common "github.com/influxdb/telegraf/plugins/system/ps/common" common "github.com/koksan83/telegraf/plugins/system/ps/common"
) )
func LoadAvg() (*LoadAvgStat, error) { func LoadAvg() (*LoadAvgStat, error) {

View File

@ -7,7 +7,7 @@ import (
"strconv" "strconv"
"strings" "strings"
common "github.com/influxdb/telegraf/plugins/system/ps/common" common "github.com/koksan83/telegraf/plugins/system/ps/common"
) )
func getPageSize() (uint64, error) { func getPageSize() (uint64, error) {

View File

@ -7,7 +7,7 @@ import (
"strconv" "strconv"
"strings" "strings"
common "github.com/influxdb/telegraf/plugins/system/ps/common" common "github.com/koksan83/telegraf/plugins/system/ps/common"
) )
func VirtualMemory() (*VirtualMemoryStat, error) { func VirtualMemory() (*VirtualMemoryStat, error) {

View File

@ -7,7 +7,7 @@ import (
"strings" "strings"
"syscall" "syscall"
common "github.com/influxdb/telegraf/plugins/system/ps/common" common "github.com/koksan83/telegraf/plugins/system/ps/common"
) )
func VirtualMemory() (*VirtualMemoryStat, error) { func VirtualMemory() (*VirtualMemoryStat, error) {

View File

@ -6,7 +6,7 @@ import (
"syscall" "syscall"
"unsafe" "unsafe"
common "github.com/influxdb/telegraf/plugins/system/ps/common" common "github.com/koksan83/telegraf/plugins/system/ps/common"
) )
var ( var (

View File

@ -7,7 +7,7 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/influxdb/telegraf/plugins/system/ps/common" "github.com/koksan83/telegraf/plugins/system/ps/common"
) )
func NetIOCounters(pernic bool) ([]NetIOCountersStat, error) { func NetIOCounters(pernic bool) ([]NetIOCountersStat, error) {

View File

@ -7,7 +7,7 @@ import (
"strconv" "strconv"
"strings" "strings"
"github.com/influxdb/telegraf/plugins/system/ps/common" "github.com/koksan83/telegraf/plugins/system/ps/common"
) )
func NetIOCounters(pernic bool) ([]NetIOCountersStat, error) { func NetIOCounters(pernic bool) ([]NetIOCountersStat, error) {

View File

@ -6,7 +6,7 @@ import (
"strconv" "strconv"
"strings" "strings"
common "github.com/influxdb/telegraf/plugins/system/ps/common" common "github.com/koksan83/telegraf/plugins/system/ps/common"
) )
// NetIOCounters returnes network I/O statistics for every network // NetIOCounters returnes network I/O statistics for every network

View File

@ -8,7 +8,7 @@ import (
"syscall" "syscall"
"unsafe" "unsafe"
common "github.com/influxdb/telegraf/plugins/system/ps/common" common "github.com/koksan83/telegraf/plugins/system/ps/common"
) )
var ( var (

View File

@ -5,7 +5,7 @@ import (
"runtime" "runtime"
"time" "time"
cpu "github.com/influxdb/telegraf/plugins/system/ps/cpu" cpu "github.com/koksan83/telegraf/plugins/system/ps/cpu"
) )
type Process struct { type Process struct {

View File

@ -10,9 +10,9 @@ import (
"syscall" "syscall"
"unsafe" "unsafe"
common "github.com/influxdb/telegraf/plugins/system/ps/common" common "github.com/koksan83/telegraf/plugins/system/ps/common"
cpu "github.com/influxdb/telegraf/plugins/system/ps/cpu" cpu "github.com/koksan83/telegraf/plugins/system/ps/cpu"
net "github.com/influxdb/telegraf/plugins/system/ps/net" net "github.com/koksan83/telegraf/plugins/system/ps/net"
) )
// copied from sys/sysctl.h // copied from sys/sysctl.h

View File

@ -7,9 +7,9 @@ import (
"encoding/binary" "encoding/binary"
"unsafe" "unsafe"
common "github.com/influxdb/telegraf/plugins/system/ps/common" common "github.com/koksan83/telegraf/plugins/system/ps/common"
cpu "github.com/influxdb/telegraf/plugins/system/ps/cpu" cpu "github.com/koksan83/telegraf/plugins/system/ps/cpu"
net "github.com/influxdb/telegraf/plugins/system/ps/net" net "github.com/koksan83/telegraf/plugins/system/ps/net"
) )
// MemoryInfoExStat is different between OSes // MemoryInfoExStat is different between OSes

View File

@ -11,10 +11,10 @@ import (
"strings" "strings"
"syscall" "syscall"
common "github.com/influxdb/telegraf/plugins/system/ps/common" common "github.com/koksan83/telegraf/plugins/system/ps/common"
cpu "github.com/influxdb/telegraf/plugins/system/ps/cpu" cpu "github.com/koksan83/telegraf/plugins/system/ps/cpu"
host "github.com/influxdb/telegraf/plugins/system/ps/host" host "github.com/koksan83/telegraf/plugins/system/ps/host"
net "github.com/influxdb/telegraf/plugins/system/ps/net" net "github.com/koksan83/telegraf/plugins/system/ps/net"
) )
const ( const (

View File

@ -7,7 +7,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/influxdb/telegraf/plugins/system/ps/common" "github.com/koksan83/telegraf/plugins/system/ps/common"
) )
func testGetProcess() Process { func testGetProcess() Process {

View File

@ -11,9 +11,9 @@ import (
"github.com/shirou/w32" "github.com/shirou/w32"
common "github.com/influxdb/telegraf/plugins/system/ps/common" common "github.com/koksan83/telegraf/plugins/system/ps/common"
cpu "github.com/influxdb/telegraf/plugins/system/ps/cpu" cpu "github.com/koksan83/telegraf/plugins/system/ps/cpu"
net "github.com/influxdb/telegraf/plugins/system/ps/net" net "github.com/koksan83/telegraf/plugins/system/ps/net"
) )
const ( const (

View File

@ -1,6 +1,6 @@
package system package system
import "github.com/influxdb/telegraf/plugins" import "github.com/koksan83/telegraf/plugins"
type SystemStats struct { type SystemStats struct {
ps PS ps PS

View File

@ -5,12 +5,12 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/influxdb/telegraf/plugins/system/ps/cpu" "github.com/koksan83/telegraf/plugins/system/ps/cpu"
"github.com/influxdb/telegraf/plugins/system/ps/disk" "github.com/koksan83/telegraf/plugins/system/ps/disk"
"github.com/influxdb/telegraf/plugins/system/ps/load" "github.com/koksan83/telegraf/plugins/system/ps/load"
"github.com/influxdb/telegraf/plugins/system/ps/mem" "github.com/koksan83/telegraf/plugins/system/ps/mem"
"github.com/influxdb/telegraf/plugins/system/ps/net" "github.com/koksan83/telegraf/plugins/system/ps/net"
"github.com/influxdb/telegraf/testutil" "github.com/koksan83/telegraf/testutil"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
) )

View File

@ -1,6 +1,6 @@
[Unit] [Unit]
Description=The plugin-driven server agent for reporting metrics into InfluxDB Description=The plugin-driven server agent for reporting metrics into InfluxDB
Documentation=https://github.com/influxdb/telegraf Documentation=https://github.com/koksan83/telegraf
After=network.target After=network.target
[Service] [Service]