Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get metrics from instance group - Health checks #162

Open
dewble opened this issue Jun 10, 2022 · 0 comments
Open

How to get metrics from instance group - Health checks #162

dewble opened this issue Jun 10, 2022 · 0 comments

Comments

@dewble
Copy link

dewble commented Jun 10, 2022

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

  1. 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

  2. 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 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant