prometheus-community / prometheus-community/stackdriver_exporter
How to get metrics from instance group - Health checks
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 295
- Forks
- 117
- Avg merge
- 9d 14h
- Merged PRs (30d)
- 7
Description
I need to monitor health checks from instance group when I use Loadbalancer.
I think there are 2 cases to monitor but It is inefficient and not that accurate
-
Create and Use Logs-based Metrics from filter "jsonPayload.healthCheckProbeResult.healthState="UNHEALTHY"
PromQL: stackdriver_global_logging_googleapis_com_log_entry_count
In this case, I could get only count metrics with no label, I didn't tell which LB have health checks problem -
Use logs router to pub/sub and monitoring Topic's Message Storeage
PromQL: stackdriver_pubsub_topic_pubsub_googleapis_com_topic_message_sizes_count
In this case, If there is unhealth message pub/sub get message and I wathced pub/sub Topic's Message Storeage
It also has no label about LB, so I have to create logs router for each LB
Is there other method to monitor health checks from instance group or google cloud metrics for stackdriver-exporter ?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no repository files, tests, or code entry points. Start by reviewing the existing Stackdriver exporter coverage for Google Cloud load balancer and instance-group health-check metrics, alongside the shown logs-based PromQL approaches. Done would require a maintainer-confirmed way to expose health-check status with load-balancer identity, or a documented explanation that this is not available.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, google-cloud, prometheus
- Domain
- cloud, observability
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100