-
Notifications
You must be signed in to change notification settings - Fork 30
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
Displaying dynamic metric values on the map. #95
Comments
Please follow this link for an example map source. Please note that |
Currently we are using Prometheus as datasource. Is it mandatory to use GlobalNOC TSDS Datasource for Network map or can we use Prometheus datsource? How can we map data from datsource to network map through json editor? Example: |
As far as I've tested you can use any datasource. Grafana mandates a standard for what the data looks like so it shouldn't matter. Eyeballing your JSON shown below, it looks like you're mixing up the results.endpoints with the results.links.endpoints, admittedly a bit of a name overload. The results.links.endpoints is used to control the association of data onto the map. You can see this in the README example. The |
I am able to mark the routers on the map and the link between them using the map source (json editor) option. I am trying to display the dynamic values(input rate) fetched from metric query on the map using legend when hovered over the link. But unable to find a way to do so. I tried passing the value in json editor, but couldn't get to see that on the map. Looking for help on displaying the dynamic values on the map. Thanks in advance.
The metric query and legend used is:
metric: ifHCInOctets
legend: ipRate
Below is the json in the map source for marking the routers and link.
{
"results": [
{
"links": [
{
"path": [
{
"lon": "-150.991531",
"lat": "40.742043"
},
{
"lon": "-150.991531",
"lat": "70.742043"
}
]
}
The text was updated successfully, but these errors were encountered: