Skip to content

How to alert about only some services? #10264

Answered by Jedore
Jedore asked this question in Q&A
Discussion options

You must be logged in to vote

It's my solution:

  1. modify metrics in config/oa/*.oal:
    as https://skywalking.apache.org/docs/main/next/en/guides/backend-oal-scripts/ said.

    From 8.0.0, you may find the OAL script at /config/oal/*.oal of the SkyWalking dist. You could change it, such as by adding filter
    conditions or new metrics. Then, reboot the OAP server, and it will come into effect.
    All metrics named in this script could be used in alarm and UI query.

    I add a new metrics in config/oal/core.oal to distinguish different services:

    kg_service_resp_time = from(Service.latency).filter(name in ["kg-graph::prod", "kg-graph::pre", "kg-graph::test", "kg-graph::dev"]).longAvg();
    
  2. modify alarm-settings.yml:
    use updated or ne…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@Jedore
Comment options

@wu-sheng
Comment options

@Jedore
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Jedore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
backend OAP backend related.
3 participants