GithubHelp home page GithubHelp logo

isabella232 / varz-firehose-nozzle Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cloudfoundry-attic/varz-firehose-nozzle

0.0 0.0 0.0 2.14 MB

Expose metrics from the Loggregator Firehose to /varz for legacy monitoring applications

License: Apache License 2.0

Go 99.45% Shell 0.55%

varz-firehose-nozzle's Introduction

(DEPRECATED) varz-firehose-nozzle

The varz nozzle is no longer actively supported.

  • note that a known problem is that unit tests will fail if upgraded to go 1.5
  • The recommended way to get metrics is via the firehose

Summary

Expose metrics from the Loggregator Firehose to /varz for legacy monitoring applications

slowConsumerAlert

For the most part, the varz-firehose-nozzle emits metrics from the loggregator firehose without processing them too much. A notable exception is the *.varz.nozzle.slowConsumerAlert metric. The metric is a binary value (0 or 1) indicating whether or not the nozzle consuming metrics at the same rate that it is receiving them from the firehose: 0 means the the nozzle is keeping up with the firehose, and 1 means that the nozzle is falling behind.

The nozzle determines the value of slowConsumerAlert with the following rules:

  1. When the nozzle receives a TruncatingBuffer.DroppedMessages metric, it publishes the value 1. The metric indicates that Doppler determined that the client (in this case, the nozzle) could not consume messages as quickly as the firehose was sending them, so it dropped messages from its queue of messages to send.

  2. When the nozzle receives a websocket Close frame with status 1011, it publishes the value 1. Traffic Controller pings clients to determine if the connections are still alive. If it does not receive a Pong response before the KeepAlive deadline, it decides that the connection is too slow (or even dead) and sends the Close frame.

  3. Otherwise, the nozzle publishes 0.

varz-firehose-nozzle's People

Contributors

dsabeti avatar ihcsim avatar jmtuley avatar roxtar avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.