Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If there are many sites, can I include conf files like nginx? #201

Closed
feeops opened this issue Aug 26, 2022 · 6 comments · Fixed by #218
Closed

If there are many sites, can I include conf files like nginx? #201

feeops opened this issue Aug 26, 2022 · 6 comments · Fixed by #218
Labels
enhancement New feature or request

Comments

@feeops
Copy link

feeops commented Aug 26, 2022

If there are many sites
For example, thousands of sites, all written in a config.yaml is too long and ugly

Can you include conf files like nginx?
That is, include files in a directory to make it easier to distinguish

@haoel
Copy link
Contributor

haoel commented Aug 27, 2022

sorry, currently, the YAML does not include any kind of "import" or "include" statement.

and I think we can support the multiple yaml files. but I need time to think about how to implement it.,

@haoel
Copy link
Contributor

haoel commented Aug 27, 2022

P.S. I need to evaluate these two solutions: 1) develop a YAML editor UI, 2) support the multiple YAML files

the first one would address the pains of YAML configuration much more than the second one, but the work efforts are much more either.

@haoel haoel changed the title 如果有很多站点,能像nginx那样include conf files吗? If there are many sites, can I include conf files like nginx? Aug 27, 2022
@haoel haoel added the enhancement New feature or request label Aug 27, 2022
@feeops
Copy link
Author

feeops commented Aug 27, 2022

P.S. I need to evaluate these two solutions: 1) develop a YAML editor UI, 2) support the multiple YAML files

the first one would address the pains of YAML configuration much more than the second one, but the work efforts are much more.

知名时序数据库VictoriaMetrics是采用后者,可以加载多个yaml文件
https://github.com/VictoriaMetrics/VictoriaMetrics/blob/master/docs/vmagent.md#loading-scrape-configs-from-multiple-files

@haoel
Copy link
Contributor

haoel commented Aug 27, 2022

P.S. I need to evaluate these two solutions: 1) develop a YAML editor UI, 2) support the multiple YAML files

the first one would address the pains of YAML configuration much more than the second one, but the work efforts are much more.

知名时序数据库VictoriaMetrics是采用后者,可以加载多个yaml文件

https://github.com/VictoriaMetrics/VictoriaMetrics/blob/master/docs/vmagent.md#loading-scrape-configs-from-multiple-files

Would you like to contribute this PR?

BTW, pls use English instead of Chinese here, thanks

@feeops
Copy link
Author

feeops commented Aug 28, 2022

Sorry.My program skill is not good enough.

@yafengstark
Copy link

I can hava a try. Give me some time, Please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants