question

Peter S. avatar image
Peter S. asked ·

Report execution time of the batch job written in Shell script to Dynatrace

We have batch jobs written in shell script which takes a while to complete, and sometime fails to complete.

1. How could we send the data (start time, end time, completion time) for charting in Dashboard; hopefully dynatrace can auto baseline and alert if any deviation in completion time.

2. and also in the event of failure we need Problem to be created in Dynatrace.

Note: If we use API to send custom metrics, it has to be done at the completion of the batch, but in the event the job crashes, it will never reaches the part where it calls API, then we would miss the metric and any notifications. So is there any other solution to achieve our goal other than API.

Thanks

Dynatrace Managedalertingrest apiscriptingauto-detectionlinux
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

1 Answer

Julius L. avatar image
Julius L. answered ·

I don't know your particular script, but I'd try to write a helper "daemon" in a language that's supported by deep monitoring and OneAgent-SDK and call the daemon to process any start/finish events (or other functions). Dynatrace would trace the requests as purepaths (you could pass additional info such as batch job ID/name) and capture them.

However I'm not sure if automated baselines will work in this case if the batch jobs are not frequent.

Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

Space Topics

mobile monitoring dotnet synthetic monitoring reports iis chat kubernetes servicenow amazon web services mysql mainframe rest api errors cassandra dashboard oneagent sdk cmc application monitoring openkit smartscape request attributes monitoring developer community user tagging log monitoring services ufo syntheticadvisory activegate ip addresses auto-detection high five award oracle hyperion webserver uem usql iib test automation license web performance monitoring ios news migration management zones index ibm mq web services custom event alerts notifications sso host monitoring knowledge sharing reports browser monitors java hybris sap vmware maintenance window user action naming javascript appmon ai synthetic classic availability tipstricks automation extensions session replay diagnostic tools permissions davis assistant faq documentation problem detection http monitors server easytravel apdex aws-quickstart network docker tags and metadata cloud foundry google cloud platform synthetic monitoring process groups account usability dynatrace saas gui paas openshift key user actions administration user actions postgresql synthetic locations oneagent security Dynatrace Managed user management custom python technologies mongodb openstack user session monitoring continuous delivery citrix configuration alerting NGINX action naming linux nam installation masking error reporting database mission control jmeter recorder apache mobileapp RUM php threshold azure purepath davis scripting agent aix nodejs android