Project

General

Profile

Actions

Feature #18675

closed

Add telemetry to Foreman core

Added by Lukas Zapletal about 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Category:
Rails
Target version:

Description

Rails provides many instrumentation points which can be very easily hooked and exported to statsd and then to graph solutions or monitoring. Protocol statsd is very simple, UDP based and provides decent integration options. This change will be unintrusive, telemetry will be opt-in and it will be always disabled for test environment. It will also work without any external service sending the telemetry data into Rails logger if needed.

This initial implementation provides Rails controller processing times for individual controllers and actions (view, db, total times in ms). In addition, it provides number of success/failed login attempts, ActiveRecord instantianed classes, Foreman templates rendering time and ActionMailer sent mail counts.

The only dependency introduced is pure-Ruby library "statsd-instrument" that provides client library for statsd daemon. The idea is to run this daemon on localhost aggregating the data and/or sending to RRD or other monitoring solutions.


Related issues 4 (1 open3 closed)

Related to Installer - Feature #23101: Expose telemetry parameters in settings.yamlClosedMarek Hulán04/03/2018Actions
Related to Discovery - Feature #22472: Add telemetry to discovery pluginReady For TestingLukas ZapletalActions
Related to Foreman - Bug #22764: Telemetry errors out with undefined method `[]' for nil:NilClass on Rails code reloadClosedLukas Zapletal03/05/2018Actions
Related to Foreman - Feature #22796: Add fact importing telemetryClosedLukas Zapletal03/06/2018Actions
Actions #1

Updated by The Foreman Bot about 7 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Lukas Zapletal
  • Pull request https://github.com/theforeman/foreman/pull/4336 added
Actions #2

Updated by The Foreman Bot over 6 years ago

  • Pull request https://github.com/theforeman/foreman/pull/5096 added
Actions #3

Updated by Bryan Kearney about 6 years ago

  • Bugzilla link set to 1537078
Actions #4

Updated by Lukas Zapletal about 6 years ago

  • Pull request deleted (https://github.com/theforeman/foreman/pull/4336)
Actions #5

Updated by Lukas Zapletal about 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #6

Updated by Daniel Lobato Garcia about 6 years ago

  • translation missing: en.field_release set to 330
Actions #7

Updated by The Foreman Bot about 6 years ago

  • Pull request https://github.com/theforeman/foreman/pull/5275 added
Actions #8

Updated by The Foreman Bot about 6 years ago

  • Pull request https://github.com/theforeman/foreman-packaging/pull/2233 added
Actions #9

Updated by The Foreman Bot about 6 years ago

  • Pull request https://github.com/theforeman/foreman-packaging/pull/2230 added
Actions #10

Updated by Lukas Zapletal almost 6 years ago

  • Related to Feature #23101: Expose telemetry parameters in settings.yaml added
Actions #11

Updated by Lukas Zapletal almost 6 years ago

Actions #12

Updated by Lukas Zapletal almost 6 years ago

  • Related to Bug #22764: Telemetry errors out with undefined method `[]' for nil:NilClass on Rails code reload added
Actions #13

Updated by Lukas Zapletal almost 6 years ago

Actions

Also available in: Atom PDF