instrumenting go (gopherconindia lightning talk by bhasker kode)

7
panic/recover try/catch? monitoring existing patterns abstractions statsd/statsite metrics instrumenting go GopherCon India 2015

Upload: bhasker-kode

Post on 15-Jul-2015

320 views

Category:

Software


0 download

TRANSCRIPT

Page 1: Instrumenting Go (Gopherconindia Lightning talk by Bhasker Kode)

panic/recover try/catch? monitoring

existing patterns abstractions statsd/statsite metrics

instrumenting go

GopherCon India 2015

Page 2: Instrumenting Go (Gopherconindia Lightning talk by Bhasker Kode)

#metrics #erlang #golang #clojure

past entr’pr

#erlang #products

@bhaskerkode

product/engg @helpshift

GopherCon India 2015

!

• 0 exp in go to crawler running 24/7 in production in 30 days. push data into kafka(read data from kafka via storm)

• learnt a lot reading from great golang repos: coreos/hashicorp/docker code bases

Page 3: Instrumenting Go (Gopherconindia Lightning talk by Bhasker Kode)

Instrument channel data & panics

GopherCon India 2015

counters gauges timers unique

Page 4: Instrumenting Go (Gopherconindia Lightning talk by Bhasker Kode)

how to start instrumenting go

Instantiate the client

counter eg: requests

gauge eg: speedometer

Page 5: Instrumenting Go (Gopherconindia Lightning talk by Bhasker Kode)

Try & TryCatch(“crawl.site1”, ….)Try running this function

Log a metric if it fails

GopherCon India 2015

Usage: TryFunc(“crawl.site1”,…) go TryFunc(“crawl.site1”,…)

Page 6: Instrumenting Go (Gopherconindia Lightning talk by Bhasker Kode)

quipo/statsd channel traffic panics grafana

udp only alphanumeric underscore dot

in conclusion…

GopherCon India 2015

Page 7: Instrumenting Go (Gopherconindia Lightning talk by Bhasker Kode)

@bhaskerkode

go go go

#metrics #erlang #golang #clojure

past entr’pr

@bhaskerkode

product/engg @helpshift start

instrumenting today

GopherCon India 2015