Skip to content

Commit

Permalink
fix: Remove multi/all from job templates
Browse files Browse the repository at this point in the history
  • Loading branch information
adinhodovic committed Dec 7, 2023
1 parent 458b29d commit cd544bc
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 15 deletions.
2 changes: 2 additions & 0 deletions .lint
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
---
exclusions:
template-job-rule:
reason: Jobs are not set to multi in our case.
template-instance-rule:
reason: We don't use instances.
panel-datasource-rule:
Expand Down
4 changes: 2 additions & 2 deletions dashboards/django-overview.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ local tbQueryOptions = tablePanel.queryOptions;
query.withDatasourceFromVariable(datasourceVariable) +
query.withSort(1) +
query.generalOptions.withLabel('Job') +
query.selectionOptions.withMulti(true) +
query.selectionOptions.withIncludeAll(true, '.+') +
query.selectionOptions.withMulti(false) +
query.selectionOptions.withIncludeAll(false) +
query.refresh.onLoad() +
query.refresh.onTime(),

Expand Down
4 changes: 2 additions & 2 deletions dashboards/django-requests-by-view.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ local tsOverride = tsStandardOptions.override;
query.withDatasourceFromVariable(datasourceVariable) +
query.withSort(1) +
query.generalOptions.withLabel('Job') +
query.selectionOptions.withMulti(true) +
query.selectionOptions.withIncludeAll(true, '.+') +
query.selectionOptions.withMulti(false) +
query.selectionOptions.withIncludeAll(false) +
query.refresh.onLoad() +
query.refresh.onTime(),

Expand Down
4 changes: 2 additions & 2 deletions dashboards/django-requests-overview.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ local tbOverride = tbStandardOptions.override;
query.withDatasourceFromVariable(datasourceVariable) +
query.withSort(1) +
query.generalOptions.withLabel('Job') +
query.selectionOptions.withMulti(true) +
query.selectionOptions.withIncludeAll(true, '.+') +
query.selectionOptions.withMulti(false) +
query.selectionOptions.withIncludeAll(false) +
query.refresh.onLoad() +
query.refresh.onTime(),

Expand Down
5 changes: 2 additions & 3 deletions dashboards_out/django-overview.json
Original file line number Diff line number Diff line change
Expand Up @@ -713,14 +713,13 @@
"type": "query"
},
{
"allValue": ".+",
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"includeAll": true,
"includeAll": false,
"label": "Job",
"multi": true,
"multi": false,
"name": "job",
"query": "label_values(django_http_responses_total_by_status_view_method_total{namespace=~\"$namespace\"}, job)",
"refresh": 2,
Expand Down
5 changes: 2 additions & 3 deletions dashboards_out/django-requests-by-view.json
Original file line number Diff line number Diff line change
Expand Up @@ -617,14 +617,13 @@
"type": "query"
},
{
"allValue": ".+",
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"includeAll": true,
"includeAll": false,
"label": "Job",
"multi": true,
"multi": false,
"name": "job",
"query": "label_values(django_http_responses_total_by_status_view_method_total{namespace=~\"$namespace\"}, job)",
"refresh": 2,
Expand Down
5 changes: 2 additions & 3 deletions dashboards_out/django-requests-overview.json
Original file line number Diff line number Diff line change
Expand Up @@ -1052,14 +1052,13 @@
"type": "query"
},
{
"allValue": ".+",
"datasource": {
"type": "prometheus",
"uid": "${datasource}"
},
"includeAll": true,
"includeAll": false,
"label": "Job",
"multi": true,
"multi": false,
"name": "job",
"query": "label_values(django_http_responses_total_by_status_view_method_total{namespace=~\"$namespace\"}, job)",
"refresh": 2,
Expand Down

0 comments on commit cd544bc

Please sign in to comment.