# Prometheus Environment Variables for Prometheus.yml

**URL:** <https://discuss.prometheus.io/t/prometheus-environment-variables-for-prometheus-yml/1979>\
**Category:** General Help/Support\
**Created:** [October 23, 2023, 5:29am UTC](https://discuss.prometheus.io/t/prometheus-environment-variables-for-prometheus-yml/1979 "2023-10-23T05:29:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![awojt](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@awojt](https://discuss.prometheus.io/u/awojt)\
**Post date:** [October 23, 2023, 5:29am UTC](https://discuss.prometheus.io/t/prometheus-environment-variables-for-prometheus-yml/1979/1 "2023-10-23T05:29:47Z")

</div>

Hello, I currently am facing an issue with the Prometheus.yml file, and the ability to import environment variables. I am currently spinning up multiple containers, with different services/targets that Prometheus needs to scrape. Prometheus and that target are being launched as a bundle. Because of that, I am attempting to pass in an environment variable, the address of the target, into the Prometheus.yml file. However, I am having difficulty finding any variation to get it to work. Attached is a screenshot of my current Prometheus.yml. If anyone could offer some wisdom on how to get this to work, it’d be greatly appreciated. Thank you.

 ![prometheus](https://europe1.discourse-cdn.com/flex017/uploads/prometheus/original/1X/c67f44aa795ef888bd9c2462d544555a8ce2aca4.png)
