{"id":6565,"date":"2024-10-10T14:47:08","date_gmt":"2024-10-10T11:47:08","guid":{"rendered":"https:\/\/www.microimpuls.com\/docs\/mistats\/%d1%83%d1%81%d1%82%d0%b0%d0%bd%d0%be%d0%b2%d0%ba%d0%b0"},"modified":"2026-02-09T14:05:05","modified_gmt":"2026-02-09T11:05:05","slug":"installation","status":"publish","type":"docs","link":"https:\/\/microimpuls.com\/en\/docs\/mistats\/installation","title":{"rendered":"Installation and configuration"},"content":{"rendered":"<h2 class=\"wp-block-heading\">Server requirements<\/h2>\n\n\n\n<p>Minimum server requirements for Mistats installation:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Processor: 4 cores with a frequency of more than 3.5 GHz<\/li>\n\n\n\n<li>RAM: 8GB<\/li>\n\n\n\n<li>ROM: 60 GB<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Installation<\/h2>\n\n\n\n<p>To work MiStats you need to have the following software versions:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Smarty &gt;= 2.0<\/li>\n\n\n\n<li><a rel=\"noreferrer noopener\" href=\"https:\/\/clickhouse.com\/docs\/ru\/getting-started\/install#install-from-deb-packages\" target=\"_blank\">ClickHouse<\/a> &gt;= 24<\/li>\n<\/ol>\n\n\n\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><\/p>\n<cite><strong>Note 1:<\/strong> ClickHouse requires support for SSE 4.2 CPU instructions<\/cite><\/blockquote>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><\/p>\n<cite><strong>Note 2:<\/strong> recommended OS for ClickHouse \u2014 Debian 11 <\/cite><\/blockquote>\n\n\n\n<p>Before starting the installation, we recommend checking the time settings on the server. It is necessary that the established time zone on the server for MiStats coincides with the time zones on the servers on which Smarty and MongoDB are deployed. <\/p>\n\n\n\n<p>You can check the time zone using the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>timedatectl | grep 'Time zone'<\/code><\/pre>\n\n\n\n<p>If the servers have different values of Time zone, then you can change it as follows (as an example, the time zone of Moscow is given: GMT+3):<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>timedatectl set-timezone Europe\/Moscow<\/code><\/pre>\n\n\n\n<p>Check that the time zone has been changed:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ timedatectl | grep 'Time zone'\nTime zone: Europe\/Moscow (MSK, +0300)<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Installation of ClickHouse<\/h3>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt-get install -y apt-transport-https ca-certificates curl gnupg pwgen python3-pip python-is-python3\ncurl -fsSL 'https:\/\/packages.clickhouse.com\/rpm\/lts\/repodata\/repomd.xml.key' | sudo gpg --dearmor -o \/usr\/share\/keyrings\/clickhouse-keyring.gpg\n\necho \"deb [signed-by=\/usr\/share\/keyrings\/clickhouse-keyring.gpg] https:\/\/packages.clickhouse.com\/deb stable main\" | sudo tee \\\n    \/etc\/apt\/sources.list.d\/clickhouse.list\nsudo apt-get update\n\nsudo apt-get install -y clickhouse-server clickhouse-client\n\nsudo service clickhouse-server start<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">MiStats installation<\/h3>\n\n\n\n<p>Download the package is available in the Operator's Personal Account. After a successful download, you need to unpack the package and set the desired dependencies:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo dpkg -i mistats-*.deb\npip install -r \/usr\/share\/microimpuls\/mistats\/backend\/requirements.txt<\/pre>\n\n\n\n<p>Next, you should configure the connection between Mistats and Clickhouse, the CLI opening command for Clickhouse:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">if <code>Clickhouse<\/code> miStats are on the same server\n<code>clickhouse-client<\/code>\n\n# if ClickHouse is on a dedicated server\nclickhouse-client --host  --secure --port 9940 --user  --password <\/pre>\n\n\n\n<p>Creation of DB and user:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>create database smarty_stats;<\/code>\nexport CHPASSWORD='pwgen -s 16'\necho $CHPASSWORD\necho \"create user smarty identified by '$CHPASSWORD';\" | clickhouse-client -d smarty_stats -u default --password \necho \"create role smarty;\" | clickhouse-client -d smarty_stats -u default --password \necho \"grant all on smarty_stats.* to smarty;\" | clickhouse-client -d smarty_stats -u default --password \necho \"grant smarty to smarty;\" | clickhouse-client -d smarty_stats -u default --password \nsed -i -e 's\/CH_PASSWORD = None\/'\"CH_PASSWORD = \\\"$CHPASSWORD\\\\\"\"'\/g' \/usr\/share\/microimpuls\/mistats\/backend\/settings\/configuration.py<\/pre>\n\n\n\n<p>After all the actions, you need to edit the file <code>\/usr\/share\/microimpuls\/mistats\/backend\/settings\/configuration.py<\/code> as follows:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">CH_HOST = \"localhost\" # IP ClickHouse\nCH_PORT = None #ClickHouse Port\nCH_DATABASE = \"smarty_stats\"\nCH_USER = \"smarty\" # Account name\nCH_PASSWORD = $CHPASSWORD\nPORT = 8095 # The server host port to which statistics will be sent\nHOST = \"0.0.0.0\" # IP of the server host to which the statistics will be sent\nUVICORN_WORKERS = 2 # Number of Workshops\nLOG_LEVEL = \"info\" # Logging level<\/pre>\n\n\n\n<p>The following is the initialization of ClickHouse: <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">python \/usr\/share\/microimpuls\/mistats\/backend\/commands\/init_db.py<\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><\/p>\n<cite><strong>Note 3:<\/strong> if there is an error at launch <strong>\u201cNo module named Clickhouse\u201d<\/strong> a command must be executed at the terminal <br><em><code>export PYTHONPATH=\"\/usr\/share\/microimpuls\/mistats\/backend\"<\/code><\/em><\/cite><\/blockquote>\n\n\n\n<p>And the actual launch of MiStats: <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">python \/usr\/share\/microimpuls\/mistats\/backend\/run.py<\/pre>\n\n\n\n<p>Next, you need to check whether there is a MiStats service in the system as a command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo systemctl status mistat.service<\/pre>\n\n\n\n<p>If the service is not running, it should be started:<\/p>\n\n\n\n<pre id=\"block-8ef273f4-9d13-413e-80e6-7d48865bc90b\" class=\"wp-block-preformatted\">sudo systemctl start mistat.service<\/pre>\n\n\n\n<p>If the service was not found at all, then create a file for the background work of the process <code>mistats.service<\/code> file <code>\/etc\/systemd\/system<\/code> with the following contents:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[Unit]\nDescription=MiStats service\nAfter=network.target.\n\n[Service]\nType=simple\nExecStart=\/usr\/bin\/python \/usr\/share\/microimpuls\/mistats\/backend\/run.py\n\n[Install]\nWantedBy=multi-user.target<\/pre>\n\n\n\n<p>After creating a service file, run commands:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo systemctl daemon reload\nsudo systemctl enable mistat.service<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Configure the connection to MiStats on the Smarty side<\/h2>\n\n\n\n<p>In the Smarty configuration file in the section <code>INSTALLED_APPS<\/code> you need to add a parameter <code>viewstats<\/code> if the module <code>viewstats<\/code> not previously configured) and make sure that the license key allows the use of this module. <\/p>\n\n\n\n<p>Next, you need to add connection options to MiStats to the configuration:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># \u0430\u0434\u0440\u0435\u0441 MiStats\nVIEWSTATS_MISTATS_BASE_URL = 'http:\/\/127.0.0.1:8000'\n# \u041a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0432 Redis, \u043f\u043e \u0434\u043e\u0441\u0442\u0438\u0436\u0435\u043d\u0438\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0434\u0430\u043d\u043d\u044b\u0435 \u0432\u044b\u0433\u0440\u0443\u0436\u0430\u044e\u0442\u0441\u044f \u0432 MiStats\nVIEWSTATS_BUFFER_MAX_COUNT = 2500000<\/pre>\n\n\n\n<p>To apply the settings, you need to restart the uWSGI:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo service uwsgi restart<\/pre>\n<\/div><\/div>\n\n\n\n<p>Last step \u2014 add management commands to the crown to send data from Smarty to MiStats (recommended interval \u2014 5 minutes):<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">smarty_manage push_stats --settings=settings.<\/pre>\n\n\n\n<p>In order for subscriber devices to start sending statistics to the server, it is necessary to enable its sending in the administration panel on the page \u00ab STB and application settings\u00bb (checkbox \u00ab Enable the collection of statistical data on the Smarty\u00bb server).<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1300\" height=\"374\" src=\"https:\/\/microimpuls.com\/wp-content\/uploads\/2020\/10\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-2025-01-15.png\" alt=\"\" class=\"wp-image-7060\"\/><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">Logging configuration with ClickHouse<\/h2>\n\n\n\n<p>By default, ClickHouse writes a lot of internal logs with no storage limit, which quickly destroys the place even in the absence of record keeping.<\/p>\n\n\n\n<p>To shut down in <code>\/etc\/clickhouse-server\/config.xml<\/code> each log (configs with _log prefix) must be registered <code>ttl<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><br><br>system<br>&lt;table&gt;query_log&lt;\/table&gt;<br>toYYYYMM(event_date)<br>Event_date + INTERVAL 7 DAY<br>7500<br><br><br>  <br>      system<br>      &lt;table&gt;trace&lt;\/table&gt;<br>      toYYYYMM(event_date)<br>      Event_date + INTERVAL 1 DAY<br>      7500<br>  <br>  <br>  <br>      system<br>      &lt;table&gt;metric_log&lt;\/table&gt;<br>      toYYYYMM(event_date)<br>      event_date + INTERVAL 3 DAY<br>      7500<br>  <br><br><\/pre>\n\n\n\n<p>It is important to limit <code>trace<\/code>, who writes a lot. If necessary <code>ttl<\/code> it can be scaled up. You can check the size by requesting ClickHouse:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">SELECT table,<br>formatReadableSize(sum(bytes)) as size<br>FROM system.parts<br>WHERE database = 'system'<br>Group by table<br>ORDER BY sum(bytes) DESC;<\/pre>\n\n\n\n<p>And to clean, namely to remove all data from the tables, you need:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">TRUNCATE TABLE system.query_log;<br>TRUNCATE TABLE system.trace_log;<br>TRUNCATE TABLE system.metric_log;<\/pre>","protected":false},"featured_media":0,"parent":6562,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_links_to":"","_links_to_target":""},"doc_tag":[],"class_list":["post-6565","docs","type-docs","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/microimpuls.com\/en\/docs\/mistats\/installation\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f\" \/>\n<meta property=\"og:description\" content=\"\u0422\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 Mistats: \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b MiStats \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u043c\u0435\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 \u041f\u041e: \u041f\u0435\u0440\u0435\u0434 \u043d\u0430\u0447\u0430\u043b\u043e\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435. \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e, \u0447\u0442\u043e\u0431\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0447\u0430\u0441\u043e\u0432\u043e\u0439 \u043f\u043e\u044f\u0441 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0434\u043b\u044f MiStats \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u043b \u0441 \u0447\u0430\u0441\u043e\u0432\u044b\u043c\u0438 \u043f\u043e\u044f\u0441\u0430\u043c\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044b Smarty \u0438 MongoDB. \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0447\u0430\u0441\u043e\u0432\u043e\u0439 \u043f\u043e\u044f\u0441 \u043c\u043e\u0436\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/microimpuls.com\/en\/docs\/mistats\/installation\/\" \/>\n<meta property=\"og:site_name\" content=\"Microimpuls\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-09T11:05:05+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/microimpuls.com\/docs\/mistats\/installation\",\"url\":\"https:\/\/microimpuls.com\/docs\/mistats\/installation\",\"name\":\"\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f\",\"isPartOf\":{\"@id\":\"https:\/\/micro.im\/#website\"},\"datePublished\":\"2024-10-10T11:47:08+00:00\",\"dateModified\":\"2026-02-09T11:05:05+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/microimpuls.com\/docs\/mistats\/installation#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/microimpuls.com\/docs\/mistats\/installation\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/microimpuls.com\/docs\/mistats\/installation#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430\",\"item\":\"https:\/\/micro.im\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MiStats\",\"item\":\"https:\/\/microimpuls.com\/docs\/mistats\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/micro.im\/#website\",\"url\":\"https:\/\/micro.im\/\",\"name\":\"Microimpuls\",\"description\":\"\u041a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u043d\u044b\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0434\u043b\u044f OTT \u0438 IPTV\",\"publisher\":{\"@id\":\"https:\/\/micro.im\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/micro.im\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/micro.im\/#organization\",\"name\":\"Microimpuls\",\"url\":\"https:\/\/micro.im\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/micro.im\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/microimpuls.com\/wp-content\/uploads\/2024\/12\/mi-logo-square-en-black.png\",\"contentUrl\":\"https:\/\/microimpuls.com\/wp-content\/uploads\/2024\/12\/mi-logo-square-en-black.png\",\"width\":208,\"height\":219,\"caption\":\"Microimpuls\"},\"image\":{\"@id\":\"https:\/\/micro.im\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Installation and configuration","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/microimpuls.com\/en\/docs\/mistats\/installation\/","og_locale":"en_US","og_type":"article","og_title":"\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f","og_description":"\u0422\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0435 \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u044f \u043a \u0441\u0435\u0440\u0432\u0435\u0440\u0443 \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 Mistats: \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0414\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b MiStats \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u0438\u043c\u0435\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 \u041f\u041e: \u041f\u0435\u0440\u0435\u0434 \u043d\u0430\u0447\u0430\u043b\u043e\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435. \u041d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e, \u0447\u0442\u043e\u0431\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u0447\u0430\u0441\u043e\u0432\u043e\u0439 \u043f\u043e\u044f\u0441 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u0434\u043b\u044f MiStats \u0441\u043e\u0432\u043f\u0430\u0434\u0430\u043b \u0441 \u0447\u0430\u0441\u043e\u0432\u044b\u043c\u0438 \u043f\u043e\u044f\u0441\u0430\u043c\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445, \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0440\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044b Smarty \u0438 MongoDB. \u041f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0447\u0430\u0441\u043e\u0432\u043e\u0439 \u043f\u043e\u044f\u0441 \u043c\u043e\u0436\u043d\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e [&hellip;]","og_url":"https:\/\/microimpuls.com\/en\/docs\/mistats\/installation\/","og_site_name":"Microimpuls","article_modified_time":"2026-02-09T11:05:05+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/microimpuls.com\/docs\/mistats\/installation","url":"https:\/\/microimpuls.com\/docs\/mistats\/installation","name":"Installation and configuration","isPartOf":{"@id":"https:\/\/micro.im\/#website"},"datePublished":"2024-10-10T11:47:08+00:00","dateModified":"2026-02-09T11:05:05+00:00","breadcrumb":{"@id":"https:\/\/microimpuls.com\/docs\/mistats\/installation#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/microimpuls.com\/docs\/mistats\/installation"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/microimpuls.com\/docs\/mistats\/installation#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u0413\u043b\u0430\u0432\u043d\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430","item":"https:\/\/micro.im\/"},{"@type":"ListItem","position":2,"name":"MiStats","item":"https:\/\/microimpuls.com\/docs\/mistats"},{"@type":"ListItem","position":3,"name":"\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f"}]},{"@type":"WebSite","@id":"https:\/\/micro.im\/#website","url":"https:\/\/micro.im\/","name":"Microimpulses","description":"Comprehensive solutions for OTT and IPTV","publisher":{"@id":"https:\/\/micro.im\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/micro.im\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/micro.im\/#organization","name":"Microimpulses","url":"https:\/\/micro.im\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/micro.im\/#\/schema\/logo\/image\/","url":"https:\/\/microimpuls.com\/wp-content\/uploads\/2024\/12\/mi-logo-square-en-black.png","contentUrl":"https:\/\/microimpuls.com\/wp-content\/uploads\/2024\/12\/mi-logo-square-en-black.png","width":208,"height":219,"caption":"Microimpuls"},"image":{"@id":"https:\/\/micro.im\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/docs\/6565","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/comments?post=6565"}],"version-history":[{"count":23,"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/docs\/6565\/revisions"}],"predecessor-version":[{"id":8950,"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/docs\/6565\/revisions\/8950"}],"up":[{"embeddable":true,"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/docs\/6562"}],"next":[{"title":"Data import","link":"https:\/\/microimpuls.com\/en\/docs\/mistats\/migration","href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/docs\/6843"}],"prev":[{"title":"Description","link":"https:\/\/microimpuls.com\/en\/docs\/mistats\/about","href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/docs\/6564"}],"wp:attachment":[{"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/media?parent=6565"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/microimpuls.com\/en\/wp-json\/wp\/v2\/doc_tag?post=6565"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}