You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's a little bit of a pain because at the point of the metric setting we have an anonymous type. But since we really only have one config vendor [mazz: now that Cytoscape is gone, I assume we only have one now], this should always work:
numNodes := 0
if _, ok := graphConfig.(config_common.Config); ok {
numNodes = len(graphConfig.(config_common.Config).Elements.Nodes)
}
internalmetrics.SetGraphNodes(o.GetGraphKind(), o.TelemetryOptions.GraphType, o.InjectServiceNodes, numNodes)
Uh oh!
There was an error while loading. Please reload this page.
The graph node size metric was changed to always be 0 for some reason: 667a887
Let's fix that. We need to set the number of nodes in the graph at these 2 points in the code (lines 40 and 76 here): https://github.com/kiali/kiali/blob/v2.9.0/graph/api/api.go#L40-L76
Instead of "0" we need the size of the graph (i.e. the number of nodes in the graph).
This is part of #8348
The text was updated successfully, but these errors were encountered: