Documentation ¶
Index ¶
Constants ¶
const ( AggregateFunctionAvg = "_agg_avg" AggregateFunctionMax = "_agg_max" AggregateFunctionMin = "_agg_min" AggregateFunctionP99 = "_agg_p99" AggregateFunctionP95 = "_agg_p95" AggregateFunctionP90 = "_agg_p90" AggregateFunctionLatest = "_agg_latest" )
aggregated functions that'd supported by katalyst now, and client should add those as suffix in metric-name when referring to kcmas. for instance, `pod_cpu_load_1min_agg_max` means to return a single metric item to represent the max value of all collected items, and we will put the corresponding time-window in response.
const MetricSelectorKeyGroupBy = "groupBy"
MetricSelectorKeyGroupBy is the key of groupBy in metric selector. It's value should be a set of the real metric selector keys which will be used to group the metrics. MetricSelectorKeyGroupBy should only be used in aggregated metrics. For example, if we want to get the max cpu load of each container,we can query the `pod_cpu_load_1min_agg_max` with following metric selector: `groupBy=container`.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package external defines the customized metric names related-to none-k8s objects, those metrics are stored (and also can be referred) by custom metrics api-server provided by katalyst.
|
Package external defines the customized metric names related-to none-k8s objects, those metrics are stored (and also can be referred) by custom metrics api-server provided by katalyst. |
Package node defines the customized metric names related-to k8s-node objects, those metrics are stored (and also can be referred) by custom metrics api-server provided by katalyst.
|
Package node defines the customized metric names related-to k8s-node objects, those metrics are stored (and also can be referred) by custom metrics api-server provided by katalyst. |
Package pod defines the customized metric names related-to k8s-pod objects, those metrics are stored (and also can be referred) by custom metrics api-server provided by katalyst.
|
Package pod defines the customized metric names related-to k8s-pod objects, those metrics are stored (and also can be referred) by custom metrics api-server provided by katalyst. |