diff --git a/Gemfile.lock b/Gemfile.lock index a346f97..a907496 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - diffdash (0.1.11) + diffdash (0.1.14) ast (~> 2.4) dotenv (>= 2.8) faraday (>= 2.0) diff --git a/lib/diffdash/outputs/grafana.rb b/lib/diffdash/outputs/grafana.rb index a651ff4..ef1dc10 100644 --- a/lib/diffdash/outputs/grafana.rb +++ b/lib/diffdash/outputs/grafana.rb @@ -101,9 +101,12 @@ def app_variable type: "query", datasource: { type: "loki", uid: "${datasource_loki}" }, query: "label_values({app!=\"\"}, app)", - refresh: 2, + refresh: 1, includeAll: false, - multi: false + multi: false, + current: {}, + options: [], + sort: 1 } end diff --git a/spec/fixtures/grafana/dashboard_v1_fixture.json b/spec/fixtures/grafana/dashboard_v1_fixture.json index ed6d058..46397c7 100644 --- a/spec/fixtures/grafana/dashboard_v1_fixture.json +++ b/spec/fixtures/grafana/dashboard_v1_fixture.json @@ -50,9 +50,12 @@ "uid": "${datasource_loki}" }, "query": "label_values({app!=\"\"}, app)", - "refresh": 2, + "refresh": 1, "includeAll": false, - "multi": false + "multi": false, + "current": {}, + "options": [], + "sort": 1 } ] },