Skip to content

Instantly share code, notes, and snippets.

@maxivak
Last active September 2, 2016 09:43
Show Gist options
  • Save maxivak/f18b402f0b6d299c69c2f9b5a62912d3 to your computer and use it in GitHub Desktop.
Save maxivak/f18b402f0b6d299c69c2f9b5a62912d3 to your computer and use it in GitHub Desktop.
Sensu - history for metrics counters

Add history for Sensu metrics with Kafka

  • Sensu stores in Redis only last check results and history of exit codes for that check.

  • there is log file in Sensu where history of ALL checks is written. It can be used for extracting data, but it is not intended for user log.

  • We will use Sensu handler, which is triggered after every check (metric handler is triggered after every run, but other handler types are triggered after exit code changes value from previous execution!) run and provided with check results.

  • It is up to user to decide what to do with results, should he add data to log file, store data to Redis, or something else.

  • Our handler will store data in Kafka

Sensu handler

Kafka

Get historical data from Kafka

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment