hashicorp/consul

Allow more parameters in topology view `dashboard_url_templates.service`

Open

#12.401 aberto em 20 de fev. de 2022

Ver no GitHub
 (4 comments) (2 reactions) (0 assignees)Go (4.588 forks)batch import
good first issuetheme/uitype/enhancement

Métricas do repositório

Stars
 (29.891 stars)
Métricas de merge de PR
 (Mesclagem média 5d 8h) (73 fundiu PRs em 30d)

Description

Feature Description

Allow more parameters in ui_config.dashboard_url_templates.service. Parameters like {{Service.Meta.xxx}}.

This was actually allowed and worked back in version 1.9.x

Use Case(s)

Using Consul meta to provide links in topology visualization. For example, when registering service with:

meta {
        dashboard = "G7Z29GzMGz"
        alloc_id = NOMAD_ALLOC_ID
      }

and

  ui_config:
     dashboard_url_templates:
      service: !unsafe "https://grafana.service.consul/d/{{Service.Meta.dashboard}}"

resulting link in the UI should be https://grafana.service.consul/d/G7Z29GzMGz

Guia do colaborador