Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

fix prometheus input plugin resetting its config at startup #1346

Merged
merged 1 commit into from
Jun 7, 2019

Conversation

beorn-
Copy link
Contributor

@beorn- beorn- commented Jun 7, 2019

During the startup process, the prometheus module is first configured using prometheus.ConfigSetup() and prometheus.ConfigProcess(), then the Handler is started. The problem is that ConfigSetup() is called from Start(), which makes the configuration re-initialize to its default values. Removing the call from Start() solve the issue.

…d to fix configuration reset

  During the startup process, the prometheus module is first configured using `prometheus.ConfigSetup()` and `prometheus.ConfigProcess()`, then the Handler is started. The problem is that `ConfigSetup()` is called from `Start()`, which makes the configuration re-initialize to its default values. Removing the call from `Start()` solve the issue.
@beorn- beorn- force-pushed the fix_partitionID_prometheus branch from 5c03395 to 3927378 Compare June 7, 2019 09:25
@beorn- beorn- changed the title Remove ConfigSetup() call during the Prometheus input plugin Start() … Remove ConfigSetup() during the Prometheus input plugin Start() method to fix configuration reset Jun 7, 2019
@Dieterbe Dieterbe changed the title Remove ConfigSetup() during the Prometheus input plugin Start() method to fix configuration reset fix prometheus input plugin resetting its config at startup Jun 7, 2019
@Dieterbe
Copy link
Contributor

Dieterbe commented Jun 7, 2019

thanks @beorn- !

@Dieterbe Dieterbe merged commit e540f85 into grafana:master Jun 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants