Skip to Content
Hands-On Microservices with Kubernetes
book

Hands-On Microservices with Kubernetes

by Gigi Sayfan
July 2019
Intermediate to advanced
502 pages
14h
English
Packt Publishing
Content preview from Hands-On Microservices with Kubernetes

Collecting metrics with Istio

Istio collects metrics after each request. The metrics are sent to Mixer. Envoy is the primary producer of metrics, but you can add your own metrics if you wish. The configuration model for metrics is based on multiple Istio concepts: attributes, instances, templates, handlers, rules, and Mixer adapters.

Here is a sample instance that counts all the requests and reports them as the request-count metric:

apiVersion: config.istio.io/v1alpha2 kind: instance metadata:   name: request-count   namespace: istio-system spec:   compiledTemplate: metric   params:     value: "1" # count each request     dimensions:       reporter: conditional((context.reporter.kind | "inbound") == "outbound", "client", "server") source: source.workload.name ...
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

Kubernetes Microservices

Kubernetes Microservices

Richard Chesterwood
Cloud Native DevOps with Kubernetes

Cloud Native DevOps with Kubernetes

John Arundel, Justin Domingus
Microservices: Up and Running

Microservices: Up and Running

Ronnie Mitra, Irakli Nadareishvili

Publisher Resources

ISBN: 9781789805468Supplemental Content