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

Fullstack monitoring

Fullstack monitoring

Monitor any layer of your Ruby application with Yabeda monitoring suite.

Salahutdinov Dmitry

June 05, 2021

Transcript

55 slides
  1. Why you do need Ruby-app monitoring? • To know how

    application performs • Ensure application works as expected (SRE) • What limit of capacity is has • To prevent degradations • Investigate degradations (when happen) • To evaluate results of optimisations
  2. 1. Puma 2. Rails 3. Rack / Rack-attack 4. Sidekiq

    5. Kafka 6. External Services/HTTP requests 7. Non-standard metrics usage (memory profiling) We will cover
  3. - rule can works incorrect - periodically call outrange? -

    bad requests produces workload Why to monitor abusive requests?
  4. Latency - critical jobs SLO - any other jobs default

    SLO max(sidekiq_queue_latency{queue=”sms”}) by (queue) > 300
  5. Why to monitor - how good HTTP requests are made

    - how many times they consume - what is the distribution of HTTP response statuses
  6. Metrics: - yabeda-rb/yabeda-puma-plugin - Built-in metrics for rack-attack monitoring out

    of the box! - yabeda-rb/yabeda-rails - Yabeda plugin to collect basic metrics for Rails applications - yabeda-rb/yabeda-graphql - Measure and understand how good your GraphQL-Ruby application works - yabeda-rb/yabeda-sidekiq -Yabeda plugin for complete monitoring of Sidekiq - yabeda-rb/yabeda-faktory - Built-in metrics for monitoring Faktory worker for Ruby out of the box - yabeda-rb/yabeda-http_requests - monitor how many outgoing HTTP calls your application does (uses Sniffer) - dsalahutdinov/yabeda-kafka - metrics for ruby-kafka Kafka client - dsalahutdinov/yabeda-rack_attack - Built-in metrics for rack-attack monitoring out of the box! - efigence/yabeda-grape - Metrics for monitoring Grape endpoints - Placewise/yabeda-gruf - metrics for gRPC Ruby Framework - ianks/yabeda-gc - Built in metrics for monitoring the Ruby garbage collector. Exporters: - yabeda-rb/yabeda-prometheus - Adapter to expose metrics collected by Yabeda plugins to Prometheus - yabeda-rb/yabeda-prometheus-mmap - Yabeda Prometheus exporter based on prometheus-client-mmap Adapters: - yabeda-rb/yabeda-datadog - Yabeda Datadog adapter. Collect and send custom metrics from Ruby apps to Datadog. - yabeda-rb/yabeda-newrelic - NewRelic adapter for Yabeda monitoring framework - asusikov/yabeda-statsd - Yabeda adapter for easy exporting collected custom metrics from your application to the Statsd server. Existing tools
  7. Why to invent new bicycle? - Flexibility (g.e. the APDEX

    in context of endpoint) - Newrelic does not logs specific metrics and tools (g.e. sidekiq latency, Kafka client) - Yabeda can complement NewRelic (with specific metrics & NewRelic adapter) - Modularity (use what you need) - Cost/Maintenance (self-hosted vs SaaS) - Yabeda is the research tool - Better developer experience - SRE-ready Why not just use Newrelic?

More Decks by Salahutdinov Dmitry

Other Decks in Technology