-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[GCP] Log ListTimeSeries
and AggregatedList
requests duration
#40661
Conversation
This pull request doesn't have a |
This pull request is now in conflicts. Could you fix it? 🙏
|
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
f037090
to
b91514f
Compare
ListTimeSeries
requests durationListTimeSeries
and AggregatedList
requests duration
@@ -124,6 +124,13 @@ func (r *metricsRequester) Metrics(ctx context.Context, serviceName string, alig | |||
} | |||
} | |||
|
|||
start := time.Now() | |||
r.logger.Debug("started ListTimeSeries requests") |
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.
do we still need this debug log here?
Co-authored-by: subham sarkar <sarkar.subhams2@gmail.com>
Co-authored-by: subham sarkar <sarkar.subhams2@gmail.com>
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.
Given minor comments otherwise LGTM!
Co-authored-by: Harnish Chavda <118714680+harnish-elastic@users.noreply.github.com>
Co-authored-by: Harnish Chavda <118714680+harnish-elastic@users.noreply.github.com>
…0661) * log total time taken for ListTimeSeries requests * add changelog entry * fix PR id * log total time taken for AggregatedList request * update changelog entry * remove log * Update x-pack/metricbeat/module/gcp/metrics/compute/metadata.go Co-authored-by: subham sarkar <sarkar.subhams2@gmail.com> * Update x-pack/metricbeat/module/gcp/metrics/metrics_requester.go Co-authored-by: subham sarkar <sarkar.subhams2@gmail.com> * Update x-pack/metricbeat/module/gcp/metrics/compute/metadata.go Co-authored-by: Harnish Chavda <118714680+harnish-elastic@users.noreply.github.com> * Update x-pack/metricbeat/module/gcp/metrics/metrics_requester.go Co-authored-by: Harnish Chavda <118714680+harnish-elastic@users.noreply.github.com> --------- Co-authored-by: subham sarkar <sarkar.subhams2@gmail.com> Co-authored-by: Harnish Chavda <118714680+harnish-elastic@users.noreply.github.com> (cherry picked from commit 3f3e57d)
…0661) (#40846) * log total time taken for ListTimeSeries requests * add changelog entry * fix PR id * log total time taken for AggregatedList request * update changelog entry * remove log * Update x-pack/metricbeat/module/gcp/metrics/compute/metadata.go Co-authored-by: subham sarkar <sarkar.subhams2@gmail.com> * Update x-pack/metricbeat/module/gcp/metrics/metrics_requester.go Co-authored-by: subham sarkar <sarkar.subhams2@gmail.com> * Update x-pack/metricbeat/module/gcp/metrics/compute/metadata.go Co-authored-by: Harnish Chavda <118714680+harnish-elastic@users.noreply.github.com> * Update x-pack/metricbeat/module/gcp/metrics/metrics_requester.go Co-authored-by: Harnish Chavda <118714680+harnish-elastic@users.noreply.github.com> --------- Co-authored-by: subham sarkar <sarkar.subhams2@gmail.com> Co-authored-by: Harnish Chavda <118714680+harnish-elastic@users.noreply.github.com> (cherry picked from commit 3f3e57d) Co-authored-by: Gabriel Pop <94497545+gpop63@users.noreply.github.com>
Overview
Adds a debug log to show the total time taken for all
ListTimeSeries
andAggregatedList
requests. This is useful to understand if it takes more than theperiod
defined in config.Checklist
CHANGELOG.next.asciidoc
orCHANGELOG-developer.next.asciidoc
.Disruptive User Impact
Author's Checklist
How to test this PR locally
Related issues
Use cases
Screenshots
Logs