+ All Categories
Home > Technology > The API Side of Monitoring

The API Side of Monitoring

Date post: 22-Jan-2018
Category:
Upload: nordic-apis
View: 215 times
Download: 0 times
Share this document with a friend
28
Logs, Metrics, Traces The API Side of Monitoring Philipp Krenn@xeraa
Transcript

Logs, Metrics, Traces

The API Side of MonitoringPhilipp Krenn̴̴̴̴̴@xeraa

Infrastructure | Developer Advocate

Disclaimer

I build highly monitored Hello World apps

http://peter.bourgon.org/blog/2017/02/21/metrics-tracing-and-logging.html

Logs

2017-10-10 09:34:16.895 INFO [frontend,cf4dc621b927b96e,cf4dc621b927b96e,true] 25308 --- [nio-8080-exec-8] net.xeraa.frontend.FrontendController: X-Span-Export=true, X-B3-SpanId=cf4dc621b927b96e, X-B3-TraceId=cf4dc621b927b96e, name=Peter Calling something good

Nobody wants to parse

{ "X-Span-Export":"true", "X-B3-SpanId":"cf4dc621b927b96e", "name":"Peter", "X-B3-TraceId":"cf4dc621b927b96e", "@timestamp":"2017-10-10T09:34:16.895+00:00", "severity":"INFO", "service":"frontend", "trace":"cf4dc621b927b96e", "span":"cf4dc621b927b96e", "parent":"", "exportable":"true", "pid":"25308", "thread":"http-nio-8080-exec-8", "class":"net.xeraa.frontend.FrontendController", "mdc":"X-Span-Export=true, X-B3-SpanId=cf4dc621b927b96e, name=Peter, X-B3-TraceId=cf4dc621b927b96e", "rest":"Calling something good"}

Metrics

HTTP

JMX

Traces

2017-03-29 08:08:35.090 INFO [frontend,69a851ed700bf1fa,69a851ed700bf1fa,true] 23575 --- [p-nio-80-exec-2] n.x.MicroserviceMonitoringApplication : Calling home2017-03-29 08:08:36.149 INFO [frontend,69a851ed700bf1fa,10b1f0a0e2de1253,true] 23575 --- [p-nio-80-exec-3] n.x.MicroserviceMonitoringApplication : You called home

Application: frontend

Trace ID: 69a851ed700bf1fa

Span ID: 10b1f0a0e2de1253

Send to Zipkin: true

Zipkin Chrome Extensionhttps://github.com/openzipkin/zipkin-browser-extension

Conclusion

LogsMetricsTraces

MoreUptime, network, system & application metrics, security,

auditing,...

Your Turnhttps://kibana.xeraa.wtf

https://github.com/xeraa/microservice-monitoring

Questions?Philipp Krenn̴̴̴̴̴@xeraa

PS: Stickers


Recommended