When configuring a Synthetic monitor of any type, you can apply Primary Grail tags to the monitor. After that, all events and metrics generated by the monitor are enriched with these Primary Grail tags, so you can retrieve:
If you're using private Synthetic locations, install ActiveGate version 1.331+. Earlier versions do not enrich the metrics and events produced by Synthetic monitor executions with the monitor's primary Grail tags.
When you apply Primary Grail tags to the monitor, keep in mind the following constraints:
Retrieve monitor events related to tagged monitors using the primary_tags.__key__ field.
Example:
fetch dt.synthetic.events| filter primary_tags.Owner == "OwnerName"| filter event.type == "browser_monitor_execution" OR event.type == "http_monitor_execution" OR event.type == "network_availability_monitor_execution"| filter result.state == "FAIL"| fields timestamp, monitor.name, event.type, primary_tags.Owner, result.state, result.failed_step.name
Retrieve Synthetic metrics using the primary_tags.__key__ dimension for grouping and filtering data.
Examples for:
timeseries av =avg(dt.synthetic.browser.availability),by: { primary_tags.Owner },filter: primary_tags.Owner != "null"
timeseries av =avg(dt.synthetic.http.availability),by: { primary_tags.Owner },filter: primary_tags.Owner != "null"
timeseries av =avg(dt.synthetic.multi_protocol.availability),by: { primary_tags.Owner },filter: primary_tags.Owner != "null"