# Metrics SPI & Prometheus Pushgateway with basic auth

**URL:** <https://forum.keycloak.org/t/metrics-spi-prometheus-pushgateway-with-basic-auth/17945>\
**Category:** Extending the server\
**Created:** [October 17, 2022, 12:35pm UTC](https://forum.keycloak.org/t/metrics-spi-prometheus-pushgateway-with-basic-auth/17945 "2022-10-17T12:35:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![twiden](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/twiden/32/6788_2.png) [@twiden](https://forum.keycloak.org/u/twiden)\
**Post date:** [October 17, 2022, 12:35pm UTC](https://forum.keycloak.org/t/metrics-spi-prometheus-pushgateway-with-basic-auth/17945/1 "2022-10-17T12:35:33Z")

</div>

I am working on a monitoring setup based on Keycloak 19.0.2, Metrics SPI, Prometheus Pushgateway and Prometheus. So far I have been able to make Keycloak instances (running on AWS ECS) push their metrics to the Pushgateway but I want the metrics to be somewhat private. Therefore I enabled basic auth on the push gateway but this blocks the pushes as well. Is there a way for the Metrics SPI to push metrics with credentials?
