albertodonato / query-exporter

Export Prometheus metrics from SQL queries
GNU General Public License v3.0
436 stars 101 forks source link

When running inside a Kubernetes pod, the container is failing to retrieve the latest updates from configmap.yaml. #161

Closed mohan-s-gopal closed 10 months ago

mohan-s-gopal commented 12 months ago

Describe the bug The query exporter stores custom SQL script configurations in the config.yaml file, which is created as a ConfigMap. This ConfigMap is then mounted as a volume into the Kubernetes pod.

When any updates are made to the ConfigMap, the changes are reflected in the mounted volumes.

However, the application remains unaware of the latest config.yaml changes until the pod is reloaded or restarted. Due to this behavior, the pod will not receive the most recent configuration until it is restarted.

Installation details

To Reproduce

To deploy the query-exporter using the Helm chart:

  1. Ensure that the Helm chart includes the following components:
  1. After the initial deployment, everything appears to be functioning correctly, and the application is running as expected.

  2. However, when updating the ConfigMap, the application inside the pod does not recognize the changes, and it continues to operate with the previous configuration from the ConfigMap.

albertodonato commented 11 months ago

I think this should be reported in the helm chart. I don't know much about Helm, but from a quick search this looks possible.