-
Notifications
You must be signed in to change notification settings - Fork 55
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 overrides exporter #198
Conversation
7ff1366
to
bf06d1d
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.
LGTM, one typo, and a proposal to refactor as a mixin instead of using a boolean to enable.
cortex/config.libsonnet
Outdated
// this enables overrides exporter, which will expose the configured | ||
// overrides and presets (if configured). Those metrics can be potentially | ||
// high cardinatilty. | ||
overrides_exporter_enabled:: false, |
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 think we probably want to avoid this bool for enabling the exporter and instead document how users can import it if they want it. It saves the repeated if enabled then
logic that you have to do for each object which is nice.
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.
You can take a look at this updated version, I basically followed the test exporter with the setup before.
Not too sure how and where to document it, I think right now there is not much docs or am I missing something?
d19c703
to
fad3308
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.
LGTM
cortex/overrides-exporter.libsonnet
Outdated
local name = 'overrides-exporter', | ||
|
||
_config+: { | ||
// overrides exporter can also make the previously defined presets available, this list references the |
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.
Did this sentence get cut off?
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.
Good point, fixed it
Overrides exporter part of grafana/cortex-tools and exposes runtime overrides and related presets of Cortex as metrics. Signed-off-by: Christian Simon <[email protected]>
fad3308
to
3b391b6
Compare
…rrides-exporter Add overrides exporter
What this PR does:
Add overrides exporter deployment (which is part of grafana/cortex-tools) that exposes runtime
overrides and related presets.
Checklist
CHANGELOG.md
updated - the order of entries should be[CHANGE]
,[FEATURE]
,[ENHANCEMENT]
,[BUGFIX]