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

NGINX meetup talk, Feb 2016

Sponsored · SiteGround - Reliable hosting with speed, security, and support you can count on. →
Avatar for John Matson John Matson
February 26, 2016

NGINX meetup talk, Feb 2016

Avatar for John Matson

John Matson

February 26, 2016

Other Decks in Technology

Transcript

  1. Agenda • Motivation • What we care about • What

    you get from /nginx_status (NGINX OSS) • What you get from NGINX Plus • What you get from logs • How Datadog can help
  2. Collecting data is cheap, but not having it when you

    need it is expensive. Motivation
  3. /nginx_status (OSS) • Key work metrics: 
 requests (throughput), dropped

    connections (error) • Pros: Easy to set up. Free. • Cons: Incomplete coverage. No latency or HTTP codes.
  4. NGINX Plus • Key work metrics: 
 requests (throughput), dropped

    connections (error), 4xx/5xx responses (error) • Pros: Lots of metrics. JSON! • Cons: No latency metrics. demo.nginx.com/status.html
 demo.nginx.com/status
  5. NGINX logs • Key work metrics: 
 4xx/5xx responses (error),

    latency (performance) • Pros: One-line config change. Customizable format.
 HTTP/1 vs HTTP/2 requests! • Cons: Low signal/noise ratio. 
 Need to parse logs. Request Response code Response time
  6. Where Datadog fits in • Capture/graph/alert on any NGINX or

    NGINX Plus metric • Can parse NGINX logs too (but not out of the box) • Correlate NGINX metrics with system-level metrics (load, CPU, etc.) or with app metrics • Alert to PagerDuty, Slack, etc. NGINX dashboard Partial list of 120+ supported integrations
  7. Further reading • How to Monitor NGINX
 (three-part series):
 dtdg.co/monitor-nginx

    • Monitoring 101
 (work/resource metrics, etc):
 dtdg.co/monitoring-101-data