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
When trouble shooting the collector I can't display the Labels for the Metrics definition and the Labels property for the actual metric object at the same time.
When trying to list all values in action during a trouble shooting session
examination of the object is possible separately using
C:\> $Metrics
Descriptor Value Labels
---------- ----- ------
MetricDesc 10 {example}
C:\> $Metrics | select -ExpandProperty Descriptor
Name Help Type Labels
---- ---- ---- ------
ExampleDescriptor Some help gauge {Instance}
but not using a "combined view"
C:\> $Metrics | select Value, Labels -ExpandProperty Descriptor | ft
Select-Object: The property cannot be processed because the property "Labels" already exists.
Value Name Help Type Labels
----- ---- ---- ---- ------
10 ExampleDescriptor Some help gauge {Instance}
I could of course use a calculated property during output
$Metrics | select Value, @{l='LabelValue'; e={$_.Labels}} -ExpandProperty Descriptor | ft
Value LabelValue Name Help Type Labels
----- ---------- ---- ---- ---- ------
10 example ExampleDescriptor Some help gauge {Instance}
The property Labels is clearly for different use depending on the object related, and so should have different names to better separate them.
The text was updated successfully, but these errors were encountered:
When trouble shooting the collector I can't display the
Labels
for the Metrics definition and theLabels
property for the actual metric object at the same time.When trying to list all values in action during a trouble shooting session
examination of the object is possible separately using
but not using a "combined view"
I could of course use a calculated property during output
The property Labels is clearly for different use depending on the object related, and so should have different names to better separate them.
The text was updated successfully, but these errors were encountered: