-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
metrics.reporting-period-seconds doesn't works #15435
Comments
Initially reporting-period was fixed for the OpenTelemetry collector (push model, see #14019). I think we need to update the docs as for the Prometheus exporter this has no effect although reporting period ( Now here is why reporting period for Prometheus has no effect. When reporting period is changed in the exporter this is set here: https://github.com/knative/serving/blob/main/vendor/go.opencensus.io/stats/view/worker_commands.go#L178-L185
Now when we create the Prometheus exporter we do use the reader interface but that does not do anything besides being called in order to export all metrics at any given time an http is made eg. Prometheus scraping.
Note: There is an IntervalReader interface that calls ReadAndExport (by default every minute) https://github.com/knative/serving/blob/main/vendor/go.opencensus.io/metric/metricexport/reader.go#L148 but the Prometheus exporter provided by the Opencensus lib does not use it https://github.com/knative/serving/blob/main/vendor/contrib.go.opencensus.io/exporter/prometheus/prometheus.go#L148 and it uses the simple one as it relies on the HTTP call to report metrics. |
This issue is stale because it has been open for 90 days with no |
What version of Knative?
1.14.1
Expected Behavior
https://knative.dev/docs/serving/observability/metrics/collecting-metrics/#understanding-the-collector
https://knative.dev/docs/serving/services/service-metrics/#exposing-queue-proxy-metrics
Per this Article,
I expected each metric is going to report as 30s interval when i set
metrics.reporting-period-seconds
as30s
onconfig-observability
even prometheus scrape time set to
10s
.Actual Behavior
prometheus' value changed on 10s interval, (if config works, value should be change by 30s interval)
even when i set prometheus scrape time to 25s, it's interval goes to 25s.
i restart both deploy autoscaler, activator, it doesn't works.
it looks like
metrics.request-metrics-reporting-period-seconds
doesn't work.Steps to Reproduce the Problem
set config-observability as below
set prometheus,yaml as below
The text was updated successfully, but these errors were encountered: