Instrument the Twisted reactor with Prometheus metrics

Authored by mark on Aug 12 2017, 4:27 PM.

Description

Instrument the Twisted reactor with Prometheus metrics

instrumented_reactor adds InstrumentedReactor which derives from either
the EPollReactor or SelectReactor (depending on availability on the
platform), and decorates the most important methods with Prometheus
timing metrics.

Bug: T171710
Change-Id: Ie7cccd14687808b1c4d4a224d82b8b4ed8d0cbce

Details

Committed
markAug 12 2017, 8:08 PM
Parents
rODCB2b428a53fec8: Add metric pybal_service_depool_threshold
Branches
Unknown
Tags
Unknown
References
refs/changes/36/371636/5
ChangeId
Ie7cccd14687808b1c4d4a224d82b8b4ed8d0cbce