I already have Consul deployed and working in my environment and would like to reuse the existing cluster.
There doesn't seem to be an easy way to override the consul hostname though.
I might be missing something but there also seem to be places were hardcoded config is overriding values from $._config which is a bit confusing and tricky to deal with.
For example if i set the consul hostname for the distributor in the place I would expect to:
{
_config+:: {
distributorConfig+: {
'distributor.ring.consul.hostname': 'my-consul.service',
}
}
}
It is overriden in https://github.com/grafana/cortex-jsonnet/blob/1.9.0/cortex/distributor.libsonnet#L37 and I have to set those values in $.distributor_args+:: instead / as well.
This appears to be the case for ruler and compactor too.
On a semi-related note, the distributor HA Tracker is also hardcoded to use etcd when it could use Consul as well.
Is there a reason for preferring etcd here? (e.g. performance issues in large production environments for this use case)