grafana / carbon-relay-ng

Fast carbon relay+aggregator with admin interfaces for making changes online - production ready
Other
467 stars 151 forks source link

Use correct routing depending to protocol. #135

Open maauso opened 8 years ago

maauso commented 8 years ago

Anybody know if exist any way to add routes depending on the metric is tcp or pickle ? I'm trading something like that

'addRoute sendAllMatch default 10.2.5.215:2014 spool=true pickle=true ', 'addRoute sendAllMatch default 10.2.5.215:2003',

But the behavior is that the metrics are sending to both ports.

pawellesniewski commented 8 years ago

Unfortunately, by default carbon-relay-ng sends metrics to all matching routes (i make some changes on my own to handle it - i mean to stop iteration on first match).

btw. pickle is the format of data - it is send over tcp also

You can try to start carbon-relay daemon on :2004 to accept pickle protocol and carbon-relay-ng on :2003 to accept single metrics.

Dieterbe commented 8 years ago

yes pickle=true is an output option. there is no method to do what you describe.