-
Notifications
You must be signed in to change notification settings - Fork 55
Make job names configurable #76
Conversation
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, have you tried this in QA or anywhere to ensure those dashboards still work?
and for your example component|cortex$
, the $
is jsonnet specific syntax?
Looks like your trying to make this work for the single binary - does my previous effort not work here? |
Looks like you’re trying to make this work for the single binary - does my previous PR not do the trick? |
@cstyan I deployed it to the development cluster and it worked pretty well there. I want to deploy it again and double check. @tomwilkie We are still running into two issues. First, is that the job names in the dashboard are still hard coded to |
Can we generate & install two version of the mixin then? The challenge with this approach is it won't work for people not on k8s. And I'd rather avoid have 3 versions of the mixin if possible. |
@tomwilkie For people not on k8s they can still set the cortex-jsonnet/cortex-mixin/dashboards/dashboard-utils.libsonnet Lines 34 to 56 in 958fb89
|
Signed-off-by: Jacob Lisi <[email protected]>
20a526c
to
c52c0d0
Compare
The |
…nfigurable_job_names Make job names configurable
This PR allows the operator to configure the job names for the generated dashboards. This allows users to configure the mixin for non-default deployments of cortex and configure the mixin for use with the single binary deployment of cortex. A single binary deployment of cortex will not have unique job s for all of its modules. Instead,
$namespace/cortex
will be the job name in most deployments. Exposing the job constant used in the cortex dashboards will allow the user to configure and generate dashboards that work best for them.For example:
Assuming a default micro-service deployment of cortex with the standard job names and a single binary deployment with the job name
cortex
. The following config could be set to allow for dashboards that accommodate both deployments.