From FQDN to NetBIOS Name\Or Similar with the Disk Drive Letter.
Hi,
You can actually change the name settings of every performance label.
I had a similar question a few weeks back, and the answer is the same.
- Open the XML file for the dashboard you wish to edit in a text editor such as Notepad or Notepad ++. The name of the XML file can be see in the URL when viewing the dashboard.
c:\inetpub\wwwroot\SquaredUpv2\Configuration\Views
The XML files for your draft dashboards can be found in the individual users profile folder:
c:\inetpub\wwwroot\SquaredUpv2\UserProfiles
- Locate the section detailing the performance graph you are interested in <Plugin>Performance</Plugin> and add a new <NameValueSetting> section like the following to the <Settings> section:
<Name>labeltemplate</Name>
<Value>{{ManagedEntityDisplayName}}</Value>
</NameValueSetting>
The properties available to use in the <Value> section are listed below and must be placed within mustaches like this {{ManagedEntityDisplayName}}:
TopLevelManagedEntityId
ManagedEntityPath
ManagedEntityId
ManagedEntityDisplayName
ManagedEntityName
RuleId
Object
Counter
Instance
Value (bar chart only)
Max (graph/sparkline only)
Min (graph/sparkline only)
Â
- Save the XML file and refresh your dashboard in Squared Up to check the labels are as required.
Let me know if you need an example also
I assume that you are trying to change the display names from “server1.domain.local / C:” to “server1 / C:” in the Performance Plugin.
It is possible to do this within the XML.
- Open the dashboard XML file (Located by default in "C:\inetpub\wwwroot\SquaredUpv2\Configuration\Views")
- Locate the section that represents your performance graph in the dashboard
- Add this new value to the settings:
<NameValueSetting> <Name>labeltemplate</Name> <Value>{{ManagedEntityPath.split('.').slice(0, -2).join('.')}} / {{ManagedEntityDisplayName}}</Value> </NameValueSetting>
Thanks for the split trick, I haven’t seen that before. I can replace a lot of IF statements I’ve been using with that.