google-cloud-monitoring

Is it possible to trigger notification (e.g.- for HTTP 500) from Stackdriver log/monitoring?

隐身守侯 提交于 2019-12-11 17:35:28
问题 I have set up Stackdriver logging agents on Google Compute Engine VMs, and collecting logs from apache and some other sources. Is it possible to trigger a notification when a http 500 log is produced? If parsing textPayload for notification is not an option, can it be done by modifying the fluentid configs to send in a specific label when it uploads a matching log? 回答1: I think that a logging metric is your best bet. https://cloud.google.com/logging/docs/logs-based-metrics/charts-and-alerts

Stackdriver custom metric aggregate alerts

为君一笑 提交于 2019-12-08 03:59:44
问题 I'm using Kubernetes on Google Compute Engine and Stackdriver. The Kubernetes metrics show up in Stackdriver as custom metrics. I successfully set up a dashboard with charts that show a few custom metrics such as "node cpu reservation". I can even set up an aggregate mean of all node cpu reservations to see if my total Kubernetes cluster CPU reservation is getting too high. See screenshot. My problem is, I can't seem to set up an alert on the mean of a custom metric. I can set up an alert on