Would you be able to offer advise on how best to output multiple messages
to graphite using the PayloadRegexDecoder. I am currently parsing a json
message from AMQP, and I'm wanting to upload each attribute of the json
message to graphite through CarbonOutput.

This will only output hdd_avail. Any advise on how I can output the other
attributes (E.g. hdd_size) in a elegant way.

[capacity]
type = "PayloadRegexDecoder"
match_regex = 
'^{\"timestamp\":(?P<Date>.*),\"type\":\"(?P<Type>.*)\",\"fields\":\[{\"cluster\":\"(?P<Cluster>.*)\",\"hdd_avail\":\"(?P<hdd_avail>.*)\",\"hdd_size\":\"(?P<hdd_size>.*)\",\"hdd_used\":\"(?P<hdd_used>.*)\",\"ssd_avail\":\"(?P<ssd_avail>.*)\",\"ssd_size\":\"(?P<ssd_size>.*)\",.*}\]'

[capacity.message_fields]
    Type = "Event"
    Date = "%Date%"
    Payload = "%Type%.%Cluster%.hdd_avail %hdd_avail% %Date%"

[PayloadEncoder]
append_newlines = false

[CarbonOutput]
message_matcher = "Type == 'Event'"
address = "192.168.59.103:49153"
protocol = "tcp"


Alex
_______________________________________________
Heka mailing list
[email protected]
https://mail.mozilla.org/listinfo/heka

Reply via email to