Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 2.59 KB

metrics_events.md

File metadata and controls

45 lines (34 loc) · 2.59 KB

Metrics and events

Metrics

Here's the list of metrics sent by the controller and the injector.

Controller

  • chaos.controller.restart increments when the controller is restarted
  • chaos.controller.reconcile increments when the reconcile loop is called
  • chaos.controller.reconcile.duration is the time passed in the reconcile loop
  • chaos.controller.inject.duration is the time it took to fully inject the disruption since its creation
  • chaos.controller.cleanup.duration is the time it took to fully cleanup the disruption since its deletion
  • chaos.controller.pods.created increments when a chaos pod is created
  • chaos.controller.pods.gauge is the total count of existing chaos pods
  • chaos.controller.informed increments when the pod informer receives an event to process before reconciliation
  • chaos.controller.orphan.found increments when a chaos pod without a corresponding disruption resource is found
  • chaos.controller.selector.cache.triggered signals a selector cache trigger
  • chaos.controller.selector.cache.gauge reports how many caches are still in the cache array to prevent leaks
  • chaos.controller.disruption.completed_duration is the complete life time of the disruption, from creation to deletion
  • chaos.controller.disruption.ongoing_duration is the duration of the disruption so far, from creation to now
  • chaos.controller.disruptions.stuck_on_removal increments when a disruption is stuck on removal
  • chaos.controller.disruptions.stuck_on_removal_total is the total count of existing disruption being flagged as stuck on removal
  • chaos.controller.disruptions.gauge is the total count of existing disruption
  • chaos.controller.disruptions.count increments when a disruption is created

Admission webhooks

  • chaos.controller.validation.failed increments when a disruption fails to be validated from the admission webhook
  • chaos.controller.validation.created increments when a disruption is created
  • chaos.controller.validation.updated increments when a disruption is updated
  • chaos.controller.validation.deleted increments when a disruption is deleted

Injector

  • chaos.injector.injected increments when a disruption is injected
  • chaos.injector.cleaned increments when a disruption is cleaned
  • chaos.injector.reinjected increments when a disruption is reinjected
  • chaos.injector.cleaned_for_reinjection increments when a disruption is cleaned after a reinjection

Events

The chaos-controller can send multiple events on targeted resources and on the disruption itself.

The list can be found at api/v1beta1/events.go