elastic / beats

:tropical_fish: Beats - Lightweight shippers for Elasticsearch & Logstash
https://www.elastic.co/products/beats
Other
12.16k stars 4.92k forks source link

[Metricbeat] Enhancement for stackdriver metricset #18664

Closed kaiyan-sheng closed 4 years ago

kaiyan-sheng commented 4 years ago

This issue is to track enhancements for googlecloud stackdriver metricset:

cc @sorantis Please feel free to add more items. Thank you for the feedback!

elasticmachine commented 4 years ago

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

sorantis commented 4 years ago

something to consider: should the service parameter accept just a service name or full service prefix, i.e. compute.googleapis.com/ vs. compute

kaiyan-sheng commented 4 years ago

Do you know if google cloud metric type will have other prefix than googleapis.com? I also checked the custom monitoring metric names, which are also begin with custom.googleapis.com. If the googleapis.com part is always common among all monitoring metrics, then I think it's better to keep service config parameter to be compute.

sorantis commented 4 years ago

Do you know if google cloud metric type will have other prefix than googleapis.com? I also checked the custom monitoring metric names, which are also begin with custom.googleapis.com. If the googleapis.com part is always common among all monitoring metrics, then I think it's better to keep service config parameter to be compute.

Agreed. In that case it makes sense to keep just the service names.

A larger question. Is stackdriver actually the right name for the metricset? Google is moving away from Stackdriver to Operations (see here). Maybe we should align it before it's gained large adoption.

kaiyan-sheng commented 4 years ago

Regarding to the naming, more specifically, we are using monitoring under Operations/stackdriver in Metricbeat. I thought about renaming stackdriver metricset to monitoring metricset (similar to our azure monitor metricset). But my guess is stackdriver is still the most popular naming convention in users? @sayden What do you think?

sayden commented 4 years ago

I think it's a very good idea. A user will look for a "monitoring solution for google cloud" but not a "stackdriver module" or a "stackdriver monitoring module"

sayden commented 4 years ago

BTW, regarding the list of metrics, I think I read about it here: https://cloud.google.com/monitoring/api/ref_v3/rest/v3/projects.metricDescriptors/list

sorantis commented 4 years ago

+1 I think we should align with the official naming used by google cloud. We can add it as another item to the original list.

kaiyan-sheng commented 4 years ago

@sayden Yes, we are already using metricDescriptors already in the code so it would be leveraging the same API response body or similar. Thanks!!

kaiyan-sheng commented 4 years ago

@sorantis @sayden I'm very bad at naming 😂 I suggest we rename stackdriver metricset to monitoring metricset. WDYT? Or operation metricset?

kaiyan-sheng commented 4 years ago

More thinking about renaming stackdriver metricset:

  1. Operations: this is the official name to replace stackdriver. But it does not seem to be used in GCP portal yet. Enter operations - compute engine showed up but no monitoring Screen Shot 2020-06-15 at 12 29 45 PM

Enter stackdriver - logging, monitoring, debugger, error reporting and profiler showed up

Screen Shot 2020-06-15 at 12 29 30 PM

Enter monitoring - actual monitoring service showed up

Screen Shot 2020-06-15 at 12 29 16 PM
  1. Google Cloud Metrics Documentation is under Operation Suite -> Monitoring:

    Screen Shot 2020-06-15 at 12 36 58 PM
  2. One thing bad about renaming this metricset to monitoring:

    Screen Shot 2020-06-15 at 12 40 23 PM

    monitoring is also a service name under Google Cloud Metrics. We would have a conflict of metricset name if we decide to add this into Metricbeat metricset using light module.

With all above, WDYT about renaming stackdriver to metrics? @sorantis @sayden @exekias

exekias commented 4 years ago

metrics sounds like a good option to me, having that we may end up wanting a monitoring metricset to cover monitoring service metrics

andresrc commented 4 years ago

it seems the second item is also done, can we close this issue?

kaiyan-sheng commented 4 years ago

@andresrc Yes everything is done for this issue. Thanks for checking!