rafal-szypulka / grafana-ibm-apm

Grafana datasource plugin for IBM APM
MIT License
28 stars 15 forks source link

Plugin sends incorrect value for param_SourceToken #24

Closed tysonrm closed 5 years ago

tysonrm commented 5 years ago

Plugin sends incorrect value for param_SourceToken.

For instance,

Plugin sends param_SourceToken=Primary:ab3_vm00001948:NT

When it should send:

param_SourceToken=ab3_vm00001948:NT

In a nutshell, it is tacking on a Primary: when it should not... as Primary is not list in the TEMS list.

tivlls@nl03hts021ccpxa:/opt/IBM/TEMS/bin> tacmd listsystems -t NT | grep vm00001948 ab3_vm00001948:NT NT 06.30.07.00 Y

Note that there are a lot of systems that do have a "Primary" on them Primary:ab3_nl0311AB33169:NT NT 06.30.07.00 Y Primary:ab3_nl0311AB36501:NT NT 06.30.07.00 Y Primary:ab3_nl0311AB31879:NT NT 06.30.07.00 Y

so the rule is not universal. Why one is and one is not is not clear to me.

rafal-szypulka commented 5 years ago

As per offline conversation, this problem came from the code added to modified/non-public version of the plugin.