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

[workshop] Getting started with prometheus

[workshop] Getting started with prometheus

In February 2020 we (@Vorobiev_Cloud, @MstrsObserver) were giving Prometheus workshop at InstallFest 2020. You can find the repository with the practical part here: https://github.com/pipetail/installfest20

Štěpán Vraný

February 29, 2020
Tweet

More Decks by Štěpán Vraný

Other Decks in Technology

Transcript

  1. and I’m Štěpán. - Big fan of DevOps culture -

    Cloud Engineer (Whatever it means) - Obsessed with automation - Helping with the adoption of Public Cloud, Containers and other fun stuff
  2. What is prometheus - Built at SoundCloud at 2012 -

    Graduated CNCF project (in 2016, second project after Kubernetes) - Powerful tool for metrics and alerting - works well in machine-centric or dynamic service-oriented architectures systems
  3. What does Prometheus do - Gathers data - A lot

    of data - From everywhere - Promotes instrumentation - It draws nice graphs - ... and generates PagerDuty alerts
  4. Data gathering - Hundreds of thousands metrics per second per

    server - Very efficient storage - Tunable retention - Very reasonable defaults
  5. Data sources Instrumented applications / infrastructure components - developers of

    the given piece of software instrumented app directly with Prometheus Exporters - for application / components where we don’t have access to the code
  6. Data sources Push gateway - For data that cannot be

    pulled - CronJobs and other short-lived services
  7. Instrumented applications - Plenty of official / third party libraries

    - Go, Java, Python, Ruby, Elixir, pretty much everything - Apps can be also instrumented with OpenTelemetry! https://github.com/open-telemetry
  8. Already instrumented applications - Some application work with Prometheus out

    of the box - Docker, Kubernetes, Etcd, Traefik, ...
  9. Exporters - See the full list here https://prometheus.io/docs/instrumenting/exporters/ - Mix

    of official and third-party libraries - Databases, storage systems, … - Cloud providers
  10. Alerting - Deduplication of alerts - Highly Available setup possible

    - A lot of targets (email, PagerDuty, ...) - Templated alerts - Label-based alert routing