Skip to content

Instantly share code, notes, and snippets.

@klen
Last active August 29, 2015 14:18
Show Gist options
  • Save klen/7eb5a41147718aedd3c9 to your computer and use it in GitHub Desktop.
Save klen/7eb5a41147718aedd3c9 to your computer and use it in GitHub Desktop.
[hekad]
base_dir = "/var/cache/hekad"
pid_file = "/var/run/hekad.pid"
maxprocs = 1
[UdpInput]
address = ":2003"
splitter = "TokenSplitter"
decoder = "StatsToFieldsDecoder"
[StatAccumInput]
ticker_interval = 10
emit_in_payload = true
[StatsToFieldsDecoder]
[WhisperOutput]
message_matcher = "TRUE"
base_path = "/tmp/whisper"
folder_perm = "755"
@rafrombrc
Copy link

Here's a config that I'm using, with which I'm able to see data being writting out to the whisper files:

[hekad]
maxprocs = 1

[UdpInput]
address = ":2003"
decoder = "StatsToFieldsDecoder"

[StatsdInput]
address = ":8125"

[StatAccumInput]
ticker_interval = 10
emit_in_payload = true

[StatsToFieldsDecoder]

[RstEncoder]

[WhisperOutput]
message_matcher = "TRUE"
base_path = "/tmp/graphite/storage/whisper"
folder_perm = "755"

[LogOutput]
message_matcher = "TRUE"
encoder = "RstEncoder"

@rafrombrc
Copy link

I did this by taking one of your sets of stats from up above and pasting them into a file called stats.txt. Then I did a find/replace of the timestamps at the end of each line with the current timestamp, saved it, and ran cat stats.txt | nc -u 127.0.0.1 2003. I can see the message show up in my LogOutput, and using whisper-dump cpu-idle.wsp I can see, among all of the zeros, the following line:

1142: 1428087780, 96.19990500000000110958353616297245

Can you try doing the exact same thing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment