| 1 |
from twisted.internet import reactor |
| 2 |
from twisted.web.wsgi import WSGIResource |
| 3 |
|
| 4 |
from .. import exposition, REGISTRY |
| 5 |
|
| 6 |
MetricsResource = lambda registry=REGISTRY: WSGIResource( |
| 7 |
reactor, reactor.getThreadPool(), exposition.make_wsgi_app(registry) |
| 8 |
) |