summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/prometheus_metrics/prometheus_metrics.js
diff options
context:
space:
mode:
authorJose Ivan Vargas Lopez <jvargas@gitlab.com>2017-10-12 09:58:36 +0000
committerPhil Hughes <me@iamphill.com>2017-10-12 09:58:36 +0000
commitb5ada8eadd6b6aa06c81f2cc8111ea13185db577 (patch)
treeec90b49b24d61d34ca85aa5042153f037d9cb0aa /app/assets/javascripts/prometheus_metrics/prometheus_metrics.js
parentba90f023f0e96d1df42277a156ef265a0062a403 (diff)
downloadgitlab-ce-b5ada8eadd6b6aa06c81f2cc8111ea13185db577.tar.gz
Resolve "Prometheus service page shows error"
Diffstat (limited to 'app/assets/javascripts/prometheus_metrics/prometheus_metrics.js')
-rw-r--r--app/assets/javascripts/prometheus_metrics/prometheus_metrics.js6
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);