Prometheus Operator makes it easy to install and manage the Prometheus monitoring system.
The application is integrated with Yandex Monitoring as remote storage in Prometheus that can be used for writing and reading metrics via the Remote API.
The Prometheus API functionality is at the Preview stage.
-
Make sure the security groups for the Managed Service for Kubernetes cluster and its node groups are configured correctly. If any rule is missing, add it.
The configuration of security groups determines the performance and availability of the cluster and the services and applications running in it.
-
Create a service account with the monitoring.editor role.
-
Create an API key in JSON format for the service account and save it to the
sa-key.json
file:yc iam api-key create \ --service-account-name=<service_account_name> \ --format=json > sa-key.json
-
Configure Prometheus Operator:
- Namespace: Select a namespace or create a new one.
- Application name: Enter a name for the application.
- Prometheus Workspace: Select the required Prometheus workspace.
- API key: Specify the contents of the
sa-key.json
file you got earlier.
-
Click Install.
-
Wait for the application to change its status to
Deployed
. -
Connect to the Grafana dashboard:
-
Install kubectl and set it up for working with the created cluster.
-
Get the name of the pod with the running Grafana application:
kubectl get pods --namespace <application_namespace> | grep grafana
-
Configure
grafana
service port forwarding to the local computer:kubectl port-forward --namespace <application_namespace> <Grafana_pod_name> 8080:3000
If you close the terminal window or abort the command, the port forwarding will get stopped.
-
In your browser, open the Grafana dashboard at
http://localhost:8080
. -
Sign in using the
admin
username andprom-operator
password.
-
Yandex Cloud technical support is available 24/7. The types of requests you can submit and the appropriate response time depend on your pricing plan. You can switch to the paid support plan in the management console. You can learn more about the technical support terms here.
Helm chart | Version | Pull-command | Documentation |
---|---|---|---|
yandex-cloud/prometheus/kube-prometheus-stack | 57.2.0-1 | Open |
Docker image | Version | Pull-command |
---|---|---|
yandex-cloud/prometheus/alertmanager1712316554672691655549119616571790374214120712141 | v0.27.0 | |
yandex-cloud/prometheus/admission-webhook1712316554672691655549119616571790374214120712141 | v0.72.0 | |
yandex-cloud/prometheus/kube-webhook-certgen1712316554672691655549119616571790374214120712141 | v20221220-controller-v1.5.1-58-g787ea74b6 | |
yandex-cloud/prometheus/prometheus-operator1712316554672691655549119616571790374214120712141 | v0.72.0 | |
yandex-cloud/prometheus/prometheus-config-reloader1712316554672691655549119616571790374214120712141 | v0.72.0 | |
yandex-cloud/prometheus/thanos1712316554672691655549119616571790374214120712141 | v0.34.1 | |
yandex-cloud/prometheus/prometheus1712316554672691655549119616571790374214120712141 | v2.51.0 | |
yandex-cloud/prometheus/thanos1712316554672691655549119616571790374214120712141 | v0.34.1 | |
yandex-cloud/prometheus/grafana1712316554672691655549119616571790374214120712141 | 10.4.0 | |
yandex-cloud/prometheus/bats1712316554672691655549119616571790374214120712141 | v1.4.1 | |
yandex-cloud/prometheus/curl1712316554672691655549119616571790374214120712141 | 7.85.0 | |
yandex-cloud/prometheus/busybox1712316554672691655549119616571790374214120712141 | 1.31.1 | |
yandex-cloud/prometheus/k8s-sidecar1712316554672691655549119616571790374214120712141 | 1.26.1 | |
yandex-cloud/prometheus/kube-state-metrics1712316554672691655549119616571790374214120712141 | v2.11.0 | |
yandex-cloud/prometheus/node-exporter1712316554672691655549119616571790374214120712141 | v1.7.0 |