Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Using an existing / external Consul cluster #325

@hamishforbes

Description

@hamishforbes

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions