Skip to content

Query Prometheus for average concurrency #2204

Closed

Description

@josephburnett

Current behavior

Currently the autoscaler gets its metrics (average 6 and 60 second concurrency) directly from the queue-proxy.

Desired behavior

Instead we want to query Prometheus for these metrics once they are being collected (#2203).

Example: querying Prometheus for http request counts

"expr": "round(sum(rate(istio_revision_request_count{destination_namespace=\"$namespace\", destination_revision=~\"$revision\", destination_configuration=~\"$configuration\"}[1m])), 0.001)",

(however the query would be consumed by the autoscaler, not the dashboard)

Activity

  1. added
    kind/feature
    on Oct 10, 2018
  2. added this to the milestone on Oct 10, 2018
  3. josephburnett commented on Oct 10, 2018

    @josephburnett
    ContributorAuthor

    Once this query is in place, we can remove the queue-proxy push pipeline.

  4. bbrowning commented on Oct 12, 2018

    @bbrowning
    Contributor

    It came up in the latest Observability working group meeting that we would need to support multiple metrics sources here, such as StackDriver as an alternative to Prometheus. On the metrics publishing side, OpenCensus is used to abstract the specific metrics implementation away. And, I believe this would be the first time anything in the monitoring stack would be on the critical path for Knative functionality. We'd have to worry about scalability and HA concerns of Prometheus.

  5. lvjing2 commented on Oct 19, 2018

    @lvjing2
    Contributor

    And if we can use the metric from prometheus, then we can also remove the websocket connect to autoscaler in activator.

  6. josephburnett commented on Jan 14, 2019

    @josephburnett
    ContributorAuthor

    We will be scraping the metrics directly (#2203), so as to not take on a Prometheus dependency for autoscaling.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/autoscalekind/feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions