prometheus / client_python

Prometheus instrumentation library for Python applications
Apache License 2.0
4k stars 800 forks source link

SigV4 support to push to AWS-based pushgateways? #688

Open igozali opened 3 years ago

igozali commented 3 years ago

AFAIU currently there's no handler in the library to handle push_to_gateway() calls to an AWS-based pushgateway which needs the access key, secret key and all that good stuff.

I saw this PR which adds such support to the Go client: https://github.com/prometheus/prometheus/pull/8509/files. Wondering if this will be supported by the Python client in the future?

csmarchbanks commented 3 years ago

Hello, as you saw we are experimenting with allowing more authorization types in Prometheus. If that goes well I would be open to accepting a contribution to add a SigV4 handler similar to the basic_auth_handler.