<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: Promise Akpan</title>
    <description>The latest articles on Forem by Promise Akpan (@prhomhyse).</description>
    <link>https://forem.com/prhomhyse</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F35701%2F7536d942-a11b-4feb-8b52-c8fff6292e4a.jpeg</url>
      <title>Forem: Promise Akpan</title>
      <link>https://forem.com/prhomhyse</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/prhomhyse"/>
    <language>en</language>
    <item>
      <title>Monitor your LEMP server with Netdata</title>
      <dc:creator>Promise Akpan</dc:creator>
      <pubDate>Fri, 01 Nov 2019 19:33:35 +0000</pubDate>
      <link>https://forem.com/prhomhyse/monitor-your-lemp-server-with-netdata-4ofh</link>
      <guid>https://forem.com/prhomhyse/monitor-your-lemp-server-with-netdata-4ofh</guid>
      <description>&lt;p&gt;&lt;a href="https://github.com/netdata/netdata" rel="noopener noreferrer"&gt;Netdata&lt;/a&gt; is a highly optimized open-source monitoring agent you install on all your systems: physical and virtual servers, containers, even IoT. &lt;br&gt;
It provides insights in real-time of everything happening on the system it runs. It is designed not to disrupt the core functionalities of systems. &lt;br&gt;
It can also run standalone as well as be integrated into existing monitoring tools like Prometheus, Graphite, Kafka, etc. &lt;/p&gt;

&lt;p&gt;In this tutorial, you will learn how to install Netdata as well as configure it to monitor Linux, Nginx, MySQL, and PHP. &lt;/p&gt;
&lt;h2&gt;
  
  
  Install Netdata
&lt;/h2&gt;

&lt;p&gt;There are &lt;a href="https://docs.netdata.cloud/packaging/installer/" rel="noopener noreferrer"&gt;several ways to install Netdata&lt;/a&gt; specific to your system or environment. &lt;br&gt;
The best and recommended way is to install directly from source using &lt;br&gt;
its automatic one-line installation, which is the default:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;bash &amp;lt;&lt;span class="o"&gt;(&lt;/span&gt;curl &lt;span class="nt"&gt;-Ss&lt;/span&gt; https://my-netdata.io/kickstart.sh&lt;span class="o"&gt;)&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The automatic installer will install any required system packages and compile Netdata directly on your system. &lt;/p&gt;

&lt;p&gt;You can view your Netdata dashboard on your browser by visiting &lt;code&gt;http://SERVER_IP:19999&lt;/code&gt;.  &lt;/p&gt;

&lt;h2&gt;
  
  
  Install Nginx
&lt;/h2&gt;

&lt;p&gt;Nginx is an HTTP and reverse proxy server, a mail proxy server, and a generic TCP/UDP proxy server used to host websites and applications of all sizes. It is a popular alternative to Apache known for its low impact on memory resources, high scalability, and its modular, event-driven architecture which can offer secure, predictable performance.&lt;/p&gt;

&lt;p&gt;There are several ways to &lt;a href="https://nginx.org/en/docs/install.html" rel="noopener noreferrer"&gt;install&lt;/a&gt; Nginx depending on your operating system. You can also build Nginx from source if you require some special functionality not available with packages.&lt;/p&gt;

&lt;p&gt;If you require some special functionality not available with packages and ports, you can &lt;a href="https://nginx.org/en/docs/configure.html" rel="noopener noreferrer"&gt;compile Nginx&lt;/a&gt; from source files. However, for this tutorial, Nginx comes bundled with the functionalities you need to let Netdata read metrics from it.&lt;/p&gt;

&lt;p&gt;To install the prebuilt Nginx package available for Ubuntu run the following:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;apt &lt;span class="nb"&gt;install &lt;/span&gt;nginx
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The prebuilt Nginx package for Ubuntu may not get updated to the latest stable version of Nginx. &lt;/p&gt;

&lt;p&gt;To install the latest stable version of Nginx on Ubuntu:&lt;/p&gt;

&lt;p&gt;Install the prerequisite packages and set up the apt repository for stable Nginx packages:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;apt &lt;span class="nb"&gt;install &lt;/span&gt;curl gnupg2 ca-certificates lsb-release
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"deb http://nginx.org/packages/ubuntu &lt;/span&gt;&lt;span class="sb"&gt;`&lt;/span&gt;lsb_release &lt;span class="nt"&gt;-cs&lt;/span&gt;&lt;span class="sb"&gt;`&lt;/span&gt;&lt;span class="s2"&gt; nginx"&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
    | &lt;span class="nb"&gt;sudo tee&lt;/span&gt; /etc/apt/sources.list.d/nginx.list
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Next, import an official Nginx signing key so apt could verify the packages authenticity:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-fsSL&lt;/span&gt; https://nginx.org/keys/nginx_signing.key | &lt;span class="nb"&gt;sudo &lt;/span&gt;apt-key add -
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Verify that you have the right key:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;apt-key fingerprint ABF5BD827BD9BF62
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The output should contain the full fingerprint &lt;code&gt;573B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62&lt;/code&gt; as follows:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pub   rsa2048 2011-08-19 &lt;span class="o"&gt;[&lt;/span&gt;SC] &lt;span class="o"&gt;[&lt;/span&gt;expires: 2024-06-14]
      573B FD6B 3D8F BC64 1079  A6AB ABF5 BD82 7BD9 BF62
uid   &lt;span class="o"&gt;[&lt;/span&gt; unknown] nginx signing key &amp;lt;signing-key@nginx.com&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Update apt repository and install Nginx with the following commands:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;apt update
&lt;span class="nb"&gt;sudo &lt;/span&gt;apt &lt;span class="nb"&gt;install &lt;/span&gt;nginx
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Install MySQL
&lt;/h2&gt;

&lt;p&gt;MySQL is an open-source relational database management system.&lt;/p&gt;

&lt;p&gt;There are also several ways to &lt;a href="https://dev.mysql.com/doc/refman/8.0/en/installing.html" rel="noopener noreferrer"&gt;install MySQL&lt;/a&gt; specific to your operating system. &lt;/p&gt;

&lt;p&gt;The MySQL APT repository provides deb packages for installing and managing the MySQL server, client, and other components on Ubuntu.&lt;/p&gt;

&lt;p&gt;Run below command to enable the repository.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;wget http://repo.mysql.com/mysql-apt-config_0.8.13-1_all.deb
&lt;span class="nb"&gt;sudo &lt;/span&gt;dpkg &lt;span class="nt"&gt;-i&lt;/span&gt; mysql-apt-config_0.8.13-1_all.deb
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;During the installation of MySQL apt config package, you can select MySQL version (8.0 or 5.7) to install on your system.&lt;/p&gt;

&lt;p&gt;Update &lt;code&gt;apt&lt;/code&gt; and install MySQL&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;apt update 
&lt;span class="nb"&gt;sudo &lt;/span&gt;apt &lt;span class="nb"&gt;install &lt;/span&gt;mysql-server
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;As a security measure, you can further secure your MySQL installation by running this command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;mysql_secure_installation
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Install PHP
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://www.php.net/manual/en/intro-whatis.php" rel="noopener noreferrer"&gt;PHP&lt;/a&gt; is an open-source general-purpose scripting language that is especially suited for web development. &lt;/p&gt;

&lt;p&gt;Like Nginx, there are &lt;a href="https://www.php.net/manual/en/install.php" rel="noopener noreferrer"&gt;several ways to install PHP&lt;/a&gt; specific to your operating system. &lt;/p&gt;

&lt;p&gt;A quick and easy one is running:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;apt &lt;span class="nb"&gt;install &lt;/span&gt;php-fpm php-mysql php-cli

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For this tutorial, you will be using the latest stable release of PHP for Ubuntu. &lt;/p&gt;

&lt;p&gt;Begin by enabling the Ondrej PHP repository:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;apt &lt;span class="nb"&gt;install &lt;/span&gt;software-properties-common
&lt;span class="nb"&gt;sudo &lt;/span&gt;add-apt-repository ppa:ondrej/php
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Update apt and install the necessary PHP packages&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;apt update
&lt;span class="nb"&gt;sudo &lt;/span&gt;apt &lt;span class="nb"&gt;install &lt;/span&gt;php-fpm php-mysql php-cli
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can now edit Nginx server block in the configuration file, so Nginx can process PHP files:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight conf"&gt;&lt;code&gt;&lt;span class="n"&gt;server&lt;/span&gt; {

    &lt;span class="c"&gt;# . . . your other code
&lt;/span&gt;
    &lt;span class="n"&gt;location&lt;/span&gt; ~ \.&lt;span class="n"&gt;php&lt;/span&gt;$ {
        &lt;span class="n"&gt;include&lt;/span&gt; &lt;span class="n"&gt;snippets&lt;/span&gt;/&lt;span class="n"&gt;fastcgi&lt;/span&gt;-&lt;span class="n"&gt;php&lt;/span&gt;.&lt;span class="n"&gt;conf&lt;/span&gt;;
        &lt;span class="n"&gt;fastcgi_pass&lt;/span&gt; &lt;span class="n"&gt;unix&lt;/span&gt;:/&lt;span class="n"&gt;run&lt;/span&gt;/&lt;span class="n"&gt;php&lt;/span&gt;/&lt;span class="n"&gt;php7&lt;/span&gt;.&lt;span class="m"&gt;3&lt;/span&gt;-&lt;span class="n"&gt;fpm&lt;/span&gt;.&lt;span class="n"&gt;sock&lt;/span&gt;;
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Restart the Nginx service so that the new configuration takes effect:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;sudo &lt;/span&gt;systemctl restart nginx
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;With your LEMP stack ready, let's proceed to configure Netdata to read metrics from Nginx, MySQL, and PHP.&lt;/p&gt;

&lt;h2&gt;
  
  
  Netdata configuration
&lt;/h2&gt;

&lt;p&gt;When Netdata is installed for the first time or restarted, it autodetects available data sources such as Nginx, PHP, MySQL, Redis, etc. &lt;/p&gt;

&lt;p&gt;Now you have to restart the Netdata service so it can auto-detect and collect metrics.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;service netdata restart
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;NOTE:&lt;/strong&gt; If Netdata isn't collecting metrics after a restart, you probably did not configure your source correctly.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Netdata + Nginx
&lt;/h3&gt;

&lt;p&gt;In order for Netdata to auto-detect an Nginx web server, you need to enable &lt;code&gt;ngx_http_stub_status_module&lt;/code&gt; and pass the &lt;code&gt;stub_status&lt;/code&gt; directive in the location block of your Nginx configuration file.&lt;/p&gt;

&lt;p&gt;Confirm if the required module is enabled or not using the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;nginx &lt;span class="nt"&gt;-V&lt;/span&gt; 2&amp;gt;&amp;amp;1 | &lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-o&lt;/span&gt; with-http_stub_status_module
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add this location block to your Nginx configuration file:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight conf"&gt;&lt;code&gt;
&lt;span class="n"&gt;location&lt;/span&gt; /&lt;span class="n"&gt;stub_status&lt;/span&gt; {
    &lt;span class="n"&gt;stub_status&lt;/span&gt;;
}
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;You can configure Netdata to monitor many remote Nginx servers other than your local Nginx server by editing the configuration file of Netdata's Nginx module with the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;/etc/netdata/edit-config python.d/nginx.conf
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Make sure to have the &lt;code&gt;ngx_http_stub_status_module&lt;/code&gt; active on any servers you want to monitor.&lt;/p&gt;

&lt;p&gt;At the near bottom of the file you will see the below uncommented to serve as a guide for you if you want to add more servers.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;localhost&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;local"&lt;/span&gt;
  &lt;span class="na"&gt;url&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;http://localhost/stub_status"&lt;/span&gt;

&lt;span class="na"&gt;remote1&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;local"&lt;/span&gt;
  &lt;span class="na"&gt;url&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="s"&gt;http://[REMOTE_IP_ADDRESS]/stub_status"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Nginx charts beautifully shown on my Netdata dashboard:&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fuser-images.githubusercontent.com%2F12263278%2F67096899-f779bf00-f1b0-11e9-8b99-b6f03760ea64.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fuser-images.githubusercontent.com%2F12263278%2F67096899-f779bf00-f1b0-11e9-8b99-b6f03760ea64.png" alt="Nginx Charts"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;
  
  
  Netdata + MySQL
&lt;/h3&gt;

&lt;p&gt;Like Nginx, Netdata can autodetect MySQL (or its drop-in replacement - MariaDB) if you meet the requirement of an already installed and running python library - &lt;a href="https://github.com/PyMySQL/mysqlclient-python" rel="noopener noreferrer"&gt;MySQLdb&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;You also need a local &lt;code&gt;netdata&lt;/code&gt; user that connects to the MySQL server on the localhost. This user will be able to gather MySQL statistics without the ability to alter any data or affect MySQL operations. &lt;/p&gt;

&lt;p&gt;To create this user, run the following:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;create user &lt;span class="s1"&gt;'netdata'&lt;/span&gt;@&lt;span class="s1"&gt;'localhost'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; 
grant usage on &lt;span class="k"&gt;*&lt;/span&gt;.&lt;span class="k"&gt;*&lt;/span&gt; to &lt;span class="s1"&gt;'netdata'&lt;/span&gt;@&lt;span class="s1"&gt;'localhost'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; 
flush privileges&lt;span class="p"&gt;;&lt;/span&gt; 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Although with the required Python library and &lt;code&gt;netdata&lt;/code&gt; user on your MySQL server you can see the charts on your Netdata dashboard, you can monitor other remote MySQL servers that have met the requirements by editing the configuration file of Netdata's MySQL module with the following command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;/etc/netdata/edit-config python.d/mysql.conf
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="c1"&gt;# Other content of the config file appear here&lt;/span&gt;
&lt;span class="nn"&gt;...&lt;/span&gt;


&lt;span class="na"&gt;remote&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;user     &lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;netdata'&lt;/span&gt;
  &lt;span class="na"&gt;host     &lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;example.org'&lt;/span&gt;
  &lt;span class="na"&gt;port     &lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="m"&gt;3306&lt;/span&gt; &lt;span class="c1"&gt;# or any port which MySQL can be accessed&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;MySQL charts on your dashboard should look like this:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fuser-images.githubusercontent.com%2F12263278%2F67079696-8f64b200-f18b-11e9-8d5f-8dadfd719bb7.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fuser-images.githubusercontent.com%2F12263278%2F67079696-8f64b200-f18b-11e9-8d5f-8dadfd719bb7.png" alt="MySQL Charts"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Netdata + PHP
&lt;/h3&gt;

&lt;p&gt;Netdata will autodetect and monitor one or more PHP-FPM instances if &lt;code&gt;php-fpm&lt;/code&gt; is enabled with &lt;a href="https://www.tecmint.com/enable-monitor-php-fpm-status-in-nginx/" rel="noopener noreferrer"&gt;status page&lt;/a&gt; and the status page can be accessed via a web server.  &lt;/p&gt;

&lt;p&gt;Run the following code to view or edit the &lt;code&gt;php-fpm&lt;/code&gt; module configuration:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;/etc/netdata/edit-config python.d/phpfpm.conf
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The file contents:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;
&lt;span class="na"&gt;update_every &lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="m"&gt;3&lt;/span&gt;
&lt;span class="na"&gt;priority     &lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="m"&gt;90100&lt;/span&gt;

&lt;span class="na"&gt;local&lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;url     &lt;/span&gt;&lt;span class="pi"&gt;:&lt;/span&gt; &lt;span class="s1"&gt;'&lt;/span&gt;&lt;span class="s"&gt;http://localhost/status'&lt;/span&gt;

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;PHP-FPM charts should appear on your Netdata dashboard like this:&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fuser-images.githubusercontent.com%2F12263278%2F67096841-da44f080-f1b0-11e9-9bbf-ddc33efa58ba.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fuser-images.githubusercontent.com%2F12263278%2F67096841-da44f080-f1b0-11e9-9bbf-ddc33efa58ba.png" alt="PHP-FPM Charts"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Conclusion
&lt;/h3&gt;

&lt;p&gt;You can set up Netdata to monitor as many services as you want even Hadoop and Kubernetes clusters.&lt;/p&gt;

&lt;p&gt;However, do not forget to restart Netdata each time you try to add new services or configurations.&lt;/p&gt;

</description>
      <category>netdata</category>
      <category>monitoring</category>
      <category>php</category>
      <category>mysql</category>
    </item>
  </channel>
</rss>
