sql_exporter icon indicating copy to clipboard operation
sql_exporter copied to clipboard

Support for multiple configuration files

Open aivanov-citc opened this issue 3 years ago • 1 comments

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
 ...

aivanov-citc avatar Feb 03 '22 11:02 aivanov-citc

Hey, I think that's a good idea. I believe this is somehow covered by this issue: https://github.com/justwatchcom/sql_exporter/issues/44.

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

dewey avatar Feb 03 '22 11:02 dewey