DX Application Performance Management

 View Only
  • 1.  Can I access the last part of the metric name in a typeview?

    Posted Apr 01, 2015 06:29 PM

    I have EP Agent plugins that generate metrics with names like "EPAgent|Category:# of X used", EPAgent|Category:# of Y used" etc. I cannot predict the metric names. Looking back, this was stupid, and they should have been "EPAgent|Category|X:# used" etc. Had I done that the metric name would be a constant and the typeview could reference the LastSegmentPrefix to pick up the category name.


    I want to be able to display a pane that has the metric name and the value. Is there a way to do that? At present the best I can do is to use a graph like: <Graph absolute-specifier="Category\:# of.* used"> and then mouseover to find the metric name. Can I get a list of metric names at the bottom of the graph as one would get in the Management Module Editor?



  • 2.  Re: Can I access the last part of the metric name in a typeview?

    Broadcom Employee
    Posted Apr 01, 2015 06:34 PM

    When using the graph, you have the option of showing the metric names by pulling on the yellow diamond symbol which controls the divider bar between the graph and the metric names.

    Is this what you want to see?



  • 3.  Re: Can I access the last part of the metric name in a typeview?

    Broadcom Employee
    Posted Apr 02, 2015 12:50 PM
      |   view attached

    Hi,

     

    if you want to display something like:

    Typeview.png

    The definition (business-segments.typeviewers.xml) is attached. See ComponentDefinitions "BT-table1", "BT-table2" and TypeViewer "bp-name".

     

    So this might work (haven't tested it):

                <Column caution-threshold="20" content-type="NumericalValue" danger-threshold="50" relative-specifier="\|([^\|]*):# of .* used">

                    <Title its:translate="yes"># used</Title>

                </Column>

     

    Ciao,

    Guenter

    Attachment(s)



  • 4.  Re: Can I access the last part of the metric name in a typeview?

    Posted Apr 02, 2015 01:16 PM

    A relative-specifier would work to pull out the data, but not the metric name.



  • 5.  Re: Can I access the last part of the metric name in a typeview?

    Broadcom Employee
    Posted Apr 02, 2015 02:07 PM

    My bad! "NumericalValue" gives you the metric value. Try "Metric" instead! And you should also be able to use an absolute specifier. Possible values are:

    <xs:simpleType name="TableColumnContentType">

      <xs:restriction base="xs:string">

      <xs:enumeration value="Host"/>

      <xs:enumeration value="Process"/>

      <xs:enumeration value="Agent"/>

      <xs:enumeration value="NumericalValue"/>

      <xs:enumeration value="AlertValue"/>

      <xs:enumeration value="MinValue"/>

      <xs:enumeration value="MaxValue"/>

      <xs:enumeration value="DataPointCount"/>

      <xs:enumeration value="StringValue"/>

      <xs:enumeration value="LastPrefixSegment"/>

      <xs:enumeration value="PrefixPattern"/>

      <xs:enumeration value="Metric"/>

      <xs:enumeration value="Timestamp"/>

      <xs:enumeration value="Description"/>

      <xs:enumeration value="Parameter"/>

      </xs:restriction>

      </xs:simpleType>



  • 6.  Re: Can I access the last part of the metric name in a typeview?

    Posted Apr 07, 2015 04:01 PM

    Still not there...

     

                    <Graph absolute-specifier="Category:# of .* used">

                            <Title># used</Title>

                    </Graph>

     

    gets me a graph with all of the metrics. But

     

                    <MetricDataTable show-bottom-graph="false">

                            <Column content-type="Metric" absolute-specifier="Category:# of .* used">                                                                     

                                    <Title>Category</Title>

                            </Column>

                            <Column content-type="NumericalValue" absolute-specifier="Category:# of .* used" sort="Ascending">

                                    <Title># used</Title>

                            </Column>

                    </MetricDataTable>

     

    gets me a table with only a single row. I do get the appropriate metric name next to the metric, which is great!. But I've tried relative and absolute specifiers and many variants of this table and I never get more than one row.



  • 7.  Re: Can I access the last part of the metric name in a typeview?
    Best Answer

    Broadcom Employee
    Posted Apr 07, 2015 04:14 PM

    I'm not sure that type viewers take variable metric names (the part after ':'). Typically they are fixed like this (and you will probably have to change your metric names to make it work):

     

    <ComponentDefinition id="my-table">

      <MetricDataTable>

      <Column content-type="LastPrefixSegment" relative-width="3">

      <Title its:translate="yes">Steps</Title>

      </Column>

      <Column content-type="NumericalValue" relative-specifier="\|([^\|]*):Status Message Value">

      <Title its:translate="yes">Status Message Value</Title>

      </Column>

      <Column content-type="StringValue" relative-specifier="\|([^\|]*):Status Message">

      <Title its:translate="yes">Status Message</Title>

      </Column>

      <Column content-type="NumericalValue" relative-specifier="\|([^\|]*):Response Code">

      <Title its:translate="yes">Response Code</Title>

      </Column>

      </MetricDataTable>

    </ComponentDefinition>


    "Category|{category}: # used" would conform to the way metric names are generated by Java and .NET agents.


    Ciao,

    Guenter