GCP Stackdriver alert on metric not absent - google-cloud-platform

there are some metrics in GCP's Stackdriver like f.e. serviceruntime.googleapis.com/quota/exceeded that appear when there is a problem and are absent (not 0) if there is no more problem.
The problem is I cannot set up alerting to auto-resolve, because when the problem is resolved data for this metric is absent.
How can I set up alerts to auto-resolve with these types of metrics?

Unfortunately, there's no solution at the moment. Google Engineers are aware about this problem. You can join (use +1 mark), comment and follow the feature request at the Google Public Issue Tracker to be updated of any changes.

Related

Exactly once delivery option for a pubsub subscription is not available for some reason

I am unable to select the 'Exactly once delivery' option for my pubsub push subscription. No where on the internet does it explain why it is greyed out. (See below)
Tried finding answeres everywhere, looked into docs as well but no luck.
Looks like they only allow this feature for the 'pull' option.
More information about Cloud Pub/Sub Exactly Once Delivery and Push Subscriptions: https://cloud.google.com/pubsub/docs/exactly-once-delivery#exactly-once_delivery_and_push_subscriptions.

GCP monitoring - disable uptime check

We created an uptime check for our website in Google Cloud Platform:
We don't need the uptime check at the moment, but we might need it again in the future. We saw that there is an option to delete it. However, then we will need to re-create it in the future. Does there exist an option to disable uptime check temporarily and then enable it again when needed?
No.
It's a reasonable need.
There's seemingly no way to "hack" an equivalent to disabled either i.e. by having a zero (never) period or no selectedRegions see UptimeCheckConfig.
Consider filing a feature request on Google's public issue tracker for Monitoring.
The list of issues including uptime

In GCP, I am getting billing in Stack Driver Logging

I haven't changed the retention period of _Default and _Required even though I am getting billing for this.
I have checked in the metrics browser global - Log Bytes ingested resources are:
bigquery_dataset, bigquery_dts_config, bigquery_project, bigquery_resource, build, cloud_composer_environment, cloud_dataproc_cluster, cloud_dataproc_job, cloud_function, cloud_run_revision, cloudsql_database, gce_instance, gce_instance_group, gce_target_pool, gce_bucket, gke_nodepool, http_load_balancer, k8s_cluster, k8s_container, k8s_node, k8s_pod, ml_job, uptime_url
Can anyone help me to trace why billing is coming? Thanks
As John Hanley explains in the comments, Google Cloud Platform charges for logging.
In order to disable logging, you have to:
Go to APIs & Services > Library
In the search bar, enter Stackdriver
Disable the API
NOTE: Is it not recomended to disable the Logging API since it's useful for troubleshoot further problems that you may face in the future.

Do we have a StackStorm pack for gcp?

I was looking for a tool to auto-trigger actions based on certain rules and I came across StackStorm. I mainly want to use it with GCP, like publishing a message in pub/sub or execute certain actions based on certain value changes in datastore.
I see a pack for AWS, but I didn't find anything specifically for GCP in stackstorm exchange. Is there any pack that I can use for GCP?
This was requested in in March 2019 here: https://github.com/GoogleCloudPlatform/magic-modules/issues/1480.
It is still Open with this comment:
Sadly, we don't have enough bandwidth to take this on. If you'd like to submit PRs, we'd be happy to merge them in.

PubSub service having issue?

It seems like api's are timing out when creating subscription for already existing topics. My tests which validate this was working until few minutes back but now they started failing. I am not even able to create subscription using Google's console either.
Though Google's dashboard shows service as working. Anyone else seeing this? I am not sure what else I can do to gather more info.
Yes, we had an issue with error rates higher than expected around that time. The users should have seen 504 errors during the outage. As of 1:30PM, the issue has been resolved, and everything should be back to normal. Sorry about the inconveniences.
We do have SLA. Cloud Pub/Sub SLA is described here:
https://cloud.google.com/pubsub/sla
If you think you're eligible, you can request a refund from that page.
Sorry again for the inconveniences you may have had.