Skip to content

Instantly share code, notes, and snippets.

@jbayer
Created May 10, 2015 05:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbayer/af9c186dfc043574f188 to your computer and use it in GitHub Desktop.
Save jbayer/af9c186dfc043574f188 to your computer and use it in GitHub Desktop.
Using XD to consume loggregator metrics
[5/8/15, 4:49:30 PM] Mark Fisher: xd:>stream create s --definition "firehose --dopplerUrl=ws://doppler.192.168.11.11.xip.io | filter --expression=payload.toString().contains(\"metrics-sample\") | log" --deploy
[5/8/15, 4:50:51 PM] Mark Fisher: console output:
[5/8/15, 4:50:54 PM] Mark Fisher: 2015-05-08 12:14:10,953 1.2.0.SNAP INFO WebSocketClient@1390239682-60 sink.s - origin: "metrics-sample"
eventType: ValueMetric
timestamp: 1431101412195
valueMetric {
name: "gauge.response.star-star.favicon.ico"
value: 41.0
unit: "gauge"
}
2015-05-08 12:14:15,953 1.2.0.SNAP INFO WebSocketClient@1390239682-63 sink.s - origin: "metrics-sample"
eventType: ValueMetric
timestamp: 1431101412195
valueMetric {
name: "counter.status.200.star-star.favicon.ico"
value: 1.0
unit: "count"
}
2015-05-08 12:14:15,954 1.2.0.SNAP INFO WebSocketClient@1390239682-59 sink.s - origin: "metrics-sample"
eventType: ValueMetric
timestamp: 1431101418945
valueMetric {
name: "gauge.response.star-star"
value: 2.0
unit: "gauge"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment