[GCP] Update fields docs and fix inconsistencies after #27974#33006
Merged
endorama merged 10 commits intoelastic:mainfrom Sep 14, 2022
Merged
[GCP] Update fields docs and fix inconsistencies after #27974#33006endorama merged 10 commits intoelastic:mainfrom
endorama merged 10 commits intoelastic:mainfrom
Conversation
After we aligned metrics with Beats naming convention (elastic#27974) the docs has not been adequately updated.
Contributor
b7d5a33 to
f771e0c
Compare
girodav
approved these changes
Sep 7, 2022
kaiyan-sheng
approved these changes
Sep 7, 2022
dedemorton
reviewed
Sep 7, 2022
Contributor
dedemorton
left a comment
There was a problem hiding this comment.
Suggested some fixes to the asciidoc tagging. Let me know if you need help with the list formatting. There are some other tricks I know that aren't covered in the readme.
| Compute metricset to fetch metrics from https://cloud.google.com/compute/[Compute Engine] Virtual Machines in Google Cloud Platform. No Monitoring or Logging agent is required in your instances to use this metricset. | ||
|
|
||
| The `compute` metricset contains all metrics exported from the https://cloud.google.com/monitoring/api/metrics_gcp#gcp-compute[Stackdriver API]. The field names have been left untouched for people already familiar with them. | ||
| The `compute` metricset contains all metrics exported from the https://cloud.google.com/monitoring/api/metrics_gcp#gcp-compute[Stackdriver API]. The field names are aligned to https://www.elastic.co/guide/en/beats/devguide/current/event-conventions.html[Beats naming conventions] with minor modifications to their GCP metrics name counterpart. |
Contributor
There was a problem hiding this comment.
Suggested change
| The `compute` metricset contains all metrics exported from the https://cloud.google.com/monitoring/api/metrics_gcp#gcp-compute[Stackdriver API]. The field names are aligned to https://www.elastic.co/guide/en/beats/devguide/current/event-conventions.html[Beats naming conventions] with minor modifications to their GCP metrics name counterpart. | |
| The `compute` metricset contains all metrics exported from the https://cloud.google.com/monitoring/api/metrics_gcp#gcp-compute[Stackdriver API]. The field names are aligned to {beats-devguide}/event-conventions.html[Beats naming conventions] with minor modifications to their GCP metrics name counterpart. |
Contributor
There was a problem hiding this comment.
avoid hard coding doc paths. Note that the path attributes you can use are defined here: https://github.com/elastic/docs/blob/master/shared/attributes.asciidoc
| === Metrics and labels | ||
| Here is a list of metrics collected by `compute` metricset: | ||
| === Labels | ||
| Here is a list of labels collected by `compute` metricset depending on the type of metric being collected: |
Contributor
There was a problem hiding this comment.
Suggested change
| Here is a list of labels collected by `compute` metricset depending on the type of metric being collected: | |
| Here is a list of labels collected by the `compute` metricset depending on the type of metric being collected: |
dedemorton
reviewed
Sep 7, 2022
dedemorton
reviewed
Sep 7, 2022
Co-authored-by: DeDe Morton <dede.morton@elastic.co>
Co-authored-by: DeDe Morton <dede.morton@elastic.co>
mergify bot
pushed a commit
that referenced
this pull request
Sep 14, 2022
Co-authored-by: DeDe Morton <dede.morton@elastic.co> (cherry picked from commit 923e11f) # Conflicts: # x-pack/metricbeat/module/gcp/dataproc/_meta/docs.asciidoc # x-pack/metricbeat/module/gcp/firestore/_meta/docs.asciidoc
chrisberkhout
pushed a commit
that referenced
this pull request
Jun 1, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Update the wording in different GCP metricsets about metrics name not being changed from their original GCP counterparts, as they have been updated in #27974 to align them with Beats naming conventions.
Remove fields names and description as they are available through
exported fieldssection, which is automatically updated from fields definitions and don't risk being outdated.Why is it important?
Documentation was confusing and not helping users.
Checklist
CHANGELOG.next.asciidocorCHANGELOG-developer.next.asciidoc.Author's Checklist
How to test this PR locally
Related issues
Use cases
Screenshots
Logs