Add a New Metric to an Existing Metric Family

You want to add a new BitsRateCustom metric that is based on collected MIB objects to the Interface metric family.
capm310
You want to add a new BitsRateCustom metric that is based on collected MIB objects to the Interface metric family.
2
Update the Metric Family with the New Metric
  1. Make the following GET REST call to export existing extensions for the Interface metric family:
    http://da_hostname:8581/typecatalog/metricfamilies/extension/NormalizedPortInfo
    The current extensions are returned. If you have not defined any extensions, the following XML is returned:
    <DataModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" namespace="http://im.ca.com/normalizer" xsi:noNamespaceSchemaLocation="IMDBCertificationFacet.xsd">     <Author>CA</Author>     <Version>2.03</Version>     <FacetType name="NormalizedPortInfo" descriptorClass="com.ca.im.core.datamodel.certs.NormalizedFacetDescriptorImpl">     <FacetOf namespace="http://im.ca.com/core" name="Item"/>     </FacetType> </DataModel>
  2. Define the new BitsRateCustom attributes in the extension XML file.
    <DataModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" namespace="http://im.ca.com/normalizer" xsi:noNamespaceSchemaLocation="IMDBCertificationFacet.xsd">
        <Author>CA</Author>
        <Version>2.03</Version>
        <FacetType name="NormalizedPortInfo" descriptorClass="com.ca.im.core.datamodel.certs.NormalizedFacetDescriptorImpl">
        <FacetOf namespace="http://im.ca.com/core" name="Item"/>
        <AttributeGroup name="PortInfoPollable" list="true" external="true">
            <Attribute name="BitsRateCustom" type="Double">
                <Documentation/>
                <IsDbColumn>true</IsDbColumn>
                <Baseline>false</Baseline>
                <Minimum>true</Minimum>
                <Maximum>true</Maximum>
                <RollupStrategy>Sum</RollupStrategy>
                <StandardDeviation>false</StandardDeviation>
                <Variance>false</Variance>
                <Percentile>95</Percentile>
                <Percentile2>0</Percentile2>
                <Percentile3>0</Percentile3>
                <ProjectionPercentile>0</ProjectionPercentile>
                <Polled>true</Polled>
                <Units>BitsPerSecond</Units>
            </Attribute>
        </AttributeGroup>
        </FacetType>
    </DataModel>
  3. Make the following PUT REST call to import the new extensions for the Interface metric family:
    http://
    da_hostname
    :8581/typecatalog/metricfamilies/extension/NormalizedPortInfo
Update the Vendor Certification with the New Metric
  1. Make the following GET REST call to export existing extensions for the vendor certification:
    To retrieve the name of the vendor certification in the UI, go to the Vendor Certifications page. Click the downward arrow on any column, hover over
    Columns
    , and click
    Internal Name
    .
    http://
    da_hostname
    :8581/typecatalog/certifications/snmp/extension/
    cert_name
  2. Add an expression for calculating the new BitsRateCustom attributes.
    <?xml version="1.0" encoding="UTF-8"?>
    <!--Auto-generated by the type catalog local manager.-->
    <DataModel namespace="http://im.ca.com/certifications/snmp" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="SNMPCertificationFacet.xsd">
        <Author>CA</Author>
        <Version>2.02</Version>
        <FacetType name="IfTableMib" descriptorClass="com.ca.im.core.datamodel.certs.CertificationFacetDescriptorImpl">
        <FacetOf namespace="http://im.ca.com/core" name="Item" />
             <Expressions>
                 <ExpressionGroup destCert="{http://im.ca.com/normalizer}NormalizedPortInfo" name="PortNRMDS">
                 <Expression destAttr="BitsRateCustom">((ifInOctets+ifOutOctets)*8)/_rspDuration</Expression>
                 </ExpressionGroup>
             </Expressions>
        </FacetType>
    </DataModel>
  3. Make the following PUT REST call to import the new extensions for the Interface metric family:
    http://
    da-hostname
    :8581/typecatalog/certifications/snmp/extension/
    cert_name
     
    After you import the vendor certification, the 
    CA Performance Management
    resumes polling and uses the new extended vendor certification.
    The BitsRateCustom metric becomes available 10 minutes after you import the extension.
Validate in CA
Performance Center
After you update the vendor certification with the new metric, verify that the BitsRateCustom metric appears in the Metric Families pane. Data that is polled for the BitsRateCustom metric appears in views after 3 poll cycles (15 minutes).
Follow these steps:
  1. Click 
    Admin
    ,
    Data Aggregator
    .
    The Monitored Devices screen appears. 
  2. Click
    Monitoring Configuration
    ,
    Metric Families
    .
  3. Verify that the BitsRateCustom metric is added as needed.
To report data on the metric that you added, create a view for the metric.