slok / sloth

🦥 Easy and simple Prometheus SLO (service level objectives) generator
https://sloth.dev
Apache License 2.0
2.06k stars 167 forks source link

multi file rules not loaded completely #262

Open hfgbarrigas opened 2 years ago

hfgbarrigas commented 2 years ago

hey, this is more related to prometheus rather than sloth itself but since I'm using it (thank you) and its a feature of sloth decided to go ahead.

I'm using the multiple specs in a single file feature, which works as intended, and I get a file with multiple yaml's (rooted at groups: ) within a single file. However, when using promtool or running prometheus with such file, they only load/detect the first group.

I was a bit surprise tbh, is this expected?

slok commented 2 years ago

I didn't know about that!

Did you make more tests? can you confirm that Prometheus doesn't support multiple rules in the same file?