we did created a group to receive certain of alerts to be received from GCP.
As part of report submission, we are manually checking the MTTA and MMTR counts through analytics section. Our requirement is now to share this stats or report to members who are not in that opsgenie group.
Can you share the information, how can I can send those reports to mail distro's
Thank you so much for reaching out to the
Atlassian Community and sharing your use case, this is a great question!
I understand how important it is to keep all stakeholders informed, especially when it comes to key metrics like MTTA (Mean Time to Acknowledge) and MTTR (Mean Time to Resolve). While OpsGenie’s analytics section provides valuable insights, I can see how automating the distribution of these reports would save you time and ensure everyone stays in the loop.
Currently, OpsGenie doesn’t offer a built-in feature to schedule and automatically email analytics reports directly to distribution lists or users outside of a specific group. However, here are a few approaches you might consider:
Manual Export & Email:
You can export the analytics data (as CSV or PDF) from the Opsgenie Analytics section and then share it via email with your distribution list. While this is manual, it ensures you can customise the report before sending.
Automation via API:
OpsGenie provides robust APIs that allow you to fetch alert and analytics data programmatically. You could set up a script (using tools like Python) to pull the MTTA/MTTR stats (not directly) at scheduled intervals and send them via email to your desired recipients. Opsgenie API Documentation
Here, a high-level approach would be -
Alert Data: You can use the List Alerts API to retrieve detailed information about alerts, including timestamps for when alerts were created, acknowledged, and closed.
Analytics Data: As of now, Opsgenie does not provide a direct API endpoint specifically for analytics metrics like MTTA/MTTR. However, you can calculate these metrics yourself by fetching alert data and processing the timestamps.
MTTA: For each alert, calculate the time difference between created and acknowledged time.
MTTR: For each alert, calculate the time difference between created and closed time
You can fetch these details using the alert logs https://api.opsgenie.com/v2/alerts/<alert-ID>/logs
I hope this helps point you in the right direction! If you need guidance on setting up API-based automation or have any other questions, just let us know—we’re here to help.
Thanks again for being part of the Atlassian Community!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.