# Regex path to rules files

**URL:** <https://discuss.prometheus.io/t/regex-path-to-rules-files/2042>\
**Category:** Prometheus server\
**Created:** [November 28, 2023, 11:13am UTC](https://discuss.prometheus.io/t/regex-path-to-rules-files/2042 "2023-11-28T11:13:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![GerrAlexLTD](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/gerralexltd/32/688_2.png) [@GerrAlexLTD](https://discuss.prometheus.io/u/GerrAlexLTD)\
**Post date:** [November 28, 2023, 11:13am UTC](https://discuss.prometheus.io/t/regex-path-to-rules-files/2042/1 "2023-11-28T11:13:59Z")

</div>

Hello,  
We have composite struct of rule’s files:

```auto
rules
|__Building1
     |__Room1
         |__b1.r.1.alerts.yaml
         |__b1.r.1.rules.yaml
     |__Room2
         |__b1.r.2.alerts.yaml
         |__b1.r.2.rules.yaml

```

Can Prometheus finds rule’s files recursively in folders by template - rules/\*/\*.alerts.yaml?
