问题
I have some alerts set up in Stackdriver to warn me if there are no pull requests for Pub/Sub subscriptions (implying that all my servers are down or broken). However, I noticed these alerts stopped working.
When I pull up the alert in Stackdriver, the Metric is highlighted in red. If I try to set up another alert with the subscription/pull_request_count
metric, it's not listed. The metric is also listed in the Pub/Sub monitoring docs, so I'd expect that it's valid.
How can I get this alert working again, or if for some reason this is no longer valid, is there another way to ensure that there are active subscribers at all times?
回答1:
pubsub.googleapis.com/subscription/pull_request_count
is still the correct name for this metric. The red metric is an indication of missing data. It looks like something is wrong with the underlying data for your project. Can you open a ticket with Google Cloud support and provide your project ID information so we can investigate further? Please reference this Stackoverflow question in your ticket.
来源:https://stackoverflow.com/questions/57486758/why-are-my-stackdriver-google-pub-sub-subscription-pull-request-count-metric-ale