Skip to Content
Hands-On Software Engineering with Golang
book

Hands-On Software Engineering with Golang

by Achilleas Anagnostopoulos
January 2020
Intermediate to advanced
640 pages
16h 56m
English
Packt Publishing
Content preview from Hands-On Software Engineering with Golang

Instrumenting Go code

In order for Prometheus to be able to scrape metrics from our deployed services, we need to perform the following sequence of steps:

  1. Define the metrics that we are interested in tracking.
  2. Instrument our code base so that it updates the values of the aforementioned metrics at the appropriate locations.
  3. Collect the metric data and make it available for scraping over HTTP.

One of the key benefits of microservice-based architectures is that software engineers are no longer constrained by the use of a single programming language for building their services. It is quite common to see microservices written in Go communicating with other services written in Rust or Java. Nevertheless, the need to monitor services across the ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Hands-On Software Architecture with Golang

Hands-On Software Architecture with Golang

Jyotiswarup Raiturkar

Publisher Resources

ISBN: 9781838554491Supplemental Content