Commit Graph

4 Commits

Author SHA1 Message Date
gotjosh c494009f61
Mixin: Fix mixin linting
In accordance with a new rule introduced as part of https://github.com/grafana/dashboard-linter/pull/79 this is now required. However, for the new rule of `panel-unit-rule` we don't reap any benefits from specifiying a particular unit for our panels, the defaults work perfectly fine so they're ignored.

Signed-off-by: gotjosh <josue.abreu@gmail.com>
2022-06-29 16:25:15 +01:00
gotjosh 4d09995c26
Mixin: `template-job-rule` now only validates job and not both instance and job (#2944)
With https://github.com/grafana/dashboard-linter/pull/49 `template-job-rule` no longer validates both `instance` and `job` labels. Add the new rule of `template-instance-rule` to the exclusions to preserve the previous behaviour.

Signed-off-by: gotjosh <josue.abreu@gmail.com>
2022-06-15 22:27:11 +02:00
gotjosh 35bf59f182
Mixin: Rename exclusion rule from `panel-job-instance-rule` to `target-instance-rule`
Within 9a32e58ed0, the rules have been split into two different rules:

`target-job-rule`
`target-instance-rule`

All of our queries do contain the `job` label but as per the reason, we don't need both in this particular case.

Fixes #2899

Signed-off-by: gotjosh <josue.abreu@gmail.com>
2022-05-02 13:08:22 +01:00
clyang82 5414963190 fix lint error
Signed-off-by: clyang82 <chuyang@redhat.com>
2021-12-10 08:20:23 +00:00