Skip to content
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

cleanup and adding support for sharding based on metric name #3170

Merged
merged 6 commits into from
Aug 28, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
cleaning up sample config, removing extra whitespace
  • Loading branch information
Nevins Bartolomeo committed Aug 25, 2017
commit 0bfd085138b9084d97e9f03f8e5f174e4cc66970
21 changes: 10 additions & 11 deletions plugins/outputs/kinesis/kinesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,23 +71,23 @@ var sampleConfig = `
## The partition key can be calculated using one of several methods:
##
## Use a static value for all writes:
# [[outputs.kinesis.partition]]
# method = "static"
# key = "howdy"
# [outputs.kinesis.partition]
# method = "static"
# key = "howdy"
#
## Use a random partition key on each write:
# [outputs.kinesis.partition]
# method = "random"
# [outputs.kinesis.partition]
# method = "random"
#
## Use the measurement name as the partition key:
# [[outputs.kinesis.partition]]
# method = "measurement"
# [outputs.kinesis.partition]
# method = "measurement"
#
## Use the value of a tag for all writes, if the tag is not set the empty
## string will be used:
# [[outputs.kinesis.partition]]
# method = "tag"
# key = "host"
# [outputs.kinesis.partition]
# method = "tag"
# key = "host"


## Data format to output.
Expand Down Expand Up @@ -190,7 +190,6 @@ func writekinesis(k *KinesisOutput, r []*kinesis.PutRecordsRequestEntry) time.Du
if err != nil {
log.Printf("E! kinesis: Unable to write to Kinesis : %+v \n", err.Error())
}

}
return time.Since(start)
}
Expand Down