cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Metric to determine app pool restarts in X timeframe?

DStockland
Frequent Guest

Hello,

I have the need to determine how many times app pools have been restarted (in 30 days) across our domain in Dynatrace.  I've been poking around, but cannot figure it out.  Is there a Metric I can configure to determine this, or perhaps by filtering through logs?

Thank you!

1 REPLY 1

mark_bley
Dynatrace Pro
Dynatrace Pro

Hi @DStockland

you can filter through the events for this information.

mark_bley_0-1696578943354.png

using the API you can determine the timeframe and the entity it happened on

"events": [
    {
      "eventId": "6798745626705320663_1696483060541",
      "startTime": 1696483060266,
      "endTime": 1696483064123,
      "eventType": "PROCESS_RESTART",
      "title": "Process restart",
      "entityId": {
        "entityId": {
          "id": "PROCESS_GROUP_INSTANCE-04FB78E5D361DA42",
          "type": "PROCESS_GROUP_INSTANCE"
        },
        "name": "IIS app pool .NET v4.5 Classic"
      },
...

For each instance count them up and you have your result.

BR,

Mark

Featured Posts