Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Prometheus 101

Prometheus 101

On this talk I gave a basic introduction to Prometheus and how can we use it to monitor our services.

I presented this talk both on TDC 2019 and on Tchê Linux 2019.

Sebastian Webber

December 14, 2019
Tweet

More Decks by Sebastian Webber

Other Decks in Technology

Transcript

  1. Service discovery • Azure VMs • Consul • DNS •

    AWS EC2 Instances • OpenStack Nova instances • Files • GCP GCE Instances • Kuberentes nodes, services, pods, endpoints, and ingresses • Marathon • Nerve • … and others What is Prometheus? Database It’s a time series database. API All integrations are done by the REST API WEB UI It contains an ugly, but useful interface to check the configuration and debug PROMQL queries. Scraper service Prometheus uses jobs to connect on the services that exports relevant data. All of this inside only one executable file…
  2. and the metrics? Given a metric name and a set

    of labels, time series are frequently identified using this notation: <metric name>{<label name>=<label value>, ...} For example, a time series with the metric name api_http_requests_total and the labels method="POST" and handler="/messages" could be written like this: api_http_requests_total{method="POST", handler="/messages"} This is the same notation that OpenTSDB uses. https://prometheus.io/docs/concepts/data_model/