{"id":326184,"date":"2021-07-08T21:00:07","date_gmt":"2021-07-08T21:00:07","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=326184"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=326184","title":{"rendered":"\u041c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 Openshift 4.x \u0447\u0435\u0440\u0435\u0437 Zabbix"},"content":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<p>\u0421\u0435\u0433\u043e\u0434\u043d\u044f \u043c\u044b \u043f\u043e\u043a\u0430\u0436\u0435\u043c, \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 OpenShift \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0432\u043d\u0435\u0448\u043d\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 <a href=\"https:\/\/www.zabbix.com\/\">Zabbix<\/a>. \u0410 \u0442\u0430\u043a\u0436\u0435, \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438 \u044d\u0442\u043e\u043c Prometheus, \u0438\u043d\u0430\u0447\u0435 \u0433\u043e\u0432\u043e\u0440\u044f, \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c Prometheus-\u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u043f\u043e \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0443 OpenShift, \u0437\u0430\u0442\u0435\u043c \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0445 \u0432 Zabbix \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0439 \u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0442\u0430\u043c \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u044b, \u0441\u0432\u043e\u0435\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0438\u043d\u0444\u043e\u0440\u043c\u0438\u0440\u0443\u044e\u0449\u0438\u0435 \u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u0445.<\/p>\n<h2>\u041c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b Openshift 4.x \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Zabbix Operator<\/h2>\n<p>\u0414\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0430\u0433\u0435\u043d\u0442\u043e\u0432 Zabbix \u043d\u0430 \u043a\u043b\u0430\u0441\u0442\u0435\u0440 Openshift Cluster \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <a href=\"https:\/\/catalog.redhat.com\/software\/operators\/detail\/5e98728c2989e6a90307acda\">\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 Zabbix<\/a>. \u0417\u0430\u0442\u0435\u043c \u0441\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0443\u0435\u043c \u0438\u0445 \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u043e\u043d\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u043b\u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 Zabbix Server, \u043a\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043d\u0430 \u0441\u0445\u0435\u043c\u0435 \u043d\u0438\u0436\u0435.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/228\/2ae\/98e\/2282ae98e26d7b5fbdfb408964fda960.png\" width=\"711\" height=\"334\"><figcaption><\/figcaption><\/figure>\n<h3>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Zabbix Server<\/h3>\n<p>\u25cf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u043e\u0431\u043d\u043e\u0432\u0438\u043c \u0441\u0435\u0440\u0432\u0435\u0440 \u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043c httpd:<\/p>\n<pre><code>$ dnf update -y &amp;&amp; dnf install @httpd -y $ sed -i 's\/^SELINUX=.*\/SELINUX=permissive\/g' \/etc\/selinux\/config $ systemctl enable --now httpd $ systemctl status httpd<\/code><\/pre>\n<p>\u25cf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u0417\u0430\u0442\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u0421\u0423\u0411\u0414 MariaDB:<\/p>\n<pre><code>$ dnf -y install mariadb mariadb-server $ systemctl start mariadb $ mysql -u root -e \"CREATE DATABASE zabbix character set utf8 collate utf8_bin;\" $ mysql -u root -e \"GRANT ALL PRIVILEGES ON zabbix.* TO zabbix@'localhost' IDENTIFIED BY 'StrongPassword';\" $ mysqladmin flush-privileges Note: If the database server is separate from the zabbix server, replace localhost with the zabbix server IP, example:  zabbix@'1.2.3.4 '<\/code><\/pre>\n<p>\u25cf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u0442\u0430\u0432\u0438\u043c \u0441\u0430\u043c Zabbix Server:<\/p>\n<pre><code># Install zabbix repository $ dnf -y install https:\/\/repo.zabbix.com\/zabbix\/5.0\/rhel\/8\/x86_64\/zabbix-release-5.0-1.el8.noarch.rpm # Install packages needed $ dnf -y install zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-agent # Restore database schema $ zcat \/usr\/share\/doc\/zabbix-server-mysql*\/create.sql.gz | mysql -u zabbix -p zabbix # Adjust the database parameters $ vim \/etc\/zabbix\/zabbix_server.conf # Parameters DBName=zabbix DBUser=zabbix DBPassword=StrongPassword # Adjust timezone if necessary $ vim \/etc\/php-fpm.d\/zabbix.conf # Parameters php_value[date.timezone] = America\/Sao_Paulo # Adjust php.ini $ vim \/etc\/php.ini # Parameters   memory_limit 128M   upload_max_filesize 8M    post_max_size 16M   max_execution_time 300   max_input_time 300   max_input_vars 10000 # Restart and Enable Services $ systemctl restart zabbix-server zabbix-agent httpd php-fpm mariadb $ systemctl enable zabbix-server zabbix-agent httpd php-fpm mariadb # Now we will access our graphical interface to complete the installation process, go to: http:\/\/&lt;&lt; IP ADDRESS or FQDN &gt;&gt;\/zabbix # In the welcome screen, click Next step<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/0f0\/0dd\/957\/0f00dd957b3b16e90fb9e4b268696281.png\" width=\"623\" height=\"397\"><figcaption><\/figcaption><\/figure>\n<p>\u0423\u0434\u043e\u0441\u0442\u043e\u0432\u0435\u0440\u0438\u043c\u0441\u044f, \u0447\u0442\u043e \u0432\u0441\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u043d\u0430\u043b\u0438\u0447\u0438\u0438 , \u0438 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c Next:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ac3\/c73\/7c9\/ac3c737c9b10c2ace8b9f08aac745629.png\" width=\"624\" height=\"393\"><figcaption><\/figcaption><\/figure>\n<p>\u0412\u0432\u043e\u0434\u0438\u043c \u0443\u0447\u0435\u0442\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a \u0411\u0414 \u0438 \u0436\u043c\u0435\u043c Next:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/7fd\/0cc\/511\/7fd0cc511fb54a453e4b9b88f54c5cb6.png\" width=\"623\" height=\"393\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u043e\u043b\u0435 Name \u043c\u043e\u0436\u043d\u043e \u043d\u0435 \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0442\u044c. \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u0438 \u0436\u043c\u0435\u043c Next:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/02a\/03c\/210\/02a03c2104407c1793f982ba16b8cbd5.png\" width=\"624\" height=\"395\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0435\u0440\u0435\u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c Next, \u0430 \u0437\u0430\u0442\u0435\u043c Finish:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/78c\/57e\/869\/78c57e86932bfacd6971c0b4bcc14a9f.png\" width=\"624\" height=\"400\"><figcaption><\/figcaption><\/figure>\n<h3>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Zabbix Server<\/h3>\n<p>\u041b\u043e\u0433\u0438\u043d\u0438\u043c\u0441\u044f, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0443\u0447\u0435\u0442\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435:<\/p>\n<pre><code>Username: Admin Password: zabbix<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/785\/4e4\/a53\/7854e4a53292518a9c4549af62f1ac34.png\" width=\"529\" height=\"458\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0430\u0440\u043e\u043b\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f Admin, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u043b\u0443\u0447\u0448\u0435 \u0437\u0430\u0442\u0435\u043c \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c.<\/p>\n<p>\u0418\u0442\u0430\u043a, \u043c\u044b \u0432\u043e\u0448\u043b\u0438 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0438 \u0432\u0438\u0434\u0438\u043c \u0434\u0430\u0448\u0431\u043e\u0440\u0434 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f11\/ae0\/36a\/f11ae036a84da3e36821fc4b18da7b59.png\" width=\"624\" height=\"347\"><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0433\u0440\u0443\u043f\u043f\u0443 \u0445\u043e\u0441\u0442\u043e\u0432 \u0434\u043b\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 Openshift:<\/p>\n<p>\u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c Configuration &gt; Host Groups &gt; Create host group, \u0432\u0432\u043e\u0434\u0438\u043c \u0438\u043c\u044f \u0433\u0440\u0443\u043f\u043f\u044b \u0438 \u0436\u043c\u0435\u043c Add:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d3a\/a28\/f2a\/d3aa28f2a0b844806b38db51b8967720.png\" width=\"623\" height=\"356\"><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u0441\u0430\u043c\u043e\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044e \u0430\u0433\u0435\u043d\u0442\u043e\u0432, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0448\u0438 \u043d\u043e\u0434\u044b \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u0432 zabbix \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0449\u0435\u043b\u043a\u0430\u0435\u043c \u0432 \u0431\u043e\u043a\u043e\u0432\u043e\u043c \u043c\u0435\u043d\u044e Configuration &gt; Actions, \u0437\u0430\u0442\u0435\u043c \u0432 \u0440\u0430\u0441\u043a\u0440\u044b\u0432\u0430\u044e\u0449\u0435\u043c\u0441\u044f \u0441\u043f\u0438\u0441\u043a\u0435 \u0432\u0432\u0435\u0440\u0445\u0443 \u0432\u043a\u043b\u0430\u0434\u043a\u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c Autoregistrion actions \u0438 \u0449\u0435\u043b\u043a\u0430\u0435\u043c Create action:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/5c8\/3c3\/91f\/5c83c391fdaf342132242cf3913e8301.png\" width=\"623\" height=\"217\"><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c action, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0438 \u0437\u0430\u0442\u0435\u043c \u0436\u043c\u0435\u043c Add:<\/p>\n<pre><code>Type: Host metadata Operator: contains Value: Linux<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/75b\/10b\/4a0\/75b10b4a030e834d228ead50543277f5.png\" width=\"623\" height=\"361\"><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0430 \u0432\u043a\u043b\u0430\u0434\u043a\u0435 Operations \u0449\u0435\u043b\u043a\u0430\u0435\u043c Add \u0438 \u0432\u0432\u043e\u0434\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438:<\/p>\n<pre><code>Operation type: Add to host group Host groups:  Name of Host Group<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/495\/196\/66b\/49519666b4c8bf6a336642a21b58c8da.png\" width=\"623\" height=\"367\"><figcaption><\/figcaption><\/figure>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u043e\u0432\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438:<\/p>\n<pre><code>Operation type: Link to template Templates: Template OS Linux by Zabbix agent active<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e63\/93b\/cc1\/e6393bcc1da476c7f0862003bb68429c.png\" width=\"624\" height=\"371\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0442\u0430\u043a\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u043d\u043e\u0432\u044b\u0439 \u0430\u0433\u0435\u043d\u0442 \u0431\u0443\u0434\u0443\u0442 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u0433\u0440\u0443\u043f\u043f\u0435 \u00abOpenShift Cluster\u00bb \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0448\u0430\u0431\u043b\u043e\u043d \u00abTemplate OS Linux by Zabbix agent active\u00bb.<\/p>\n<h3>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Zabbix Operator<\/h3>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c Zabbix Operator \u043d\u0430 Openshift.<\/p>\n<p>\u0412 OperatorHub \u0438\u0449\u0435\u043c \u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c Zabbix, \u0430 \u0437\u0430\u0442\u0435\u043c \u0449\u0435\u043b\u043a\u0430\u0435\u043c Install:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/e71\/a69\/76c\/e71a6976c45187f3562f5c07c52231c4.png\" width=\"624\" height=\"360\"><figcaption><\/figcaption><\/figure>\n<p>\u0415\u0449\u0435 \u0440\u0430\u0437 \u0449\u0435\u043b\u043a\u0430\u0435\u043c Install:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/bd9\/3c9\/6d6\/bd93c96d6711fbbf39a9d482efc45339.png\" width=\"623\" height=\"365\"><figcaption><\/figcaption><\/figure>\n<p>\u0414\u043e\u0436\u0438\u0434\u0430\u0435\u043c\u0441\u044f \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0438 \u0449\u0435\u043b\u043a\u0430\u0435\u043c \u0438\u043c\u044f Zabbix Operator:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b76\/8ad\/a7d\/b768ada7d1043c0982dbc4106b4b4feb.png\" width=\"623\" height=\"169\"><figcaption><\/figcaption><\/figure>\n<p>\u0418\u0449\u0435\u043c \u0432\u043a\u043b\u0430\u0434\u043a\u0443 Zabbix Agent, \u0449\u0435\u043b\u043a\u0430\u0435\u043c \u0442\u0430\u043c Create ZabbixAgent &gt; Select YAML View, \u0437\u0430\u0434\u0430\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0435 \u043d\u0438\u0436\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0438 \u0436\u043c\u0435\u043c Create:<\/p>\n<pre><code>metadata_item: 'system.uname' server_host:  &lt;IP or FQDN Zabbix Server&gt;<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/394\/197\/612\/394197612ebb0ee04280521338cac679.png\" width=\"623\" height=\"348\"><figcaption><\/figcaption><\/figure>\n<h3>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Zabbix Operator<\/h3>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 Zabbix \u0449\u0435\u043b\u043a\u0430\u0435\u043c Daemonset &gt;&nbsp; zabbix-agent &gt;&nbsp; Tolerations&nbsp;\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c Toleration \u0441 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u043c\u0438 \u043d\u0438\u0436\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u043e\u0434\u044b \u043d\u0430 master-\u043d\u043e\u0434\u0430\u0445:<\/p>\n<pre><code>KEY: node-role.kubernetes.io\/master OPERATOR: Exists EFFECT: NoSchedule<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/96e\/141\/d44\/96e141d44c5294bf88a8cc48a666b5a6.png\" width=\"623\" height=\"373\"><figcaption><\/figcaption><\/figure>\n<p>\u041a\u0430\u043a \u0432\u0438\u0434\u0438\u043c, daemonset \u0441\u043c\u0430\u0441\u0448\u0438\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f \u0434\u043e 5 \u043f\u043e\u0434\u043e\u0432 (3 master-\u0430 \u0438 2 worker-\u0430)<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/aed\/75e\/df7\/aed75edf7ed7138e68159bd92db777df.png\" width=\"624\" height=\"376\"><figcaption><\/figcaption><\/figure>\n<p>\u0417\u0430\u043f\u0440\u043e\u0441\u0438\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u0434\u043e\u0432, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0438\u043c\u0435\u043d\u0430 \u0438 \u0441\u0442\u0430\u0442\u0443\u0441:<\/p>\n<pre><code>oc get pods -o wide -n zabbix<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/7ae\/849\/627\/7ae84962720c41cd5fce18d2ccd44ff3.png\" width=\"619\" height=\"85\"><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 Zabbix \u0438\u0434\u0435\u043c \u0432 Configuration &gt; Hosts.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0441\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0442\u043e \u0443\u0432\u0438\u0434\u0438\u043c \u0437\u0434\u0435\u0441\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0445 \u0445\u043e\u0441\u0442\u043e\u0432:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/289\/a14\/e33\/289a14e331d8cbdefc3a73579d346a1f.png\" width=\"623\" height=\"317\"><figcaption><\/figcaption><\/figure>\n<p>\u0414\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0441\u0442\u0438 \u0449\u0435\u043b\u043a\u043d\u0435\u043c \u0438\u043c\u044f \u0445\u043e\u0441\u0442\u0430 \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043a OpenShift-\u0438\u043c\u0435\u043d\u0438 (\u043f\u043e\u043b\u0435 Host name) \u0435\u0449\u0435 \u0438 \u043f\u043e\u043d\u044f\u0442\u043d\u043e\u0435 \u0438\u043c\u044f \u0432 \u043f\u043e\u043b\u0435 Visible name, \u0430 \u0437\u0430\u0442\u0435\u043c \u043d\u0430\u0436\u043c\u0435\u043c Update:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b4c\/08c\/176\/b4c08c1769524f21a6eb1c9a19e6dd9e.png\" width=\"622\" height=\"329\"><figcaption><\/figcaption><\/figure>\n<p>\u0427\u0442\u043e\u0431\u044b \u043f\u043e\u043d\u044f\u0442\u044c, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0442 \u043b\u0438 \u0443\u0436\u0435 \u043d\u0430\u0448\u0438 \u0445\u043e\u0441\u0442\u044b \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 Zabbix Server, \u0449\u0435\u043b\u043a\u043d\u0435\u043c Monitoring &gt; Latest data.<\/p>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u044d\u043a\u0440\u0430\u043d\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u0441\u043f\u0438\u0441\u043e\u043a \u0443\u0436\u0435 \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u0441\u0431\u043e\u0440\u0430 \u0434\u0430\u043d\u043d\u044b\u0445:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/51a\/3bf\/5ab\/51a3bf5abf2f3b8512565330a1030f4f.png\" width=\"624\" height=\"319\"><figcaption><\/figcaption><\/figure>\n<p>\u0418\u0442\u0430\u043a, \u0442\u0435\u043f\u0435\u0440\u044c Zabbix \u0432\u0435\u0434\u0435\u0442 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u043d\u0430\u0448\u0435\u0433\u043e \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ccf\/263\/ff9\/ccf263ff93e89234ed22a02f6f109b4a.png\" width=\"623\" height=\"188\"><figcaption><\/figcaption><\/figure>\n<p>\u0430\u043a, \u043c\u044b \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0438, \u043a\u0430\u043a \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u0442\u044c \u043d\u0435\u0438\u0437\u043c\u0435\u043d\u043d\u0443\u044e \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 Openshift \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Zabbix Operator. \u0421\u043e\u0431\u0438\u0440\u0430\u044f \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044e \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 (cpu, \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0430, \u043f\u0430\u043c\u044f\u0442\u044c, \u0441\u0435\u0442\u044c, \u0434\u0438\u0441\u043a\u043e\u0432\u043e\u0435 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e), \u0437\u0430\u0442\u0435\u043c \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u044f \u0438 \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u043f\u043e\u0440\u043e\u0433\u0438 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0439, \u0447\u0442\u043e\u0431\u044b \u0443\u043f\u0440\u0435\u0436\u0434\u0430\u0442\u044c \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u0435 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u0441 \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c\u0438.<\/p>\n<h2>\u041c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 Openshift 4.x \u0447\u0435\u0440\u0435\u0437 Zabbix \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c Prometheus<\/h2>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u043a\u0430\u0436\u0435\u043c, \u043a\u0430\u043a \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u0442\u044c \u043a\u043b\u0430\u0441\u0442\u0435\u0440 Openshift \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Zabbix \u0438 Prometheus, \u0442\u043e \u0435\u0441\u0442\u044c \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c Prometheus-\u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u043f\u043e \u043d\u0430\u0448\u0435\u043c\u0443 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0443 OpenShift, \u0437\u0430\u0442\u0435\u043c \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0445 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0439 \u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u044b, \u0441\u0432\u043e\u0435\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0438\u043d\u0444\u043e\u0440\u043c\u0438\u0440\u0443\u044e\u0449\u0438\u0435 \u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u0445.<\/p>\n<p>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 Zabbix:<\/p>\n<ul>\n<li>\n<p><strong>http agent<\/strong> \u2013 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u0441\u0431\u043e\u0440 \u043d\u0430\u0448\u0438\u0445 \u043c\u0435\u0442\u0440\u0438\u043a.<\/p>\n<\/li>\n<li>\n<p><strong>LLD<\/strong> (low level discovery) \u2013 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0438 \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u044b.<\/p>\n<\/li>\n<\/ul>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0442\u0438\u043f\u0430 http agent, \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u043a\u043e\u043d\u0435\u0447\u043d\u0430\u044f \u0442\u043e\u0447\u043a\u0430\/metrics, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u0446\u0435\u043b\u0435\u0432\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430 Prometheus (target list) \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u044d\u0442\u0438 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 \\metric \u0432 \u0432\u044b\u0432\u043e\u0434\u0435 Zabbix.<\/p>\n<p>\u0417\u0430\u0442\u0435\u043c, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f LLD, \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043f\u0430\u0440\u0441\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u0432\u044b\u0432\u043e\u0434, \u043f\u043e\u0442\u043e\u043c \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0438 \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u0442\u044c \u043c\u0435\u0442\u0440\u0438\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0442, \u0438 \u043d\u0430\u043a\u043e\u043d\u0435\u0446, \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0438 \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u043e\u0432.<\/p>\n<p>\u0418\u0442\u0430\u043a, \u043d\u0430\u0447\u043d\u0435\u043c.<\/p>\n<p>1.&nbsp;\u0411\u0435\u0440\u0435\u043c Prometheus-\u043e\u0432\u0441\u043a\u0438\u0439 url \u0438 \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u043c\u0441\u044f \u043a context\/targets, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u043a\u0430\u043a\u0438\u0435 \u0446\u0435\u043b\u0438 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Zabbix:<\/p>\n<pre><code>oc get routes -n openshift-monitoring | grep prometheus-k8s<\/code><\/pre>\n<p>2. \u0418\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0432 Prometheus-\u043e\u0432\u0441\u043a\u0438\u0439 url, \u0437\u0430\u0445\u043e\u0434\u0438\u043c \u0447\u0435\u0440\u0435\u0437 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0438 \u0438\u0449\u0435\u043c \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0435 \u0442\u043e\u0447\u043a\u0438 \u043f\u043e IP-\u0430\u0434\u0440\u0435\u0441\u0430\u043c \u0432 \u0442\u043e\u043c \u0436\u0435 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435, \u0447\u0442\u043e \u0438 \u043d\u043e\u0434\u044b openshift, \u0432 \u043d\u0430\u0448\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u044d\u0442\u043e 10.36.250.x:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/af6\/96c\/a00\/af696ca00c92ad972621197b1400fc26.png\" width=\"750\" height=\"202\"><figcaption><\/figcaption><\/figure>\n<p>\u0417\u0434\u0435\u0441\u044c \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u0442\u044c \u0441\u0442\u0430\u0442\u0443\u0441 Cluster Operators, \u0434\u043b\u044f \u0447\u0435\u0433\u043e \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u043e\u0442 \u044d\u0442\u0443 \u043a\u043e\u043d\u0435\u0447\u043d\u0443\u044e \u0442\u043e\u0447\u043a\u0443:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/8b7\/f62\/43d\/8b7f6243df25cc17dc6780d0db7e35c1.png\" width=\"748\" height=\"145\"><figcaption><\/figcaption><\/figure>\n<p>3.<strong>&nbsp;<\/strong>\u041f\u0440\u0438 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0438 \u043a url \u0446\u0435\u043b\u0435\u0432\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 cluster-operator-version \u0432\u0438\u0434\u0438\u043c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0435\u0442\u0440\u0438\u043a, \u043e\u0442\u043d\u043e\u0441\u044f\u0449\u0438\u0445\u0441\u044f \u043a \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430\u043c. \u041d\u043e \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043c\u0435\u0442\u0440\u0438\u043a\u0443 cluster_operator_up, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u044b\u0434\u0430\u0435\u0442 <strong>1<\/strong>, \u043a\u043e\u0433\u0434\u0430 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435, \u0438 <strong>0<\/strong>, \u043a\u043e\u0433\u0434\u0430 \u0435\u0441\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c5f\/daf\/f16\/c5fdaff16ac8aeda6586004d40121a08.png\" width=\"812\" height=\"535\"><figcaption><\/figcaption><\/figure>\n<p>4.<strong>&nbsp;<\/strong>\u0412 Zabbix \u0438\u0434\u0435\u043c \u0432 <em>Configuration &gt; Host &gt; Create Host<\/em> \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u0445\u043e\u0441\u0442, \u0437\u0430\u0434\u0430\u0435\u043c \u0434\u043b\u044f \u043d\u0435\u0433\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u043e\u0435 \u0438\u043c\u044f, \u0437\u0430\u0442\u0435\u043c \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0434\u043b\u044f \u043d\u0435\u0433\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0443\u044e \u0433\u0440\u0443\u043f\u043f\u0443 \u0438 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c Add:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/dd6\/c4b\/3fb\/dd6c4b3fb4459dad2338708a3310b694.png\" width=\"750\" height=\"391\"><figcaption><\/figcaption><\/figure>\n<p>5. \u0422\u0435\u043f\u0435\u0440\u044c \u0449\u0435\u043b\u043a\u0430\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0445\u043e\u0441\u0442, \u0437\u0430\u0442\u0435\u043c \u0449\u0435\u043b\u043a\u0430\u0435\u043c <em>Items &gt; Create Item<\/em>, \u0437\u0430\u0434\u0430\u0435\u043c \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0435 \u043d\u0438\u0436\u0435 \u043f\u043e\u043b\u044f \u0438 \u0436\u043c\u0435\u043c Add:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p><strong>\u041f\u043e\u043b\u0435<\/strong><\/p>\n<\/td>\n<td>\n<p><strong>\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Name<\/p>\n<\/td>\n<td>\n<p>Prometheus Metrics Operators<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Type<\/p>\n<\/td>\n<td>\n<p>HTTP agent<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Key<\/p>\n<\/td>\n<td>\n<p>prom_operators<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>URL<\/p>\n<\/td>\n<td>\n<p>https:\/\/{{ IP ADDRESS   }}:9099\/metrics<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Request type<\/p>\n<\/td>\n<td>\n<p>GET<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Request body type<\/p>\n<\/td>\n<td>\n<p>Raw data<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Type of Information<\/p>\n<\/td>\n<td>\n<p>Text<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Update Interval<\/p>\n<\/td>\n<td>\n<p>30s<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p><em>\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u044f Name, Key \u0438 Update Interval \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c.<\/em><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/957\/ed6\/18d\/957ed618dc35336128af95d385095f24.png\" width=\"750\" height=\"588\"><figcaption><\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>6. \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u043e Discovery rule, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0434\u0435\u043c \u0432 <em>Configuration &gt; Hosts &gt; \u0449\u0435\u043b\u043a\u0430\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0432\u044b\u0448\u0435 \u0445\u043e\u0441\u0442 &gt; Discovery rules &gt; Create discovery rule<\/em><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b50\/f3d\/58a\/b50f3d58ab84b03506e8f1dc5e82eda9.png\" width=\"749\" height=\"346\"><figcaption><\/figcaption><\/figure>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p><strong>\u041f\u043e\u043b\u0435<\/strong><\/p>\n<\/td>\n<td>\n<p><strong>\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Name<\/p>\n<\/td>\n<td>\n<p>LLD Cluster Operator Up<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Type<\/p>\n<\/td>\n<td>\n<p>Dependent item<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Key<\/p>\n<\/td>\n<td>\n<p>lld.co.sts<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Master item<\/p>\n<\/td>\n<td>\n<p>Prometheus Metrics Operators<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0412 \u043f\u043e\u043b\u0435 <strong><em>Name<\/em><\/strong> \u0437\u0430\u0434\u0430\u0435\u043c \u043f\u043e\u043d\u044f\u0442\u043d\u043e\u0435 \u0438\u043c\u044f, \u0432 \u043f\u043e\u043b\u0435 Type \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c<strong>&nbsp;<em>Dependent item<\/em><\/strong><em>,<\/em> \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u044d\u0442\u043e\u0442 LLD \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043d\u0430\u0448\u0435\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 <strong><em>http agent<\/em>,<\/strong> \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043d\u0430 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c \u0448\u0430\u0433\u0435. \u0412 <strong>Master item<\/strong>, \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043d\u0430\u0448\u0443 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044e <strong><em>Prometheus Metrics Operators<\/em><\/strong><\/p>\n<p>7.<strong>&nbsp;<\/strong>\u041d\u0430 \u044d\u0442\u043e\u043c \u0436\u0435 \u044d\u043a\u0440\u0430\u043d\u0435 \u0449\u0435\u043b\u043a\u0430\u0435\u043c <em>Preprocessing<\/em><u>,<\/u> \u0437\u0430\u0442\u0435\u043c Add, \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c <em>Prometheus to JSON<\/em> \u0438 \u0432 \u043f\u043e\u043b\u0435 Parameters \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043e\u0434\u043d\u0443 \u0438\u0437 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0445\u043e\u0442\u0438\u043c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code>cluster_operator_up {name = \"authentication\", version = \"4.7.3\"}<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u044f, \u0442\u043e \u043c\u0435\u043d\u044f\u0435\u043c Name \u0438 Version \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<pre><code>cluster_operator_up{name=~\".*\",version=~\".*\"}<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f9b\/253\/fab\/f9b253fab476ebd01fcdfd4413a84f5e.png\" width=\"745\" height=\"103\"><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u0448\u0430\u0433\u0435 \u043d\u0430\u0448\u0430 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044f \u043c\u0435\u0442\u0440\u0438\u043a, \u0437\u0430\u0434\u0430\u043d\u043d\u0430\u044f \u043a\u0430\u043a plain text, \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0430 \u0432 json. \u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0438 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u044b\u0435 \u043f\u043e\u043b\u044f, \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u043e\u043f\u0446\u0438\u0435\u0439 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f:<\/p>\n<p>\u0429\u0435\u043b\u043a\u0430\u0435\u043c \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043d\u0443\u044e \u0441\u043f\u0440\u0430\u0432\u0430 \u043d\u0430\u0434\u043f\u0438\u0441\u044c <em>Test<\/em>, \u0432 \u043f\u043e\u043b\u0435 <em>Value<\/em> \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u043a\u0430\u043a\u0443\u044e-\u043d\u0438\u0431\u0443\u0434\u044c \u043c\u0435\u0442\u0440\u0438\u043a\u0443 \u0438\u0437 \u0442\u0435\u0445, \u0447\u0442\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0442\u0441\u044f \u0432 Prometheus, \u0437\u0430\u0442\u0435\u043c \u0449\u0435\u043b\u043a\u0430\u0435\u043c Test \u0438 \u043f\u043e\u0442\u043e\u043c \u0449\u0435\u043b\u043a\u0430\u0435\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043d\u0430\u0448\u0443 \u043c\u0435\u0442\u0440\u0438\u043a\u0443 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 json. \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u0437\u043d\u0430\u0435\u043c, \u043a\u0430\u043a\u0438\u0435 \u043f\u043e\u043b\u044f \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u043c \u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 (mapping) \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0448\u0430\u0433\u0435.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c8b\/cbe\/eb4\/c8bcbeeb42265efe95ab091d0662eafb.png\" width=\"749\" height=\"243\"><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0430\u0448\u0430 \u043c\u0435\u0442\u0440\u0438\u043a\u0430 \u0438\u043c\u0435\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 json:<\/p>\n<pre><code>[    {       \"name\":\"cluster_operator_up\",       \"value\":\"1\",       \"line_raw\":\"cluster_operator_up{name=\\\"authentication\\\",version=\\\"4.7.3\\\"} 1\",       \"labels\":{          \"name\":\"authentication\",          \"version\":\"4.7.3\"       },       \"type\":\"untyped\"    } ]<\/code><\/pre>\n<p>8.<strong>&nbsp;<\/strong>\u0422\u0435\u043f\u0435\u0440\u044c \u0449\u0435\u043b\u043a\u0430\u0435\u043c <em>LLD macros<\/em>. \u041d\u0430 \u044d\u0442\u043e\u043c \u0448\u0430\u0433\u0435 \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043c \u043f\u043e\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e json-\u0430 \u0438 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043c\u0430\u043a\u0440\u043e\u0441\u044b, \u0442\u043e \u0435\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0434\u043b\u044f Zabbix. \u0418\u043c\u0435\u043d\u0430, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u0432 \u0441\u0442\u043e\u043b\u0431\u0446\u0435 LLD macro, \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c, \u0432\u0441\u0435\u0433\u0434\u0430 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442 <strong>{#NAME}<\/strong>. JSONPath \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u043d\u0430\u0448\u0438\u043c json, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 <strong>$ [&#8216;name&#8217;]<\/strong> \u0438 <strong>$ .labels [&#8216;name&#8217;]<\/strong>. \u0418 \u0432 \u043a\u043e\u043d\u0446\u0435 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c Add.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/aa4\/151\/5d9\/aa41515d91332e5c02bd803a46f3ea30.png\" width=\"750\" height=\"196\"><figcaption><\/figcaption><\/figure>\n<p>9.<strong>&nbsp;<\/strong>\u0418\u0442\u0430\u043a, LLD \u0441\u043e\u0437\u0434\u0430\u043d. \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0434\u043e, \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043d\u0430\u0448\u0435\u0439 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438, \u0442\u043e \u0435\u0441\u0442\u044c, \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u043d\u0430\u0448\u0435\u0433\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u0430 LLD. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0434\u0435\u043c \u0432 <em>Item prototypes &gt; Create item prototype<\/em>:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/126\/54a\/a28\/12654aa2872634be50311d9dd671fba4.png\" width=\"750\" height=\"744\"><figcaption><\/figcaption><\/figure>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p><strong>\u041f\u043e\u043b\u0435 <\/strong><\/p>\n<\/td>\n<td>\n<p><strong>\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Name<\/p>\n<\/td>\n<td>\n<p>{#METRIC} on {#NAME}<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Type<\/p>\n<\/td>\n<td>\n<p>Dependent item<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Key<\/p>\n<\/td>\n<td>\n<p>ocp.co.stats[{#NAME}]<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Master item<\/p>\n<\/td>\n<td>\n<p>OCP   Productive: Prometheus Metrics Operators<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Type of Information<\/p>\n<\/td>\n<td>\n<p>Numeric(unsigned)<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>New Application \/ Applications<\/p>\n<\/td>\n<td>\n<p>Operators<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Description<\/p>\n<\/td>\n<td>\n<p>{#METRIC} on {#NAME}<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0412 \u043f\u043e\u043b\u044f\u0445 <strong>Name<\/strong>, <strong>Key<\/strong> \u0438 <strong>Description<\/strong> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u043c\u0430\u043a\u0440\u043e\u0441\u044b\/\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435. \u0414\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438\/\u043f\u0435\u0440\u0441\u043e\u043d\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043d\u0430\u0448\u0438\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u044f <strong>Key<\/strong> \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043f\u043e \u0441\u0432\u043e\u0435\u043c\u0443 \u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0438\u044e, \u043e\u0434\u043d\u0430\u043a\u043e \u0432\u0430\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043c\u0430\u043a\u0440\u043e\u0441 \u0441 \u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u043c \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u043c, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0438 \u043d\u0435 \u0431\u044b\u043b\u043e \u0434\u0443\u0431\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.<\/p>\n<p>\u041e\u043f\u0446\u0438\u044f New Application \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u0442\u0438\u043f\u043e\u043c \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438. \u0422\u0430\u043a \u043a\u0430\u043a \u044d\u0442\u0430 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044f \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0441\u044f \u043a \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430\u043c, \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043f\u043e\u0434 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435\u043c Operators.<\/p>\n<p><em>\u0412\u0430\u0436\u043d\u043e \u043e\u0442\u043c\u0435\u0442\u0438\u0442\u044c, \u0447\u0442\u043e \u0432\u0440\u0435\u043c\u044f \u0441\u0431\u043e\u0440\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u044d\u0442\u0438\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 (collection time) \u0431\u0443\u0434\u0435\u0442 \u0442\u0430\u043a\u0438\u043c \u0436\u0435, \u043a\u0430\u043a \u0438 \u0432\u0440\u0435\u043c\u044f \u0441\u0431\u043e\u0440\u0430, \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0435 \u0434\u043b\u044f \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438 \u0441 \u0442\u0438\u043f\u043e\u043c http agent, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0431\u044b\u043b\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u0430 \u043d\u0430 \u0448\u0430\u0433\u0435 5.<\/em><\/p>\n<p>10. \u041d\u0435 \u043f\u043e\u043a\u0438\u0434\u0430\u044f \u044d\u0442\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443, \u0433\u0434\u0435 \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0435\u043c \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430, \u0449\u0435\u043b\u043a\u0430\u0435\u043c <em>Preprocessing<\/em>, \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 Preprocessing steps \u0449\u0435\u043b\u043a\u0430\u0435\u043c Add, \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c <em>Prometheus Pattern<\/em> \u0438 \u0432 <em>Parameters<\/em> \u043f\u0438\u0448\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441:<\/p>\n<pre><code>{#METRIC}{name=\"{#NAME}\",version=\"{#VERSION}\"}<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/cf4\/c42\/1bd\/cf4c421bd8fe7f7ccabd918a4534a8bd.png\" width=\"749\" height=\"107\"><figcaption><\/figcaption><\/figure>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u044d\u0442\u043e\u0442 \u0441\u0438\u043d\u0442\u0430\u043a\u0441\u0438\u0441, \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043c \u0444\u043e\u0440\u043c\u0430\u0442 \u043d\u0430\u0448\u0435\u0439 \u043c\u0435\u0442\u0440\u0438\u043a\u0438, \u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043c\u0430\u043a\u0440\u043e\u0441\u044b\/\u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u0448\u0430\u0433\u0435 8. \u0417\u0430\u0442\u0435\u043c \u043d\u0430\u0436\u043c\u0435\u043c Add (\u0438\u043b\u0438 Update, \u0435\u0441\u043b\u0438 \u0434\u043e \u044d\u0442\u043e\u0433\u043e \u0443\u0436\u0435 \u043d\u0430\u0436\u0430\u043b\u0438 Add, \u043a\u043e\u0433\u0434\u0430 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f\u0430 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430).<\/p>\n<p>11.<strong>&nbsp;<\/strong>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043c, \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043b\u0438 \u043d\u0430\u0448 LLD. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0434\u0435\u043c \u0432 <em>Monitoring &gt; Latest data &gt;<\/em> \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0444\u0438\u043b\u044c\u0442\u0440\u044b \u0434\u043b\u044f \u043e\u0431\u043b\u0435\u0433\u0447\u0435\u043d\u0438\u044f \u043f\u043e\u0438\u0441\u043a\u0430, \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0433\u0440\u0443\u043f\u043f\u0443 \u0445\u043e\u0441\u0442\u043e\u0432, \u0445\u043e\u0441\u0442 \u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0430 \u0437\u0430\u0442\u0435\u043c \u0436\u043c\u0435\u043c <em>Apply<\/em>:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/982\/c0c\/b09\/982c0cb096ab5f3e1f51d8c9cee88474.png\" width=\"749\" height=\"328\"><figcaption><\/figcaption><\/figure>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0441\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e, \u0442\u043e \u0443\u0432\u0438\u0434\u0438\u043c \u043d\u0430\u0448\u0438 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0441 \u0443\u043a\u0430\u0437\u0430\u043d\u0438\u0435\u043c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0435\u0439 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438. \u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0447\u0442\u043e \u043c\u0435\u0442\u0440\u0438\u043a\u0430 \u0431\u044b\u043b\u0430 \u0441\u043e\u0437\u0434\u0430\u043d\u0430 \u0432\u0435\u0440\u043d\u043e, \u0449\u0435\u043b\u043a\u0430\u0435\u043c \u043d\u0443\u0436\u043d\u044b\u0439 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u0438 \u0437\u0430\u0442\u0435\u043c \u0449\u0435\u043b\u043a\u0430\u0435\u043c Preprocessing:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/82d\/b70\/7df\/82db707df9f216cdd1a407993c36b1cf.png\" width=\"748\" height=\"99\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043f\u043e\u043b\u0435 Parameters, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u043b\u043e\u0441\u044c \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0438 LLD.<\/p>\n<p>12.<strong>&nbsp;<\/strong>\u0422\u0435\u043f\u0435\u0440\u044c, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043b\u0438 \u0441\u0431\u043e\u0440 \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u043d\u0430\u0448\u0438\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432, \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0442\u0440\u0438\u0433\u0433\u0435\u0440, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u0445 \u0441 \u043b\u044e\u0431\u044b\u043c \u0438\u0437 \u043d\u0430\u0448\u0438\u0445 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u0432. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0434\u0435\u043c \u0432 <em>Configuration &gt; Hosts &gt; \u0449\u0435\u043b\u043a\u0430\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u043d\u0430\u043c\u0438 Host &gt; Discovery rules &gt; \u0449\u0435\u043b\u043a\u0430\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 LLD &gt; Trigger prototypes &gt; Create trigger prototype<\/em><\/p>\n<p>\u0417\u0430\u0434\u0430\u0435\u043c \u043a\u0440\u0438\u0442\u0438\u0447\u043d\u043e\u0441\u0442\u044c \u0441\u0432\u043e\u0435\u0433\u043e \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u0430 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Severity. \u0417\u0430\u0442\u0435\u043c \u0432 \u0440\u0430\u0437\u0434\u0435\u043b\u0435 Expression \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c Add&gt;. \u0412 \u043e\u0442\u043a\u0440\u044b\u0432\u0448\u0435\u043c\u0441\u044f \u043e\u043a\u043d\u0435 \u0441\u043f\u0440\u0430\u0432\u0430 \u043e\u0442 \u043f\u043e\u043b\u044f Item \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c Select prototype \u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043d\u0430\u0448 \u043f\u0440\u043e\u0442\u043e\u0442\u0438\u043f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430. \u0412 Function \u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u043c last (), \u0430 Result \u0437\u0430\u0434\u0430\u0435\u043c \u043a\u0430\u043a \u00ab&lt; 1\u00bb.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u043f\u043e\u043c\u043d\u0438\u0442\u0435 \u0434\u043b\u044f \u0441\u0442\u0430\u0442\u0443\u0441\u0430 \u043c\u0435\u0442\u0440\u0438\u043a 1 \u2013 \u044d\u0442\u043e <strong>OK<\/strong>, 0 \u2013 \u044d\u0442\u043e <strong>\u043d\u0435<\/strong>_<strong>OK<\/strong>.<\/p>\n<p>\u0429\u0435\u043b\u043a\u0430\u0435\u043c Insert, \u0437\u0430\u0442\u0435\u043c Add.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/7a1\/920\/344\/7a1920344596f5d09218a337bf6227d4.png\" width=\"750\" height=\"404\"><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0442\u0440\u0438\u0433\u0433\u0435\u0440 \u0441\u043e\u0437\u0434\u0430\u043d.<\/p>\n<p>13.<strong>&nbsp;<\/strong>\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430\u0448\u0438 \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u044f, \u0438\u0434\u0435\u043c \u0432 <em>Monitoring &gt; Dashboard<\/em> \u0438 \u0432\u0438\u0434\u0438\u043c \u0437\u0434\u0435\u0441\u044c \u043d\u0430\u0448\u0438 \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u044b, \u0435\u0441\u043b\u0438 \u0442\u0430\u043a\u043e\u0432\u044b\u0435 \u0438\u043c\u0435\u044e\u0442\u0441\u044f.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/65b\/17d\/8e8\/65b17d8e855c993e3536661eb11a98d0.png\" width=\"749\" height=\"277\"><figcaption><\/figcaption><\/figure>\n<p>\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0432\u0441\u0451 \u043b\u0438 \u0432\u0435\u0440\u043d\u043e, \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u043c \u0430\u0434\u0440\u0435\u0441 \u043d\u0430\u0448\u0430_\u043a\u043e\u043d\u0435\u0447\u043d\u0430\u044f_\u0442\u043e\u0447\u043a\u0430<strong>\/metrics<\/strong> \u0438 \u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043a\u0430\u043a\u0438\u0435 \u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u043c\u044b \u0434\u043e\u0431\u0430\u0432\u0438\u043b\u0438 \u0432 \u043d\u0430\u0448 LLD:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ee3\/0a4\/667\/ee30a46672499a74a8c0a91ed3148fa8.png\" width=\"812\" height=\"535\"><figcaption><\/figcaption><\/figure>\n<p>14. \u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u0447\u0442\u043e \u0431\u0443\u0434\u0435\u0442, \u043a\u043e\u0433\u0434\u0430 \u043a\u043e\u043d\u0435\u0447\u043d\u0430\u044f \u0442\u043e\u0447\u043a\u0430, \u0441 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0442\u0441\u044f \u043c\u0435\u0442\u0440\u0438\u043a\u0438, \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, kube-apiserver (\u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0434\u0430\u043d\u043d\u044b\u0445 API):<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/ac6\/2f9\/8b6\/ac62f98b697493d3d87a4ef9bad947ff.png\" width=\"747\" height=\"228\"><figcaption><\/figcaption><\/figure>\n<p>\u041e\u0431\u0440\u0430\u0449\u0430\u0435\u043c\u0441\u044f \u043a \u043d\u0435\u0439 \u0447\u0435\u0440\u0435\u0437 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0438\u043b\u0438 \u0447\u0435\u0440\u0435\u0437 Curl, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c, \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043b\u0438 \u043e\u0448\u0438\u0431\u043a\u0430 \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438:<\/p>\n<pre><code>$ curl -k https:\/\/10.36.250.77:6443\/metrics<\/code><\/pre>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c16\/c83\/525\/c16c835254b8a0e53e5ec0f05864cf25.png\" width=\"749\" height=\"266\"><figcaption><\/figcaption><\/figure>\n<p>15. \u0422\u0435\u043f\u0435\u0440\u044c \u0432 openshift \u0432\u044b\u0432\u0435\u0434\u0435\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u043d\u0430\u0448\u0438\u0445 serviceaccounts \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 zabbix:<\/p>\n<pre><code>$ oc project zabbix $ oc get sa<\/code><\/pre>\n<p>\u041f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u043c \u043f\u0440\u0438\u0432\u0438\u043b\u0435\u0433\u0438\u0438 <strong>cluster-reader<\/strong> \u043d\u0430\u0448\u0435\u043c\u0443 serviceaccount-\u0443 zabbix-agent \u0434\u043b\u044f \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u043d\u0430 \u044d\u0442\u043e\u0439 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u0439 \u0442\u043e\u0447\u043a\u0435:<\/p>\n<pre><code>$ oc adm policy add-cluster-role-to-user cluster-reader -z zabbix-agent<\/code><\/pre>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u0438\u043c, \u0447\u0442\u043e \u043d\u0430\u0448 \u0441\u0435\u0440\u0432\u0438\u0441 \u0442\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u043e\u0445\u043e\u0434\u0438\u0442\u044c \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u044e. \u0414\u043b\u044f \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Curl \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0434\u0438\u043c \u0442\u043e\u043a\u0435\u043d \u0447\u0435\u0440\u0435\u0437 Bearer-\u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044e:<\/p>\n<pre><code>$ TOKEN=`oc sa get-token zabbix-agent` $ curl -Ik -H \"Authorization: Bearer $TOKEN\" https:\/\/10.36.250.77:6443\/metrics  HTTP\/2 200  audit-id: 6d3ff3b6-b687-494c-ae04-ec46e813aea1 cache-control: no-cache, private content-type: text\/plain; version=0.0.4; charset=utf-8 x-kubernetes-pf-flowschema-uid: 3a22c354-288e-4c16-ac53-f828d6e66303 x-kubernetes-pf-prioritylevel-uid: a4bc8a8e-784c-45ab-b68b-1620bfb48ef5 date: Sun, 25 Apr 2021 21:25:34 GMT<\/code><\/pre>\n<p>16. \u0422\u0435\u043f\u0435\u0440\u044c \u0432 Zabbix \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u043c \u043d\u0430\u0448 \u044d\u043b\u0435\u043c\u0435\u043d\u0442 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438 \u043c\u0435\u0442\u0440\u0438\u043a. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0434\u0435\u043c \u0432 <em>Configuration &gt; Hosts &gt; \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u043d\u0430\u043c\u0438 \u0445\u043e\u0441\u0442 &gt; Items &gt; Create item<\/em><\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/0ca\/f6a\/192\/0caf6a192808ab0d2d1de07d22ad6322.png\" width=\"749\" height=\"495\"><figcaption><\/figcaption><\/figure>\n<p>\u0414\u043b\u044f \u0430\u0443\u0442\u0435\u043d\u0442\u0438\u0444\u0438\u043a\u0430\u0446\u0438\u0438 \u043f\u0443\u0442\u0435\u043c \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 bearer-\u0442\u043e\u043a\u0435\u043d\u0430 \u0447\u0435\u0440\u0435\u0437 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a, \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043d\u0430\u0448 \u0442\u043e\u043a\u0435\u043d \u0432 \u0440\u0430\u0437\u0434\u0435\u043b Headers. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432 \u043f\u043e\u043b\u0435 Name \u043d\u0430\u043f\u0438\u0448\u0435\u043c Authorization, \u0430 \u043f\u043e\u043b\u0435 Value \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u00abBearer\u00bb \u0438 \u0441\u0430\u043c \u0442\u043e\u043a\u0435\u043d, \u043a\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043d\u0438\u0436\u0435:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p>Authorization<\/p>\n<\/td>\n<td>\n<p>Bearer   xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u043c \u0448\u0430\u0433\u0438 6-12 \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0445 \u0442\u043e\u0447\u0435\u043a \u0438 \u043c\u0435\u0442\u0440\u0438\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0443\u0436\u043d\u044b \u0434\u043b\u044f \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u043d\u0430\u0448\u0435\u0439 \u0441\u0440\u0435\u0434\u044b, \u0447\u0442\u043e\u0431\u044b \u0432\u043d\u0435\u0441\u0442\u0438 \u0438\u0445 \u0432 Zabbix.<\/p>\n<p>LLD \u0434\u043b\u044f \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u043e\u0432 \u0441\u043e \u0441\u0442\u0430\u0442\u0443\u0441\u043e\u043c degraded \u0438 LLD Objects Etcd:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/85a\/0dc\/e67\/85a0dce6720e3c76ed2d74c4348b6541.png\" width=\"748\" height=\"201\"><figcaption><\/figcaption><\/figure>\n<p>Etcd-\u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b, \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 LLD \u0438 \u0441\u043e \u0441\u0442\u0430\u0442\u0443\u0441\u043e\u043c, \u043e\u0442\u0440\u0430\u0436\u0430\u044e\u0449\u0438\u043c \u0441\u0430\u043c\u043e\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/01b\/61b\/8ae\/01b61b8ae03a5cb51cdfdf6dd1c61116.png\" width=\"748\" height=\"409\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0432\u0441\u0435\u0445 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0439 \u0438 \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u043e\u0432 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0433\u0440\u0430\u0444\u044b \u0434\u043b\u044f \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0438\u043d\u0434\u0438\u043a\u0430\u0442\u043e\u0440\u043e\u0432 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043d\u0430\u0448\u0435\u0439 \u0441\u0440\u0435\u0434\u044b:<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/8e5\/411\/761\/8e541176148969c9575560cdbdcb3f45.png\" width=\"749\" height=\"271\"><figcaption><\/figcaption><\/figure>\n<p>\u0418\u0442\u0430\u043a, \u043c\u044b \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0438, \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c Zabbix \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u0430 Prometheus-\u043c\u0435\u0442\u0440\u0438\u043a \u0432 \u0440\u0430\u043c\u043a\u0430\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 OpenShift, \u0438 \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u0434\u043b\u044f \u0446\u0435\u043d\u0442\u0440\u0430\u043b\u0438\u0437\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430.<\/p>\n<p>\u0421\u0435\u0433\u043e\u0434\u043d\u044f \u043c\u044b \u043f\u043e\u043a\u0430\u0436\u0435\u043c, \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 OpenShift \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0432\u043d\u0435\u0448\u043d\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 <a href=\"https:\/\/www.zabbix.com\/\">Zabbix<\/a>. \u0410 \u0442\u0430\u043a\u0436\u0435, \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438 \u044d\u0442\u043e\u043c Prometheus, \u0438\u043d\u0430\u0447\u0435 \u0433\u043e\u0432\u043e\u0440\u044f, \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c Prometheus-\u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u043f\u043e \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0443 OpenShift, \u0437\u0430\u0442\u0435\u043c \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0445 \u0432 Zabbix \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0439 \u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0442\u0430\u043c \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u044b, \u0441\u0432\u043e\u0435\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0438\u043d\u0444\u043e\u0440\u043c\u0438\u0440\u0443\u044e\u0449\u0438\u0435 \u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u0445.<\/p>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/company\/redhatrussia\/blog\/566830\/\"> https:\/\/habr.com\/ru\/company\/redhatrussia\/blog\/566830\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<p>\u0421\u0435\u0433\u043e\u0434\u043d\u044f \u043c\u044b \u043f\u043e\u043a\u0430\u0436\u0435\u043c, \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430 OpenShift \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0432\u043d\u0435\u0448\u043d\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 <a href=\"https:\/\/www.zabbix.com\/\">Zabbix<\/a>. \u0410 \u0442\u0430\u043a\u0436\u0435, \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u0438 \u044d\u0442\u043e\u043c Prometheus, \u0438\u043d\u0430\u0447\u0435 \u0433\u043e\u0432\u043e\u0440\u044f, \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c Prometheus-\u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u043f\u043e \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0443 OpenShift, \u0437\u0430\u0442\u0435\u043c \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0445 \u0432 Zabbix \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0439 \u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0442\u0430\u043c \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u044b, \u0441\u0432\u043e\u0435\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0438\u043d\u0444\u043e\u0440\u043c\u0438\u0440\u0443\u044e\u0449\u0438\u0435 \u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u0445.<\/p>\n<h2>\u041c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b Openshift 4.x \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Zabbix Operator<\/h2>\n<p>\u0414\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0430\u0433\u0435\u043d\u0442\u043e\u0432 Zabbix \u043d\u0430 \u043a\u043b\u0430\u0441\u0442\u0435\u0440 Openshift Cluster \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c <a href=\"https:\/\/catalog.redhat.com\/software\/operators\/detail\/5e98728c2989e6a90307acda\">\u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 Zabbix<\/a>. \u0417\u0430\u0442\u0435\u043c \u0441\u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0443\u0435\u043c \u0438\u0445 \u0442\u0430\u043a, \u0447\u0442\u043e\u0431\u044b \u043e\u043d\u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u043b\u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u043c\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 Zabbix Server, \u043a\u0430\u043a \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043d\u0430 \u0441\u0445\u0435\u043c\u0435 \u043d\u0438\u0436\u0435.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<h3>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Zabbix Server<\/h3>\n<p>\u25cf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u041f\u0435\u0440\u0432\u044b\u043c \u0434\u0435\u043b\u043e\u043c \u043e\u0431\u043d\u043e\u0432\u0438\u043c \u0441\u0435\u0440\u0432\u0435\u0440 \u0438 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043c httpd:<\/p>\n<pre><code>$ dnf update -y &amp;&amp; dnf install @httpd -y $ sed -i 's\/^SELINUX=.*\/SELINUX=permissive\/g' \/etc\/selinux\/config $ systemctl enable --now httpd $ systemctl status httpd<\/code><\/pre>\n<p>\u25cf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u0417\u0430\u0442\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u0421\u0423\u0411\u0414 MariaDB:<\/p>\n<pre><code>$ dnf -y install mariadb mariadb-server $ systemctl start mariadb $ mysql -u root -e \"CREATE DATABASE zabbix character set utf8 collate utf8_bin;\" $ mysql -u root -e \"GRANT ALL PRIVILEGES ON zabbix.* TO zabbix@'localhost' IDENTIFIED BY 'StrongPassword';\" $ mysqladmin flush-privileges Note: If the database server is separate from the zabbix server, replace localhost with the zabbix server IP, example:  zabbix@'1.2.3.4 '<\/code><\/pre>\n<p>\u25cf&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u0442\u0430\u0432\u0438\u043c \u0441\u0430\u043c Zabbix Server:<\/p>\n<pre><code># Install zabbix repository $ dnf -y install https:\/\/repo.zabbix.com\/zabbix\/5.0\/rhel\/8\/x86_64\/zabbix-release-5.0-1.el8.noarch.rpm # Install packages needed $ dnf -y install zabbix-server-mysql zabbix-web-mysql zabbix-apache-conf zabbix-agent # Restore database schema $ zcat \/usr\/share\/doc\/zabbix-server-mysql*\/create.sql.gz | mysql -u zabbix -p zabbix # Adjust the database parameters $ vim \/etc\/zabbix\/zabbix_server.conf # Parameters DBName=zabbix DBUser=zabbix DBPassword=StrongPassword # Adjust timezone if necessary $ vim \/etc\/php-fpm.d\/zabbix.conf # Parameters php_value[date.timezone] = America\/Sao_Paulo # Adjust php.ini $ vim \/etc\/php.ini # Parameters   memory_limit 128M   upload_max_filesize 8M    post_max_size 16M   max_execution_time 300   max_input_time 300   max_input_vars 10000 # Restart and Enable Services $ systemctl restart zabbix-server zabbix-agent httpd php-fpm mariadb $ systemctl enable zabbix-server zabbix-agent httpd php-fpm mariadb # Now we will access our graphical interface to complete the installation process, go to: http:\/\/&lt;&lt; IP ADDRESS or FQDN &gt;&gt;\/zabbix # In the welcome screen, click Next step<\/code><\/pre>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0423\u0434\u043e\u0441\u0442\u043e\u0432\u0435\u0440\u0438\u043c\u0441\u044f, \u0447\u0442\u043e \u0432\u0441\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u0432 \u043d\u0430\u043b\u0438\u0447\u0438\u0438 , \u0438 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c Next:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0412\u0432\u043e\u0434\u0438\u043c \u0443\u0447\u0435\u0442\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a \u0411\u0414 \u0438 \u0436\u043c\u0435\u043c Next:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u043e\u043b\u0435 Name \u043c\u043e\u0436\u043d\u043e \u043d\u0435 \u0437\u0430\u043f\u043e\u043b\u043d\u044f\u0442\u044c. \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u0438 \u0436\u043c\u0435\u043c Next:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0435\u0440\u0435\u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u043c, \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c Next, \u0430 \u0437\u0430\u0442\u0435\u043c Finish:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<h3>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Zabbix Server<\/h3>\n<p>\u041b\u043e\u0433\u0438\u043d\u0438\u043c\u0441\u044f, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0443\u0447\u0435\u0442\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435:<\/p>\n<pre><code>Username: Admin Password: zabbix<\/code><\/pre>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u0430\u0440\u043e\u043b\u044c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f Admin, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u043b\u0443\u0447\u0448\u0435 \u0437\u0430\u0442\u0435\u043c \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c.<\/p>\n<p>\u0418\u0442\u0430\u043a, \u043c\u044b \u0432\u043e\u0448\u043b\u0438 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0438 \u0432\u0438\u0434\u0438\u043c \u0434\u0430\u0448\u0431\u043e\u0440\u0434 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u0433\u0440\u0443\u043f\u043f\u0443 \u0445\u043e\u0441\u0442\u043e\u0432 \u0434\u043b\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 Openshift:<\/p>\n<p>\u041d\u0430\u0436\u0438\u043c\u0430\u0435\u043c Configuration &gt; Host Groups &gt; Create host group, \u0432\u0432\u043e\u0434\u0438\u043c \u0438\u043c\u044f \u0433\u0440\u0443\u043f\u043f\u044b \u0438 \u0436\u043c\u0435\u043c Add:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c \u0441\u0430\u043c\u043e\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044e \u0430\u0433\u0435\u043d\u0442\u043e\u0432, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0448\u0438 \u043d\u043e\u0434\u044b \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043b\u0438\u0441\u044c \u0432 zabbix \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0449\u0435\u043b\u043a\u0430\u0435\u043c \u0432 \u0431\u043e\u043a\u043e\u0432\u043e\u043c \u043c\u0435\u043d\u044e Configuration &gt; Actions, \u0437\u0430\u0442\u0435\u043c \u0432 \u0440\u0430\u0441\u043a\u0440\u044b\u0432\u0430\u044e\u0449\u0435\u043c\u0441\u044f \u0441\u043f\u0438\u0441\u043a\u0435 \u0432\u0432\u0435\u0440\u0445\u0443 \u0432\u043a\u043b\u0430\u0434\u043a\u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c Autoregistrion actions \u0438 \u0449\u0435\u043b\u043a\u0430\u0435\u043c Create action:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0435\u043c action, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f, \u0438 \u0437\u0430\u0442\u0435\u043c \u0436\u043c\u0435\u043c Add:<\/p>\n<pre><code>Type: Host metadata Operator: contains Value: Linux<\/code><\/pre>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0430 \u0432\u043a\u043b\u0430\u0434\u043a\u0435 Operations \u0449\u0435\u043b\u043a\u0430\u0435\u043c Add \u0438 \u0432\u0432\u043e\u0434\u0438\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438:<\/p>\n<pre><code>Operation type: Add to host group Host groups:  Name of Host Group<\/code><\/pre>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u043e\u0432\u044b\u0435 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438:<\/p>\n<pre><code>Operation type: Link to template Templates: Template OS Linux by Zabbix agent active<\/code><\/pre>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041f\u043e\u0441\u043b\u0435 \u0442\u0430\u043a\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u043d\u043e\u0432\u044b\u0439 \u0430\u0433\u0435\u043d\u0442 \u0431\u0443\u0434\u0443\u0442 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0432 \u0433\u0440\u0443\u043f\u043f\u0435 \u00abOpenShift Cluster\u00bb \u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0448\u0430\u0431\u043b\u043e\u043d \u00abTemplate OS Linux by Zabbix agent active\u00bb.<\/p>\n<h3>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 Zabbix Operator<\/h3>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u043c Zabbix Operator \u043d\u0430 Openshift.<\/p>\n<p>\u0412 OperatorHub \u0438\u0449\u0435\u043c \u0438 \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c Zabbix, \u0430 \u0437\u0430\u0442\u0435\u043c \u0449\u0435\u043b\u043a\u0430\u0435\u043c Install:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0415\u0449\u0435 \u0440\u0430\u0437 \u0449\u0435\u043b\u043a\u0430\u0435\u043c Install:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0414\u043e\u0436\u0438\u0434\u0430\u0435\u043c\u0441\u044f \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0438 \u0449\u0435\u043b\u043a\u0430\u0435\u043c \u0438\u043c\u044f Zabbix Operator:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0418\u0449\u0435\u043c \u0432\u043a\u043b\u0430\u0434\u043a\u0443 Zabbix Agent, \u0449\u0435\u043b\u043a\u0430\u0435\u043c \u0442\u0430\u043c Create ZabbixAgent &gt; Select YAML View, \u0437\u0430\u0434\u0430\u0435\u043c \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0435 \u043d\u0438\u0436\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0438 \u0436\u043c\u0435\u043c Create:<\/p>\n<pre><code>metadata_item: 'system.uname' server_host:  &lt;IP or FQDN Zabbix Server&gt;<\/code><\/pre>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<h3>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 Zabbix Operator<\/h3>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435 Zabbix \u0449\u0435\u043b\u043a\u0430\u0435\u043c Daemonset &gt;&nbsp; zabbix-agent &gt;&nbsp; Tolerations&nbsp;\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c Toleration \u0441 \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u043c\u0438 \u043d\u0438\u0436\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438, \u0447\u0442\u043e\u0431\u044b \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043f\u043e\u0434\u044b \u043d\u0430 master-\u043d\u043e\u0434\u0430\u0445:<\/p>\n<pre><code>KEY: node-role.kubernetes.io\/master OPERATOR: Exists EFFECT: NoSchedule<\/code><\/pre>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041a\u0430\u043a \u0432\u0438\u0434\u0438\u043c, daemonset \u0441\u043c\u0430\u0441\u0448\u0438\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043b\u0441\u044f \u0434\u043e 5 \u043f\u043e\u0434\u043e\u0432 (3 master-\u0430 \u0438 2 worker-\u0430)<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0417\u0430\u043f\u0440\u043e\u0441\u0438\u043c \u0441\u043f\u0438\u0441\u043e\u043a \u043f\u043e\u0434\u043e\u0432, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0438\u043c\u0435\u043d\u0430 \u0438 \u0441\u0442\u0430\u0442\u0443\u0441:<\/p>\n<pre><code>oc get pods -o wide -n zabbix<\/code><\/pre>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0432 \u043a\u043e\u043d\u0441\u043e\u043b\u0438 Zabbix \u0438\u0434\u0435\u043c \u0432 Configuration &gt; Hosts.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u0441\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0442\u043e \u0443\u0432\u0438\u0434\u0438\u043c \u0437\u0434\u0435\u0441\u044c \u0441\u043f\u0438\u0441\u043e\u043a \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0445 \u0445\u043e\u0441\u0442\u043e\u0432:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0414\u043b\u044f \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0441\u0442\u0438 \u0449\u0435\u043b\u043a\u043d\u0435\u043c \u0438\u043c\u044f \u0445\u043e\u0441\u0442\u0430 \u0438 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u043a OpenShift-\u0438\u043c\u0435\u043d\u0438 (\u043f\u043e\u043b\u0435 Host name) \u0435\u0449\u0435 \u0438 \u043f\u043e\u043d\u044f\u0442\u043d\u043e\u0435 \u0438\u043c\u044f \u0432 \u043f\u043e\u043b\u0435 Visible name, \u0430 \u0437\u0430\u0442\u0435\u043c \u043d\u0430\u0436\u043c\u0435\u043c Update:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0427\u0442\u043e\u0431\u044b \u043f\u043e\u043d\u044f\u0442\u044c, \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0442 \u043b\u0438 \u0443\u0436\u0435 \u043d\u0430\u0448\u0438 \u0445\u043e\u0441\u0442\u044b \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430 Zabbix Server, \u0449\u0435\u043b\u043a\u043d\u0435\u043c Monitoring &gt; Latest data.<\/p>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u044d\u043a\u0440\u0430\u043d\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u0441\u043f\u0438\u0441\u043e\u043a \u0443\u0436\u0435 \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0445 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0432\u043c\u0435\u0441\u0442\u0435 \u0441\u043e \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438, \u0430 \u0442\u0430\u043a\u0436\u0435 \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u0441\u0431\u043e\u0440\u0430 \u0434\u0430\u043d\u043d\u044b\u0445:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0418\u0442\u0430\u043a, \u0442\u0435\u043f\u0435\u0440\u044c Zabbix \u0432\u0435\u0434\u0435\u0442 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u043d\u0430\u0448\u0435\u0433\u043e \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0430\u043a, \u043c\u044b \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u0438, \u043a\u0430\u043a \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u0442\u044c \u043d\u0435\u0438\u0437\u043c\u0435\u043d\u043d\u0443\u044e \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 Openshift \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Zabbix Operator. \u0421\u043e\u0431\u0438\u0440\u0430\u044f \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044e \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432 (cpu, \u043d\u0430\u0433\u0440\u0443\u0437\u043a\u0430, \u043f\u0430\u043c\u044f\u0442\u044c, \u0441\u0435\u0442\u044c, \u0434\u0438\u0441\u043a\u043e\u0432\u043e\u0435 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e), \u0437\u0430\u0442\u0435\u043c \u043c\u043e\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u043e\u043f\u043e\u0432\u0435\u0449\u0435\u043d\u0438\u044f \u0438 \u0437\u0430\u0434\u0430\u0432\u0430\u0442\u044c \u043f\u043e\u0440\u043e\u0433\u0438 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0439, \u0447\u0442\u043e\u0431\u044b \u0443\u043f\u0440\u0435\u0436\u0434\u0430\u0442\u044c \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u0435 \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u0438 \u0441 \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043c\u0438.<\/p>\n<h2>\u041c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 Openshift 4.x \u0447\u0435\u0440\u0435\u0437 Zabbix \u0441 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c Prometheus<\/h2>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u043f\u043e\u043a\u0430\u0436\u0435\u043c, \u043a\u0430\u043a \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u0442\u044c \u043a\u043b\u0430\u0441\u0442\u0435\u0440 Openshift \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Zabbix \u0438 Prometheus, \u0442\u043e \u0435\u0441\u0442\u044c \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c Prometheus-\u043c\u0435\u0442\u0440\u0438\u043a\u0438 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u043f\u043e \u043d\u0430\u0448\u0435\u043c\u0443 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0443 OpenShift, \u0437\u0430\u0442\u0435\u043c \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438\u0445 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0439 \u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u044b, \u0441\u0432\u043e\u0435\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0438\u043d\u0444\u043e\u0440\u043c\u0438\u0440\u0443\u044e\u0449\u0438\u0435 \u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u0445.<\/p>\n<p>\u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 Zabbix:<\/p>\n<ul>\n<li>\n<p><strong>http agent<\/strong> \u2013 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u0441\u0431\u043e\u0440 \u043d\u0430\u0448\u0438\u0445 \u043c\u0435\u0442\u0440\u0438\u043a.<\/p>\n<\/li>\n<li>\n<p><strong>LLD<\/strong> (low level discovery) \u2013 \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0437\u0430 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u0435 \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432 \u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u044b\u0435 \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0438 \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u044b.<\/p>\n<\/li>\n<\/ul>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u0442\u0438\u043f\u0430 http agent, \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043e\u0431\u044a\u0435\u043a\u0442\u044b \u043a\u043e\u043d\u0435\u0447\u043d\u0430\u044f \u0442\u043e\u0447\u043a\u0430\/metrics, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0438\u0437 \u0446\u0435\u043b\u0435\u0432\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430 Prometheus (target list) \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0442\u044c \u044d\u0442\u0438 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438 \u043f\u043e \u0430\u0434\u0440\u0435\u0441\u0443 \\metric \u0432 \u0432\u044b\u0432\u043e\u0434\u0435 Zabbix.<\/p>\n<p>\u0417\u0430\u0442\u0435\u043c, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f LLD, \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043f\u0430\u0440\u0441\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u0432\u044b\u0432\u043e\u0434, \u043f\u043e\u0442\u043e\u043c \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0438 \u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u0442\u044c \u043c\u0435\u0442\u0440\u0438\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u044e\u0442, \u0438 \u043d\u0430\u043a\u043e\u043d\u0435\u0446, \u0441\u0444\u043e\u0440\u043c\u0438\u0440\u0443\u0435\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u043e \u0434\u043b\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u043e\u0432 \u0438 \u0442\u0440\u0438\u0433\u0433\u0435\u0440\u043e\u0432.<\/p>\n<p>\u0418\u0442\u0430\u043a, \u043d\u0430\u0447\u043d\u0435\u043c.<\/p>\n<p>1.&nbsp;\u0411\u0435\u0440\u0435\u043c Prometheus-\u043e\u0432\u0441\u043a\u0438\u0439 url \u0438 \u043e\u0431\u0440\u0430\u0449\u0430\u0435\u043c\u0441\u044f \u043a context\/targets, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u043a\u0430\u043a\u0438\u0435 \u0446\u0435\u043b\u0438 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u0442\u044c \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e Zabbix:<\/p>\n<pre><code>oc get routes -n openshift-monitoring | grep prometheus-k8s<\/code><\/pre>\n<p>2. \u0418\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0432 Prometheus-\u043e\u0432\u0441\u043a\u0438\u0439 url, \u0437\u0430\u0445\u043e\u0434\u0438\u043c \u0447\u0435\u0440\u0435\u0437 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u0438 \u0438\u0449\u0435\u043c \u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0435 \u0442\u043e\u0447\u043a\u0438 \u043f\u043e IP-\u0430\u0434\u0440\u0435\u0441\u0430\u043c \u0432 \u0442\u043e\u043c \u0436\u0435 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435, \u0447\u0442\u043e \u0438 \u043d\u043e\u0434\u044b openshift, \u0432 \u043d\u0430\u0448\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u044d\u0442\u043e 10.36.250.x:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0417\u0434\u0435\u0441\u044c \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u0442\u044c \u0441\u0442\u0430\u0442\u0443\u0441 Cluster Operators, \u0434\u043b\u044f \u0447\u0435\u0433\u043e \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432\u043e\u0442 \u044d\u0442\u0443 \u043a\u043e\u043d\u0435\u0447\u043d\u0443\u044e \u0442\u043e\u0447\u043a\u0443:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>3.<strong>&nbsp;<\/strong>\u041f\u0440\u0438 \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u0438 \u043a url \u0446\u0435\u043b\u0435\u0432\u043e\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 cluster-operator-version \u0432\u0438\u0434\u0438\u043c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u0435\u0442\u0440\u0438\u043a, \u043e\u0442\u043d\u043e\u0441\u044f\u0449\u0438\u0445\u0441\u044f \u043a \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430\u043c. \u041d\u043e \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043c\u0435\u0442\u0440\u0438\u043a\u0443 cluster_operator_up, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u044b\u0434\u0430\u0435\u0442 <strong>1<\/strong>, \u043a\u043e\u0433\u0434\u0430 \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440 \u0432 \u043f\u043e\u0440\u044f\u0434\u043a\u0435, \u0438 <strong>0<\/strong>, \u043a\u043e\u0433\u0434\u0430 \u0435\u0441\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>4.<strong>&nbsp;<\/strong>\u0412 Zabbix \u0438\u0434\u0435\u043c \u0432 <em>Configuration &gt; Host &gt; Create Host<\/em> \u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u043e\u0432\u044b\u0439 \u0445\u043e\u0441\u0442, \u0437\u0430\u0434\u0430\u0435\u043c \u0434\u043b\u044f \u043d\u0435\u0433\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u043e\u0435 \u0438\u043c\u044f, \u0437\u0430\u0442\u0435\u043c \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u0434\u043b\u044f \u043d\u0435\u0433\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0443\u044e \u0433\u0440\u0443\u043f\u043f\u0443 \u0438 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c Add:<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>5. \u0422\u0435\u043f\u0435\u0440\u044c \u0449\u0435\u043b\u043a\u0430\u0435\u043c \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0445\u043e\u0441\u0442, \u0437\u0430\u0442\u0435\u043c \u0449\u0435\u043b\u043a\u0430\u0435\u043c <em>Items &gt; Create Item<\/em>, \u0437\u0430\u0434\u0430\u0435\u043c \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0435 \u043d\u0438\u0436\u0435 \u043f\u043e\u043b\u044f \u0438 \u0436\u043c\u0435\u043c Add:<\/p>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p><strong>\u041f\u043e\u043b\u0435<\/strong><\/p>\n<\/td>\n<td>\n<p><strong>\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Name<\/p>\n<\/td>\n<td>\n<p>Prometheus Metrics Operators<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Type<\/p>\n<\/td>\n<td>\n<p>HTTP agent<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Key<\/p>\n<\/td>\n<td>\n<p>prom_operators<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>URL<\/p>\n<\/td>\n<td>\n<p>https:\/\/{{ IP ADDRESS   }}:9099\/metrics<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Request type<\/p>\n<\/td>\n<td>\n<p>GET<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Request body type<\/p>\n<\/td>\n<td>\n<p>Raw data<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Type of Information<\/p>\n<\/td>\n<td>\n<p>Text<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Update Interval<\/p>\n<\/td>\n<td>\n<p>30s<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p><em>\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u044f Name, Key \u0438 Update Interval \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u0442\u044c.<\/em><\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>6. \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u043e Discovery rule, \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0438\u0434\u0435\u043c \u0432 <em>Configuration &gt; Hosts &gt; \u0449\u0435\u043b\u043a\u0430\u0435\u043c \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0439 \u0432\u044b\u0448\u0435 \u0445\u043e\u0441\u0442 &gt; Discovery rules &gt; Create discovery rule<\/em><\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<div>\n<div class=\"table\">\n<table>\n<tbody>\n<tr>\n<td>\n<p><strong>\u041f\u043e\u043b\u0435<\/strong><\/p>\n<\/td>\n<td>\n<p><strong>\u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435<\/strong><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Name<\/p>\n<\/td>\n<td>\n<p>LLD Cluster Operator Up<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Type<\/p>\n<\/td>\n<td>\n<p>Dependent item<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Key<\/p>\n<\/td>\n<td>\n<p>lld.co.sts<\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p>Master item<\/p>\n<\/td>\n<td>\n<p>Prometheus Metrics Operators<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<p>\u0412 \u043f\u043e\u043b\u0435 <strong><em>Name<\/em><\/strong> \u0437\u0430\u0434\u0430\u0435\u043c \u043f\u043e\u043d\u044f\u0442\u043d\u043e\u0435 \u0438\u043c\u044f, \u0432 \u043f\u043e\u043b\u0435 Type \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c<strong>&nbsp;<em>Dependent item<\/em><\/strong><em>,<\/em> \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u044d\u0442\u043e\u0442 LLD \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043d\u0430\u0448\u0435\u0433\u043e \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u0430 <strong><em>http agent<\/em>,<\/strong> \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043d\u0430 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u043c \u0448\u0430\u0433\u0435. \u0412 <strong>Master item<\/strong>, \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c \u043d\u0430\u0448\u0443 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044e <strong><em>Prometheus Metrics Operators<\/em><\/strong><\/p>\n<p>7.<strong>&nbsp;<\/strong>\u041d\u0430 \u044d\u0442\u043e\u043c \u0436\u0435 \u044d\u043a\u0440\u0430\u043d\u0435 \u0449\u0435\u043b\u043a\u0430\u0435\u043c <em>Preprocessing<\/em><u>,<\/u> \u0437\u0430\u0442\u0435\u043c Add, \u0432\u044b\u0431\u0438\u0440\u0430\u0435\u043c <em>Prometheus to JSON<\/em> \u0438 \u0432 \u043f\u043e\u043b\u0435 Parameters \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u043c \u043e\u0434\u043d\u0443 \u0438\u0437 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0445\u043e\u0442\u0438\u043c \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440:<\/p>\n<pre><code>cluster_operator_up {name = \"authentication\", version = \"4.7.3\"}<\/code><\/pre>\n<p>\u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u0434\u043e\u0431\u0438\u0442\u044c\u0441\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u044f, \u0442\u043e \u043c\u0435\u043d\u044f\u0435\u043c Name \u0438 Version \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<pre><code>cluster_operator_up{name=~\".*\",version=~\".*\"}<\/code><\/pre>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0430 \u044d\u0442\u043e\u043c \u0448\u0430\u0433\u0435 \u043d\u0430\u0448\u0430 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u044f \u043c\u0435\u0442\u0440\u0438\u043a, \u0437\u0430\u0434\u0430\u043d\u043d\u0430\u044f \u043a\u0430\u043a plain text, \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0430 \u0432 json. \u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0438 \u0438\u0434\u0435\u043d\u0442\u0438\u0444\u0438\u0446\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0443\u0436\u043d\u044b\u0435 \u043f\u043e\u043b\u044f, \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0441\u044f \u043e\u043f\u0446\u0438\u0435\u0439 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f:<\/p>\n<p>\u0429\u0435\u043b\u043a\u0430\u0435\u043c \u0440\u0430\u0441\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u043d\u0443\u044e \u0441\u043f\u0440\u0430\u0432\u0430 \u043d\u0430\u0434\u043f\u0438\u0441\u044c <em>Test<\/em>, \u0432 \u043f\u043e\u043b\u0435 <em>Value<\/em> \u043a\u043e\u043f\u0438\u0440\u0443\u0435\u043c \u043a\u0430\u043a\u0443\u044e-\u043d\u0438\u0431\u0443\u0434\u044c \u043c\u0435\u0442\u0440\u0438\u043a\u0443 \u0438\u0437 \u0442\u0435\u0445, \u0447\u0442\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0442\u0441\u044f \u0432 Prometheus, \u0437\u0430\u0442\u0435\u043c \u0449\u0435\u043b\u043a\u0430\u0435\u043c Test \u0438 \u043f\u043e\u0442\u043e\u043c \u0449\u0435\u043b\u043a\u0430\u0435\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043d\u0430\u0448\u0443 \u043c\u0435\u0442\u0440\u0438\u043a\u0443 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 json. \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u044b \u0437\u043d\u0430\u0435\u043c, \u043a\u0430\u043a\u0438\u0435 \u043f\u043e\u043b\u044f \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u044f\u0442\u0441\u044f, \u043a\u043e\u0433\u0434\u0430 \u0431\u0443\u0434\u0435\u043c \u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 (mapping) \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0448\u0430\u0433\u0435.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u041d\u0430\u0448\u0430 \u043c\u0435\u0442\u0440\u0438\u043a\u0430 \u0438\u043c\u0435\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 json:<\/p>\n<pre><code>[    {       \"name\":\"cluster_operator_up\",       \"value\":\"1\",       \"line_raw\":\"cluster_operator_up{name=\\\"authentication\\\",version=\\\"4.7.3\\\"} 1\",       \"labels\":{          \"name\":\"authentication\",          \"version\":\"4.7.3\"       },       \"type\":\"untyped\"    } ]<\/code><\/pre>\n<p>8.<strong>&nbsp;<\/strong>\u0422\u0435\u043f\u0435\u0440\u044c \u0449\u0435\u043b\u043a\u0430\u0435\u043c <em>LLD macros<\/em>. \u041d\u0430 \u044d\u0442\u043e\u043c \u0448\u0430\u0433\u0435 \u0441\u043e\u043f\u043e\u0441\u0442\u0430\u0432\u0438\u043c \u043f\u043e\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e json-\u0430 \u0438 \u0441\u043e\u0437\u0434\u0430\u0434\u0438\u043c \u043c\u0430\u043a\u0440\u043e\u0441\u044b, \u0442\u043e \u0435\u0441\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0434\u043b\u044f Zabbix. \u0418\u043c\u0435\u043d\u0430, \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 \u0432 \u0441\u0442\u043e\u043b\u0431\u0446\u0435 LLD macro, \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c, \u0432\u0441\u0435\u0433\u0434\u0430 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442 <strong>{#NAME}<\/strong>. JSONPath \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c \u0432 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0438\u0438 \u0441 \u043d\u0430\u0448\u0438\u043c json, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0435 <strong>$ [&#8216;name&#8217;]<\/strong> \u0438 <strong>$ .labels [&#8216;name&#8217;]<\/strong>. \u0418 \u0432 \u043a\u043e\u043d\u0446\u0435 \u043d\u0430\u0436\u0438\u043c\u0430\u0435\u043c Add.<\/p>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>9.<strong>&nbsp;<\/strong>\u0418\u0442\u0430\u043a, LLD \u0441\u043e\u0437\u0434\u0430\u043d. \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0430\u0434\u043e, \u0447\u0442\u043e\u0431\u044b \u043e\u043d \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u043b \u044d\u043b\u0435\u043c\u0435\u043d\u0442\u044b \u043d\u0430\u0448\u0435\u0439<\/p>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-326184","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/326184","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=326184"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/326184\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=326184"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=326184"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=326184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}