-
Notifications
You must be signed in to change notification settings - Fork 474
[GCP] Add gcp.metrics input package #4436
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
Conversation
packages/gcp_metrics/manifest.yml
Outdated
multi: false | ||
required: false | ||
show_user: true | ||
- name: region |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure to add regions
too as a setting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this is a new input and we want to remove the region
setting, consider not adding it here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@endorama since region
will be deprecated in other gcp
data streams, should it be deprecated in this package as well or removed entirely?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can remove it entirely, as this is a new package.
Hi @gpop63! Did you try to use this input package and deploy the elastic-agent that use policy with this input package? I am trying to use input package as well, but for some reason I have an issue with dataset and data ingestion. |
type: metrics | ||
title: GCP Metrics | ||
description: GCP Metrics. | ||
input: gcp/metrics |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why here is used /metrics
in the input name? does it work this way?
for example: in https://github.com/elastic/package-spec repo we have an example of input package (sql input) https://github.com/elastic/package-spec/blob/main/test/packages/sql_input/manifest.yml#L20
and here is used input: sql
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've successfully managed to ingest data. However, I don't think the Dataset name
is reflected. The input
field should be the metricset from beats
(I think). I've tried different inputs for this gcp package and somehow gcp/metrics
works.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jsoriano could you help regarding the expected input here?
in sql example is used name of the module. Here used module_name/metricset.
Could you pleas clarify what is correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gcp/metrics
sounds good, if you are trying to use the GCP module of Metricbeat. This input is also used on other packages, like here.
In general, for any input called <module>/metrics
, Elastic Agent is going to use the <module>
module of Metricbeat. These mappings are defined in Elastic Agent specs, specifically for these inputs in Metricbeat here.
in sql example is used name of the module. Here used module_name/metricset.
This is probably an error. Please take this example module with a grain of salt, this was used to test the package spec, but not actually used for real.
metric_types: | ||
{{#each metrics}} | ||
- "{{this}}" | ||
{{/each}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you try to add
data_stream:
dataset: {{data_stream.dataset}}
to see if dataset name will be respected in this case?
packages/gcp_metrics/manifest.yml
Outdated
required: true | ||
show_user: true | ||
owner: | ||
github: elastic/integrations |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please be more specific with the owner, should it be the cloud monitoring team here?
github: elastic/integrations | |
github: elastic/obs-cloud-monitoring |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be elastic/obs-cloud-monitoring
👍
Hi! We just realized that we haven't looked into this PR in a while. We're sorry! We're labeling this issue as |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - do we have any user facing docs in the works to explain why this package has been created? perhaps we could put something in the README here? i'm assuming that once merged this will show up in the kibana UI, and could possibly cause confusion for customers.
I added a package readme 5ad949c, not sure if it's descriptive enough. WDYT? |
@gpop63 I'll rework a bit the README to be more informative, and make clear this is still experimental (also should not show up in Kibana as version is <1.0.0) |
packages/gcp_metrics/docs/README.md
Outdated
@@ -0,0 +1,7 @@ | |||
# GCP Metrics Input |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# GCP Metrics Input | |
# GCP Custom Metrics |
packages/gcp_metrics/docs/README.md
Outdated
@@ -0,0 +1,7 @@ | |||
# GCP Metrics Input | |||
|
|||
The GCP metrics input package can collect metrics for any GCP service. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The GCP metrics input package can collect metrics for any GCP service. | |
The GCP Custom Metrics input package can collect custom metrics for any GCP service. |
packages/gcp_metrics/docs/README.md
Outdated
|
||
A list of metrics and services that are available, can be found in the [GCP Cloud Monitoring API](https://cloud.google.com/monitoring/api/metrics_gcp) official documentation. | ||
|
||
Custom ingest pipelines can be added through the Kibana UI, to get the data in the desired format. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Custom ingest pipelines can be added through the Kibana UI, to get the data in the desired format. | |
This package does not contain any ingest pipeline, so no pre-ingest data processing is applied out of the box. Custom ingest pipelines can be added through the Kibana UI, to get the data in the desired format. |
Package gcp_metrics - 0.0.1 containing this change is available at https://epr.elastic.co/search?package=gcp_metrics |
What does this PR do?
Adds
gcp.metrics
input package.Checklist
changelog.yml
file.Author's Checklist
How to test this PR locally
Related issues
gcp.metrics
beats metricset #4292Screenshots