DX Application Performance Management

 View Only
  • 1.  regex excluding metrics that can be defined just with several lines

    Posted Feb 29, 2016 06:25 AM

    Hi All,

     

     

    is it possible to create a metric grouping with regex excluding metrics that can be defined just with several lines?

     

    we need to create 1 metric group group over ~5.000 metrics, where the agent and the beginning of the metric group is the same, but we need to exclude around ~4000 metrics.

     

    FYI: from general metric group that can be defined with regex

    Queue Managers\|mqmgr|CUSTOMER\|Queues\|(.*)\|Status:Current Queue Depth

    we need to exclude some metrics that can be defined by another regex

    Queue Managers\|mqmgr|CUSTOMER\|Queues\|SYSTEM\.EVENT(.*)\|Status:Current Queue Depth

    Queue Managers\|mqmgr|CUSTOMER\|Queues\|SYSTEM\.ADMIN(.*)\|Status:Current Queue Depth

    Queue Managers\|mqmgr|CUSTOMER\|Queues\|CUSTOMER\.WS_CONTEXT(.*)\|Status:Current Queue Depth

    Queue Managers\|mqmgr|CUSTOMER\|Queues\|CUSTOMER\.QL\.FIL\.(.*)\|Status:Current Queue Depth

    +40 more

    and

    100 other unique metrics that cant be defined with regex, but need to be excluded,

     

    how can be this done or whats you idea/best practice/recommendation please?

     

    is there some way to create a metric group and filter ~500metrics from all metrics (~10.000)?

    = we need exclude some general types from them and in addition some specific ones as well?

     

     

    thank you,

    stefan

     

     



  • 2.  Re: regex excluding metrics that can be defined just with several lines

    Broadcom Employee
    Posted Mar 04, 2016 07:05 AM

    Hi Stefan:

    Including Hiko_Davis musma03 Tom_Wyszomierski strgu01 Lynn_Williams   for an answer

     

    Thanks

    Hal German



  • 3.  Re: regex excluding metrics that can be defined just with several lines

    Broadcom Employee
    Posted Mar 04, 2016 10:29 AM

    Hi Stefan,

    To clarify, you want to create a metric group with one regex to include

    Queue Managers\|mqmgr|CUSTOMER\|Queues\|(.*)\|Status:Current Queue Depth

     

    we need to exclude something like the below. 

    Queue Managers\|mqmgr|CUSTOMER\|Queues\|SYSTEM\.EVENT(.*)\|Status:Current Queue Depth

    Queue Managers\|mqmgr|CUSTOMER\|Queues\|SYSTEM\.ADMIN(.*)\|Status:Current Queue Depth

    Queue Managers\|mqmgr|CUSTOMER\|Queues\|CUSTOMER\.WS_CONTEXT(.*)\|Status:Current Queue Depth

    Queue Managers\|mqmgr|CUSTOMER\|Queues\|CUSTOMER\.QL\.FIL\.(.*)\|Status:Current Queue Depth

     

    Everything looks the same until after Queues, so specifically what do you want to exclude aside from SYSTEM and CUSTOMER?

     

    Regards,
    Matt



  • 4.  Re: regex excluding metrics that can be defined just with several lines
    Best Answer

    Posted Mar 06, 2016 05:47 PM

    Hi All,

     

    eventually i managed it with lookaround regex (Regex Tutorial - Lookahead and Lookbehind Zero-Length Assertions ), so maybe it can be a solution for you as well in the future.

     

    i.e. 1 of the simplest metric expressions looks like this:

    Queue Managers\|mqmgr|CUSTOMER\|Queues\|SYSTEM\.(?!.*EVENT|AUTH\.|BROKER\.DEPLOY\.REPLY|BROKER\.EXECUTIONGROUP\.QUEUE|BROKER\.TIMEOUT\.QUEUE|BROKER\.WS|CLUSTER\.REPOSITORY\.QUEUE|CHANNEL\.SYNCQ)(.*)\|Status:Current Queue Depth

     

    but in some lines we have ~100 lookaround regex too.

     

    thank you,

    stefan



  • 5.  Re: regex excluding metrics that can be defined just with several lines

    Broadcom Employee
    Posted Mar 07, 2016 09:11 AM

    Thanks Stefan for sharing. Yes, there are many powerful things that you can do with regexes and agent/metric expressions.