diff options
author | Jose Ivan Vargas Lopez <jvargas@gitlab.com> | 2017-10-12 09:58:36 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-10-12 09:58:36 +0000 |
commit | b5ada8eadd6b6aa06c81f2cc8111ea13185db577 (patch) | |
tree | ec90b49b24d61d34ca85aa5042153f037d9cb0aa /app/assets/javascripts/prometheus_metrics | |
parent | ba90f023f0e96d1df42277a156ef265a0062a403 (diff) | |
download | gitlab-ce-b5ada8eadd6b6aa06c81f2cc8111ea13185db577.tar.gz |
Resolve "Prometheus service page shows error"
Diffstat (limited to 'app/assets/javascripts/prometheus_metrics')
-rw-r--r-- | app/assets/javascripts/prometheus_metrics/prometheus_metrics.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/assets/javascripts/prometheus_metrics/prometheus_metrics.js b/app/assets/javascripts/prometheus_metrics/prometheus_metrics.js index a4d50a52315..55c93923cc8 100644 --- a/app/assets/javascripts/prometheus_metrics/prometheus_metrics.js +++ b/app/assets/javascripts/prometheus_metrics/prometheus_metrics.js @@ -81,7 +81,11 @@ export default class PrometheusMetrics { loadActiveMetrics() { this.showMonitoringMetricsPanelState(PANEL_STATE.LOADING); backOff((next, stop) => { - $.getJSON(this.activeMetricsEndpoint) + $.ajax({ + url: this.activeMetricsEndpoint, + dataType: 'json', + global: false, + }) .done((res) => { if (res && res.success) { stop(res); |