Alerting Markdown Sent Message | C2C Community
Solved

Alerting Markdown Sent Message

  • 17 October 2022
  • 5 replies
  • 42 views

Userlevel 3
Hello everybody.I have a question about a Cloud Alert feature, maybe you can help me.I would like to send the 'stack_trace' field in the alert message that I collect in the logs, but I can't capture this variable,I found the documentation: https://cloud.google.com/monitoring/alerts/doc-variables?_ga=2.170128480.-1153108177.1650367795&_gac=1.15669700.1665149858.Cj0KCQjwnP-ZBhDiARIsAH3FSRc3MdmNuwa0IhQC0mdB_cHEYb5HyyGDuDQCG1GFreaKTnJ5C9oF2psaAoFtEALw_wcB  
But even following the steps I was not able to send it correctly.
Here are screenshots that help to understand my problem.

 

I tried to filter like this: ${jsonPayload.stack_trace} but without success the value comes to null.

 

icon

Best answer by yuval 18 October 2022, 08:45

View original

5 replies

Userlevel 6
Badge +6

Hey, @Julio_Costa

How are you?

I need to point that those fields from logs aren’t listed in the table as shown at given doc.

Userlevel 3
Hello, @seijimanoan Exactly, I didn't find any example that showed what I need.But I appreciate the support.I'll leave the topic open for a while to see if anyone has any ideas on how to do this.
Userlevel 7
Badge +58

Hi @Julio_Costa,

let’s see if our members can help you.

@guillaume blaquiere, @antoine.castex, @malamin, @yuval can you help us here?

Userlevel 4
Badge +3

Hello @Julio_Costa .

 

According to the same document page you shared, only the variables in the table are supported:

"""Only the variables in the table are supported."""

 

https://cloud.google.com/monitoring/alerts/doc-variables#doc-vars

Userlevel 7
Badge +58

Thank you for the speedy answer @yuval 😀

@Julio_Costa check Yuval’s answer and let us know if it works for you.

Reply