Darpan Patel
Darpan Patel

Reputation: 81

Is there a way to make Stackdriver Alert more specific?

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

Answers (1)

AdolfoOG
AdolfoOG

Reputation: 186

I'm pretty sure that is done by default, according to this, when an alert is triggered by a dataflow job, the alert details contains which dataflow job triggered it.

Is this what you were looking?

Upvotes: 1

Related Questions