Skip to content

Instantly share code, notes, and snippets.

@jtuchscherer
Created August 20, 2015 19:22
Show Gist options
  • Save jtuchscherer/8e66a22e27f6f2e4f5fd to your computer and use it in GitHub Desktop.
Save jtuchscherer/8e66a22e27f6f2e4f5fd to your computer and use it in GitHub Desktop.
Output comparison between CC Varz and MetronAgent VarzShim
{
"vcap_sinatra": {
"recent_errors": [
],
"requests": {
"outstanding": 0,
"completed": 6
},
"http_status": {
"100": 0,
"101": 0,
"200": 6,
"201": 0,
"202": 0,
"203": 0,
"204": 0,
"205": 0,
"206": 0,
"300": 0,
"301": 0,
"302": 0,
"303": 0,
"304": 0,
"305": 0,
"306": 0,
"307": 0,
"400": 0,
"401": 0,
"402": 0,
"403": 0,
"404": 0,
"405": 0,
"406": 0,
"407": 0,
"408": 0,
"409": 0,
"410": 0,
"411": 0,
"412": 0,
"413": 0,
"414": 0,
"415": 0,
"416": 0,
"417": 0,
"500": 0,
"501": 0,
"502": 0,
"503": 0,
"504": 0,
"505": 0
}
},
"type": "CloudController",
"index": 0,
"uuid": "0-22173280c5c24e6badbab22b1b1f9783",
"host": "10.0.17.2:7801",
"credentials": [
"varz",
"varz"
],
"start": "2015-08-20T17:21:31+00:00",
"num_cores": 2,
"log_counts": {"off":0,"fatal":0,"error":0,"warn":1,"info":14,"debug":53,"debug1":0,"debug2":85,"all":0},
"cc_user_count": 60,
"cc_job_queue_length": {
"total": 0
},
"thread_info": {
"thread_count": 22,
"event_machine": {
"connection_count": 4,
"threadqueue": {
"size": 0,
"num_waiting": 20
},
"resultqueue": {
"size": 0,
"num_waiting": 0
}
}
},
"cc_failed_job_count": {
"cc-api_z1-0": 1,
"cc-api_z1-1": 1,
"cc-api_z2-0": 2,
"cc-api_z2-1": 2,
"total": 6
},
"uptime": "0d:0h:0m:46s",
"cpu": 11.0,
"cpu_load_avg": 0.47,
"mem_bytes": 223141888,
"mem_used_bytes": 3179716608,
"mem_free_bytes": 4663410688
}
{
"name":"MetronAgent",
"numCPUS":2,
"numGoRoutines":31,
"memoryStats":{
"numBytesAllocatedHeap":705168,
"numBytesAllocatedStack":458752,
"numBytesAllocated":705168,
"numMallocs":40311,
"numFrees":35240,
"lastGCPauseTimeNS":823102
},
"tags":{
"ip":"10.0.17.2"
},
"contexts":[
{
"name":"legacyAgentListener",
"metrics":[
{
"name":"receivedMessageCount",
"value":0
},
{
"name":"receivedByteCount",
"value":0
}
]
},
{
"name":"dropsondeAgentListener",
"metrics":[
{
"name":"receivedMessageCount",
"value":149
},
{
"name":"receivedByteCount",
"value":9583
}
]
},
{
"name":"legacyUnmarshaller",
"metrics":[
{
"name":"unmarshalErrors",
"value":0
}
]
},
{
"name":"DropsondeUnmarshaller",
"metrics":[
{
"name":"logMessageTotal",
"value":0
},
{
"name":"counterEventReceived",
"value":0
},
{
"name":"errorReceived",
"value":0
},
{
"name":"containerMetricReceived",
"value":0
},
{
"name":"httpStartReceived",
"value":4
},
{
"name":"httpStopReceived",
"value":4
},
{
"name":"httpStartStopReceived",
"value":0
},
{
"name":"valueMetricReceived",
"value":141
},
{
"name":"unmarshalErrors",
"value":0
},
{
"name":"unknownEventTypeReceived",
"value":0
}
]
},
{
"name":"MessageAggregator",
"metrics":[
{
"name":"httpStartReceived",
"value":4
},
{
"name":"httpStopReceived",
"value":4
},
{
"name":"httpStartStopEmitted",
"value":4
},
{
"name":"uncategorizedEvents",
"value":141
},
{
"name":"httpUnmatchedStartReceived",
"value":0
},
{
"name":"httpUnmatchedStopReceived",
"value":0
},
{
"name":"counterEventReceived",
"value":0
}
]
},
{
"name":"forwarder",
"metrics":[
{
"name":"api_z1_0.requestCount",
"value":4,
"tags":{
"component":"api_z1"
}
},
{
"name":"api_z1_0.responseCount2XX",
"value":4,
"tags":{
"component":"api_z1"
}
},
{
"name":"api_z1_0.memoryStats.numBytesAllocatedHeap",
"value":652696,
"tags":{
"component":"api_z1"
}
},
{
"name":"api_z1_0.memoryStats.numBytesAllocatedStack",
"value":589824,
"tags":{
"component":"api_z1"
}
},
{
"name":"api_z1_0.memoryStats.lastGCPauseTimeNS",
"value":673523,
"tags":{
"component":"api_z1"
}
},
{
"name":"api_z1_0.logSenderTotalMessagesRead",
"value":0,
"tags":{
"component":"api_z1"
}
},
{
"name":"api_z1_0.numCPUS",
"value":2,
"tags":{
"component":"api_z1"
}
},
{
"name":"api_z1_0.numGoRoutines",
"value":47,
"tags":{
"component":"api_z1"
}
},
{
"name":"api_z1_0.memoryStats.numBytesAllocated",
"value":652696,
"tags":{
"component":"api_z1"
}
},
{
"name":"api_z1_0.memoryStats.numMallocs",
"value":9828,
"tags":{
"component":"api_z1"
}
},
{
"name":"api_z1_0.memoryStats.numFrees",
"value":4343,
"tags":{
"component":"api_z1"
}
},
{
"name":"routing_api.total_routes",
"value":4,
"tags":{
"component":"api_z1"
}
},
{
"name":"routing_api.total_subscriptions",
"value":0,
"tags":{
"component":"api_z1"
}
},
{
"name":"cc.failed_job_count.cc-api_z2-1",
"value":2,
"tags":{
"component":"api_z1"
}
},
{
"name":"cc.failed_job_count.total",
"value":6,
"tags":{
"component":"api_z1"
}
},
{
"name":"cc.vitals.cpu_load_avg",
"value":0.36,
"tags":{
"component":"api_z1"
}
},
{
"name":"cc.log_count.debug",
"value":64,
"tags":{
"component":"api_z1"
}
},
{
"name":"cc.log_count.debug1",
"value":0,
"tags":{
"component":"api_z1"
}
},
{
"name":"cc.failed_job_count.cc-api_z1-0",
"value":1,
"tags":{
"component":"api_z1"
}
},
{
"name":"cc.vitals.uptime",
"value":61,
"tags":{
"component":"api_z1"
}
},
{
"name":"cc.vitals.mem_bytes",
"value":2.23162368e+08,
"tags":{
"component":"api_z1"
}
},
{
"name":"cc.vitals.mem_free_bytes",
"value":4.663087104e+09,
"tags":{
"component":"api_z1"
}
},
{
"name":"cc.log_count.info",
"value":16,
"tags":{
"component":"api_z1"
}
},
{
"name":"cc.log_count.all",
"value":0,
"tags":{
"component":"api_z1"
}
},
{
"name":"cc.thread_info.event_machine.resultqueue.num_waiting",
"value":0,
"tags":{
"component":"api_z1"
}
},
{
"name":"cc.log_count.off",
"value":0,
"tags":{
"component":"api_z1"
}
},
{
"name":"cc.log_count.fatal",
"value":0,
"tags":{
"component":"api_z1"
}
},
{
"name":"cc.log_count.warn",
"value":1,
"tags":{
"component":"api_z1"
}
},
{
"name":"cc.log_count.debug2",
"value":87,
"tags":{
"component":"api_z1"
}
},
{
"name":"cc.vitals.mem_used_bytes",
"value":3.180040192e+09,
"tags":{
"component":"api_z1"
}
},
{
"name":"cc.vitals.num_cores",
"value":2,
"tags":{
"component":"api_z1"
}
},
{
"name":"cc.http_status.2XX",
"value":7,
"tags":{
"component":"api_z1"
}
},
{
"name":"cc.job_queue_length.total",
"value":0,
"tags":{
"component":"api_z1"
}
},
{
"name":"cc.failed_job_count.cc-api_z1-1",
"value":1,
"tags":{
"component":"api_z1"
}
},
{
"name":"cc.failed_job_count.cc-api_z2-0",
"value":2,
"tags":{
"component":"api_z1"
}
},
{
"name":"cc.vitals.cpu",
"value":8,
"tags":{
"component":"api_z1"
}
},
{
"name":"cc.requests.completed",
"value":7,
"tags":{
"component":"api_z1"
}
},
{
"name":"cc.thread_info.event_machine.threadqueue.size",
"value":0,
"tags":{
"component":"api_z1"
}
},
{
"name":"cc.thread_info.event_machine.threadqueue.num_waiting",
"value":20,
"tags":{
"component":"api_z1"
}
},
{
"name":"cc.requests.outstanding",
"value":0,
"tags":{
"component":"api_z1"
}
},
{
"name":"cc.thread_info.thread_count",
"value":22,
"tags":{
"component":"api_z1"
}
},
{
"name":"cc.thread_info.event_machine.connection_count",
"value":4,
"tags":{
"component":"api_z1"
}
},
{
"name":"cc.log_count.error",
"value":0,
"tags":{
"component":"api_z1"
}
},
{
"name":"cc.thread_info.event_machine.resultqueue.size",
"value":0,
"tags":{
"component":"api_z1"
}
}
]
},
{
"name":"eventMarshaller",
"metrics":[
{
"name":"httpStartStopMarshalled",
"value":4
},
{
"name":"logMessageMarshalled",
"value":0
},
{
"name":"valueMetricMarshalled",
"value":141
},
{
"name":"counterEventMarshalled",
"value":0
},
{
"name":"errorMarshalled",
"value":0
},
{
"name":"containerMetricMarshalled",
"value":0
},
{
"name":"httpStartMarshalled",
"value":0
},
{
"name":"httpStopMarshalled",
"value":0
},
{
"name":"marshalErrors",
"value":0
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment