Instana U

 View Only
  • 1.  Able to alert on a JVM that runs to long?

    Posted Tue January 16, 2024 12:11 PM

    Hi,

      We are looking into why a java process is running too long, but meanwhile would like to be able to do a custom alert if it's running longer than 4 hours... I didn't see anything in the documentation that indicated that this was possible. Process gets kicked off via Cron ... we might put a wrapper around it and kill it after certain amount of time and alert that way... just wondering if a custom alert would be possible.

    Cheers,

      Rick Mitterer

      ID90Travel



    ------------------------------
    Rick Mitterer
    ------------------------------


  • 2.  RE: Able to alert on a JVM that runs to long?
    Best Answer

    Posted Wed January 17, 2024 05:20 AM
    Fire an event to the agent with:
    https://www.ibm.com/docs/en/instana-observability/current?topic=apis-host-agent-rest-api#event-sdk-web-service

    Then create a new alert in Instana with the event severity and the scope "event:text:your-event-message".

    You're done. 

    Luis