Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add node links #21

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

add node links #21

wants to merge 9 commits into from

Conversation

lmangani
Copy link

@lmangani lmangani commented Sep 24, 2022

prototype/proposal patch implementing functionality discussed in issue #20 for adding optional links (external and internal) to graph nodes. Link parameters format is similar to the details__ field:

link__{uniquename}__parameter = value

External Links

  • link__id__url, link__id__title

Internal Links

  • link__id__expr, link__id__uid, link__id__name, link__id__title

Format Sample

{ 
  "id": "1", 
  "title": "Service1", 
  "subTitle": "instance:#2", 
  "detail__role": "load",
  "arc__failed": 0.7, 
  "arc__passed": 0.3, 
  "mainStat": "qaz",
  "link__external__url": "http://some/service",
  "link__external__title": "custom link",
  "link__internal__expr": "rate(traces_service_graph_request_total{server=\"${__data.fields.id}\"}[$__interval])",
  "link__internal__title": "request rate",
  "link__internal__uid": "prometheus"
}

prototype/proposal patch implementing functionality discussed in issue hoptical#20 for adding optional links (external and internal) to graph nodes

## External Links
- link__url, link__title
## Internal Links
- link__expr, link__uid, link__name
@lmangani lmangani mentioned this pull request Sep 24, 2022
@lmangani
Copy link
Author

@hoptical any suggestions or feedback? Thanks in advance!

@hoptical
Copy link
Owner

@lmangani Thanks for your contribution and sorry for being very late in sending my feedback. I had a terrible internet connection in my country for months and couldn't investigate further steps of this repo.

BTW, I reviewed your branch and tried to get a run and check if I can see the links or context menu in the graph layout. The context menu wasn't shown yet and the problem was there. Maybe my input JSON wasn't correct.

Would you please send a full sample of the JSON served to the plugin?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants