Assigned
Status Update
Comments
er...@google.com <er...@google.com>
er...@google.com <er...@google.com> #2
I have forwarded this request to the engineering team. We will update this issue with any progress updates and a resolution.
Best Regards,
Josh Moyer
Google Cloud Platform Support
Best Regards,
Josh Moyer
Google Cloud Platform Support
su...@leovegas.net <su...@leovegas.net> #3
This is not only useful for IP addresses, but also for many other resources. I understand that names are currently used as identifiers, so this request is probably not trivial to implement. Maybe distinguishing between a (numeric, automatically generated) identifier and a (textual) label is the way to go?
Description
Problem you have encountered:
When we create a label for a custom log based metric, we have the ability to match on a payload field. If the field is a json array, we will only be able to retrieve the first value , when this value is used in a stackdriver monitoring alert policy documentation.
example of a AuditLog payload containing the IAM bucket policy added/removed:
serviceData: {
@type: "
policyDelta: {
bindingDeltas: [
0: {
action: "REMOVE"
member: "<redact>"
role: "roles/storage.objectViewer"
}
1: {
action: "ADD"
member: "<redact>"
role: "roles/storage.objectViewer"
}
2: {
action: "ADD"
member: "<redact>"
role: "roles/storage.objectViewer"
}
]
}
}
If we have a label matching on protoPayload.serviceData.policyDelta.bindingDeltas.member named as "policy_member"
And we create a StackDriver monitoring alert policy with the following documentation variable pointing to that label:
"${metric.label.policy_member}"
What you expected to happen:
We expect that the documentation will expand out the policy_member to the 3 element array members, however only the first element is shown.
Steps to reproduce:
Other information (workarounds you have tried, documentation consulted, etc):