Configuring Prometheus to Push Metrics to a Specific URL when Deploying DataHub with Helm

Original Slack Thread

Hello, is there a way to configure prometheus to push to specific url when deploying datahub with Helm?

<@U03MF8MU5P0> might be able to speak to this!

Prometheus is intended to expose metrics to be scraped and not push at scale. You can override how the metrics are exposed and scrape them using your prometheus stack. I haven’t tried overriding the configuration however the metrics are using the jmx_prometheus_javaagent, you can see this|here. You could add a mount point at the config file location to override the configuration /datahub/datahub-gms/scripts/prometheus-config.yaml and the details on what this agent can do is from this|project.