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

Support for multiple configuration files #58

Open
aivanov-citc opened this issue Feb 3, 2022 · 1 comment
Open

Support for multiple configuration files #58

aivanov-citc opened this issue Feb 3, 2022 · 1 comment

Comments

@aivanov-citc
Copy link

aivanov-citc commented Feb 3, 2022

It would be nice to be able to add multiple configuration files. Then it will be possible to store these configs together with the configuration of the database from which the metrics are collected.

apiVersion: apps/v1
kind: Deployment
metadata:
  name: sql-exporter
spec:
...
  containers:
  - name: sql-exporter
    env:
    - name: CONFIG_FOLDER
      value: /config
...
    volumeMounts:
    - mountPath: /config
      name: config-volume
  volumes:
  - name: config-volume
    configMap:
      name: sql-exporter-config
 ...
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
...
configMapGenerator:
- name: sql-exporter-config
  files:
  - config1.yaml
  - config2.yaml
 ...
@dewey
Copy link
Member

dewey commented Feb 3, 2022

Hey, I think that's a good idea. I believe this is somehow covered by this issue: #44.

Is this something you'd be willing to work on?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants