Visitar URL original
Allow more parameters in topology view `dashboard_url_templates.service` · Issue #12401 · hashicorp/consul · GitHub
Skip to content

Allow more parameters in topology view dashboard_url_templates.service #12401

Open

Description

@nahsi

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

Activity

  1. changed the title [-]Allow more parameters in connect mesh visualization dashboard link[/-] [+]Allow more parameters in connect mesh visualization dashboard_url_templates.service[/+] on Feb 20, 2022
  2. changed the title [-]Allow more parameters in connect mesh visualization dashboard_url_templates.service[/-] [+]Allow more parameters in connect mesh visualization `dashboard_url_templates.service`[/+] on Feb 20, 2022
  3. changed the title [-]Allow more parameters in connect mesh visualization `dashboard_url_templates.service`[/-] [+]Allow more parameters in topology view `dashboard_url_templates.service`[/+] on Feb 20, 2022
  4. Amier3 commented on Feb 28, 2022

    @Amier3
    Contributor

    Hey @nahsi

    Just curious, Is there any other specific parameters you'd like to see?

  5. nahsi commented on Feb 28, 2022

    @nahsi
    Author

    Hello @Amier3
    I don't think so. Ability to use meta covers all my needs :)

  6. chrisjohnson commented on Mar 4, 2022

    @chrisjohnson

    Service.Meta would be hugely useful for us too! We use a multi-tier environment approach (testing, integration, production, with dozens of instances in each) and have datadog tagged accordingly for our environment matrix, but can't match them up for these consul dashboard links because the consul namespace is testing-rx8 where in datadog it maps to env: testing, app-id: rx8

  7. added
    help-wantedWe encourage community PRs for these issues!
    on Mar 14, 2022
  8. Amier3 commented on Mar 14, 2022

    @Amier3
    Contributor

    Hey @nahsi ,

    We talked about this internally and we think it'd be a welcome addition to consul 👍 ! We don't know where this would fit in the roadmap yet, but I added the help-wanted tag if you or anyone else want to raise a PR for this. If you do, just let me know and I can provide context on what would need to be changed.

  9. added
    good first issueA well-defined bug or improvement with sufficient context which should be approachable for new contr
    and removed
    help-wantedWe encourage community PRs for these issues!
    on Mar 14, 2022
  10. Nikhil172913832 commented on Jun 30, 2026

    @Nikhil172913832

    Hi @Amier3 , I'd love to raise a PR for this. Could you provide the additional context needed to make the required changes?

  11. amarkdotdev commented on Jul 11, 2026

    @amarkdotdev

    Opened #23730 to pass Service.Meta into dashboard URL template interpolation on the service and topology views, with tests and docs.

  12. added a commit that references this issue on Jul 21, 2026
    6da883f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueA well-defined bug or improvement with sufficient context which should be approachable for new contrtheme/uiAnything related to the UItype/enhancementProposed improvement or new feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions