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

[Metricbeat] Add missing snapshot metrics to pubsub metricset in gcp #17154

Closed
kaiyan-sheng opened this issue Mar 20, 2020 · 4 comments
Closed
Assignees
Labels
Metricbeat Metricbeat Team:Platforms Label for the Integrations - Platforms team

Comments

@kaiyan-sheng
Copy link
Contributor

kaiyan-sheng commented Mar 20, 2020

Right now, pubsub metricset is only collecting metrics from API endpoints below:

- "pubsub.googleapis.com/subscription/ack_message_count"
- "pubsub.googleapis.com/subscription/backlog_bytes"
- "pubsub.googleapis.com/subscription/num_outstanding_messages"
- "pubsub.googleapis.com/subscription/num_undelivered_messages"
- "pubsub.googleapis.com/subscription/oldest_unacked_message_age"
- "pubsub.googleapis.com/subscription/pull_ack_message_operation_count"
- "pubsub.googleapis.com/subscription/pull_ack_request_count"
- "pubsub.googleapis.com/subscription/pull_message_operation_count"
- "pubsub.googleapis.com/subscription/pull_request_count"
- "pubsub.googleapis.com/subscription/push_request_count"
- "pubsub.googleapis.com/subscription/push_request_latencies"
- "pubsub.googleapis.com/subscription/sent_message_count"
- "pubsub.googleapis.com/subscription/streaming_pull_ack_message_operation_count"
- "pubsub.googleapis.com/subscription/streaming_pull_ack_request_count"
- "pubsub.googleapis.com/subscription/streaming_pull_message_operation_count"
- "pubsub.googleapis.com/subscription/streaming_pull_response_count"
- "pubsub.googleapis.com/topic/message_sizes"
- "pubsub.googleapis.com/topic/send_message_operation_count"
- "pubsub.googleapis.com/topic/send_request_count"

We are missing all snapshot related metrics for pubsub monitoring as well as part of the topic related. This list needs to be revisited and enriched later as well as https://www.elastic.co/guide/en/beats/metricbeat/master/metricbeat-metricset-googlecloud-pubsub.html.

Dashboard needs to be improved as well after more metrics are added.

@kaiyan-sheng kaiyan-sheng added Metricbeat Metricbeat Team:Platforms Label for the Integrations - Platforms team labels Mar 20, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations-platforms (Team:Platforms)

@sayden
Copy link
Contributor

sayden commented Apr 8, 2020

I'm pretty sure that the metrics that we are missing were in beta when I collected them at first sight so, yes, we must add them if they are now GA.

https://cloud.google.com/monitoring/api/metrics_gcp#gcp-pubsub

@sayden
Copy link
Contributor

sayden commented Apr 8, 2020

Missing metrics are the following:

        - "pubsub.googleapis.com/snapshot/backlog_bytes"
        - "pubsub.googleapis.com/snapshot/backlog_bytes_by_region"
        - "pubsub.googleapis.com/snapshot/config_updates_count"
        - "pubsub.googleapis.com/snapshot/num_messages"
        - "pubsub.googleapis.com/snapshot/num_messages_by_region"
        - "pubsub.googleapis.com/snapshot/oldest_message_age"
        - "pubsub.googleapis.com/subscription/byte_cost"
        - "pubsub.googleapis.com/subscription/config_updates_count"
        - "pubsub.googleapis.com/subscription/dead_letter_message_count"
        - "pubsub.googleapis.com/subscription/mod_ack_deadline_message_count"
        - "pubsub.googleapis.com/subscription/mod_ack_deadline_message_operation_count"
        - "pubsub.googleapis.com/subscription/mod_ack_deadline_request_count"
        - "pubsub.googleapis.com/subscription/oldest_retained_acked_message_age"
        - "pubsub.googleapis.com/subscription/oldest_retained_acked_message_age_by_region"
        - "pubsub.googleapis.com/subscription/oldest_unacked_message_age_by_region"
        - "pubsub.googleapis.com/subscription/retained_acked_bytes"
        - "pubsub.googleapis.com/subscription/retained_acked_bytes_by_region"
        - "pubsub.googleapis.com/subscription/seek_request_count"
        - "pubsub.googleapis.com/subscription/streaming_pull_mod_ack_deadline_message_operation_count"
        - "pubsub.googleapis.com/subscription/streaming_pull_mod_ack_deadline_request_count"
        - "pubsub.googleapis.com/subscription/unacked_bytes_by_region"
        - "pubsub.googleapis.com/topic/byte_cost"
        - "pubsub.googleapis.com/topic/config_updates_count"
        - "pubsub.googleapis.com/topic/oldest_retained_acked_message_age_by_region"
        - "pubsub.googleapis.com/topic/oldest_unacked_message_age_by_region"
        - "pubsub.googleapis.com/topic/retained_acked_bytes_by_region"
        - "pubsub.googleapis.com/topic/unacked_bytes_by_region"

I suggest to curate them before adding as each metric is a linear increase in the cost on API calls.

@kaiyan-sheng
Copy link
Contributor Author

This is done. Thank you for your input @sayden 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Metricbeat Metricbeat Team:Platforms Label for the Integrations - Platforms team
Projects
None yet
Development

No branches or pull requests

4 participants