Metrics Provider is an element connecting a Managed Service for Kubernetes cluster object to Yandex Monitoring.
The provider converts a query to fetch external metrics from a Kubernetes cluster object to the required Yandex Monitoring format and also performs the reverse conversion: from Yandex Monitoring to a cluster object.
-
Install the
jq
JSON stream processor:sudo apt update && sudo apt install jq
-
Create a service account with the
monitoring.viewer
role. -
Create a service account key and save it to your local machine:
yc iam key create \ --service-account-id <service account ID> \ --folder-id <folder ID> \ --cloud-id <cloud ID> \ --description metrics-provider \ --format json \ -o key.json
Command result:
{ "id": "<service account key ID>", "service_account_id": "<service account ID>", "created_at": "2022-01-27T03:29:45.139311367Z", "description": "metrics-provider", "key_algorithm": "RSA_2048" }
Save the service account and the service account key IDs: you will use them for subsequent installation steps.
-
Configure the application:
-
Namespace: Select a namespace or create a new one.
-
Application name: Enter an application name.
-
Folder ID: Specify the ID of the folder where Metrics Provider will run.
-
Time window: Specify the time window for which metrics will be collected (in
DdHhMmSs
format, such as5d10h30m20s
). -
(optional) Disable decimation: Select this option not to apply a data decimation function.
-
(optional) Aggregation function: Select a data aggregation function. Default value:
AVG
. -
(optional) Data filling: Select settings to fill in missing data:
NULL
: Returnsnull
as the metric value andtimestamp
as the timestamp value. Default value.NONE
: Returns no values.PREVIOUS
: Returns the value from the previous data point.
-
(optional) Maximum number of points: Specify the maximum number of points that will be returned in response to a request. The value of the parameter must be greater than
10
. -
(optional) Decimation time window: Specify a time window (grid) in milliseconds. Used for decimation: Points inside the window are combined into a single one using the aggregation function. The value of the parameter must be greater than
0
.Note
Select only one of the settings: either Maximum number of points or Decimation time window. Leave both the fields blank not to use either setting. For more information, see the API documentation.
-
Service account private key: Copy the contents of the
key.json
file to this field.
-
-
Click Install.
Yandex Cloud technical support responds to requests 24 hours a day, 7 days a week. The types of requests handled and the relevant response times depend on your pricing plan. You can activate paid support in the Management console. Learn more about requesting technical support.
Helm chart | Version | Pull-command | Documentation |
---|---|---|---|
yandex-cloud/metric-provider/chart/metric-provider | 0.1.11 | Open |
Docker image | Version | Pull-command |
---|---|---|
yandex-cloud/metric-provider/metric-provider1697036612670416070311291854865804993446389160323 | 0.1.7 |