Fix manually set prometheus service address to work after re-connect (#6435)

* Fix manually set prometheus service address to work after re-connect

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

* Fix manually set prometheus service address to work after re-connect

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

* Setup prometheus also on contenxt handler constructor

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
Lauri Nevala authored and Sebastian Malton committed 2022-10-24 16:03:35 -04:00
1 parent b7daf3ae3e
commit da367de2f5
1 file changed
+2
@@ -94,6 +94,8 @@ export class ContextHandler implements ClusterContextHandler {
}
protected async getPrometheusService(): Promise<PrometheusService> {
this.setupPrometheus(this.cluster.preferences);
if (this.prometheus && this.prometheusProvider) {
return {
id: this.prometheusProvider,