Infrastructure (Server, Network, Database)

cancel
Showing results for 
Search instead for 
Did you mean: 

When using Custom Metric event do not contain node name

SOLVED
Builder

When using Custom Metric event do not contain node name

Using Server Agent 4.3.5.7
I have a Health rule that monitors a Custom Metric condition. I am montoring a process name, triggering an event when the process count exceeds a threshold.

I am forwarding this event to a webhook via a HTTP action request using a JSON payload.

However the resulting event does not contain the node/server name.

I can see in the AppDynamics Servers Events list the Server name field is not populated.

Is this expected behaviour ? or can agent be configured to include the Server name?

Thanks

John

 

example payload

 

{
        "controllerUrl": "https://mycontroller.appdynamics.com",
        "accountId": "xxx",
        "accountName": "xxxxxxxxxx",
        "policy": "AUTO_appd_process_Alive",
        "action": "Tell_CSIT_AUTO",
        "topSeverity": "ERROR",
        "eventType": "POLICY_OPEN_CRITICAL",
        "eventId": "1549490534",
        "eventGuid": "16f35995-5d7f-439d-822e-1ae34ea02cf6",
        "displayName": "New Critical Health Rule Violation",
        "eventTime": "Mon Sep 11 09:06:55 PDT 2017",
        "severity": "ERROR",
        "applicationName": "Server & Infrastructure Monitoring",
        "applicationId": "3579",
        "tier": "${latestEvent.tier.name}",
        "node": "${latestEvent.node.name}",
        "healthRule": "Auto_appd_process",
        "incident": "Auto_appd_process",
        "affectedEntities": [{
                "entityType": "APPLICATION",
                "name": "Server & Infrastructure Monitoring"
            }
        ],
        "deepLink": "https://mycontroller.appdynamics.com/#location=APP_EVENT_VIEWER_MODAL&eventSummary=1549490534&applic...",
        "summaryMessage": "AppDynamics has detected a problem with Application <b>Server &amp; Infrastructure Monitoring</b>.<br><b>Auto_appd_process</b> started violating and is now <b>critical</b>.",
        "eventMessage": "AppDynamics has detected a problem with Application <b>Server &amp; Infrastructure Monitoring</b>.<br><b>Auto_appd_process</b> started violating and is now <b>critical</b>.<br>All of the following conditions were found to be violating<br>For Application <b>Server &amp; Infrastructure Monitoring</b>:<br>1) condition 1<br><b>Count's</b> value <b>1.0</b> was <b>greater than</b> the threshold <b>0.0</b> for the last <b>1</b> minutes<br>",
        "healthRuleEvent": true,
        "healthRuleViolationEvent": true,
        "btPerformanceEvent": false,
        "eventTypeKey": "Health Rule"
    }

 

When using Custom Metric event do not contain node name
3 REPLIES 3
AppDynamics Team

Re: When using Custom Metric event do not contain node name

Hi John,

 

We can see you have raised a support ticket for the above issue. We will update in support ticket.

 

Thanks,

Atyuha



Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.
Builder

Re: When using Custom Metric event do not contain node name

Jusy in case anybody else sees this issue

I missed a step in setting up the HR.

Under Affected notice a tick box (looks greyed out and unavailable to me)

You are then presented with the pull down to select the affecked host

Re: When using Custom Metric event do not contain node name

Hi Team,

 

Even in my case, The same Email template works for few applications where as it is not resolving node name for one of the application.

Please let me know if you have solution.

 

Thanks

Lalitha