GoogleCloudPlatform / cloud-logging-data-source-plugin

https://grafana.com/grafana/plugins/googlecloud-logging-datasource/
Apache License 2.0
17 stars 12 forks source link

message from jsonPayload doesn't show up in Grafana #81

Open larsivi opened 1 month ago

larsivi commented 1 month ago

Our logs are created using https://www.npmjs.com/package/@google-cloud/logging-bunyan, which gives us a jsonPayload with a message property that is an object with properties.

In Grafana I get the jsonPayload.logName:"projects/{{projectId}}/logs/bunyan_log_applog" label, but not anything resembling the message object.

Looking at the go-code, it seems it is extracted as body and put into something content, but I don't find this anywhere in Grafana.