sql_exporter icon indicating copy to clipboard operation
sql_exporter copied to clipboard

Process config files as golang templates

Open dbevacqua opened this issue 5 years ago • 8 comments

Environment variables are available inside the template. Existing functionality is unchanged - the template execution is a no-op if the template is plain yml

dbevacqua avatar Sep 06 '19 09:09 dbevacqua

Fixes #40

dbevacqua avatar Sep 06 '19 09:09 dbevacqua

@free any thoughts about this?

dbevacqua avatar Oct 29 '19 17:10 dbevacqua

Apologies for the delay. Would it be possible to have a test for this? May also be useful as documentation.

free avatar Oct 29 '19 17:10 free

Sure. Do you have a template for this? I can't seem to find any tests in the repo.

dbevacqua avatar Oct 31 '19 14:10 dbevacqua

Sure. Do you have a template for this? I can't seem to find any tests in the repo.

Yeah, that's because there aren't any. )o:

But it's never too late to add some. Just go wild and maybe I'll follow suit when I can find some time.

free avatar Nov 01 '19 08:11 free

@free I think I'll take care of these tests, so will provide them soon for you to take a look. The template works well, so in Kubernetes use case, for example, we can keep connection strings with passwords out of config. :)

burningalchemist avatar Feb 11 '20 11:02 burningalchemist

Is this going to be merged anytime soon?

rmccarthy-ellevation avatar Jan 29 '21 16:01 rmccarthy-ellevation

:heavy_plus_sign: I'd love this functionality too

dannykopping avatar Feb 24 '22 07:02 dannykopping