-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add config options for loki dashboards #2617
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2617 +/- ##
==========================================
+ Coverage 62.87% 62.90% +0.02%
==========================================
Files 170 170
Lines 15049 15049
==========================================
+ Hits 9462 9466 +4
+ Misses 4826 4823 -3
+ Partials 761 760 -1
|
f9958e7
to
d6b589b
Compare
d6b589b
to
4c00db5
Compare
7671891
to
14e1a6c
Compare
14e1a6c
to
70cafa5
Compare
1718a52
to
215fc02
Compare
215fc02
to
e004609
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Jsonnet PRs are always hard to review, but this looks good. Left one nit/question, but LGTM.
assert (cfg.namespaceType == 'custom' || cfg.namespaceType == 'query') : "Only types 'query' and 'custom' are allowed for dashboard variable 'namespace'", | ||
|
||
matchers:: { | ||
ingester: [utils.selector.re('job', '($namespace)/ingester')], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I think this can be an equality match instead of a regexp.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume so, but I kept the same selectors as previously used for now. It is already a massive change :)
What this PR does / why we need it:
This PR addresses missing reconfigurability for Loki dashboards. It provides the following options:
Dashboards to adapt:
Which issue(s) this PR fixes:
Fixes #1830 and supersedes #1978
Special notes for your reviewer:
Checklist
/cc @cyriltovena @slim-bean