Interface MetricOptions

    • Method Detail

      • getName

        @Stability(Stable)
        @NotNull
        String getName()
        The name of the metric to scale on.
      • getTarget

        @Stability(Stable)
        @NotNull
        MetricTarget getTarget()
        The target metric value that will trigger scaling.
      • getLabelSelector

        @Stability(Stable)
        @Nullable
        default LabelSelector getLabelSelector()
        A selector to find a metric by label.

        When set, it is passed as an additional parameter to the metrics server for more specific metrics scoping.

        Default: - Just the metric 'name' will be used to gather metrics.