Reputation: 81
I am creating monitoring alerts on several metrics.
I am putting 2 examples below: 1) dataflow job failed 2) firewall rule changed or new rule inserted
Creating log-based metric and alert from it is fine. But it is very generic. How do I pin point to specific detail like this dataflow job (job name) failed or dataflow job created by this user failed? Same for the firewall rule, how do I know which rule out of all is updated?
How can I include job name or pin point resource in question in the alert message itself?
For the example I provided, configuration are below -
Firewall update metric is created using following filter:
resource.type="gce_firewall_rule" AND jsonPayload.event_subtype="compute.firewalls.patch" OR jsonPayload.event_subtype="compute.firewalls.insert"
For dataflow failed job there is metric available in metric explorer - is_failed
Upvotes: 0
Views: 150