hashicorp/consul
在 GitHub 查看Allow more parameters in topology view `dashboard_url_templates.service`
Open
#12,401 创建于 2022年2月20日
good first issuetheme/uitype/enhancement
仓库指标
- Star
- (29,891 star)
- PR 合并指标
- (平均合并 8天 12小时) (30 天内合并 41 个 PR)
描述
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