Introduction

Netdata is a free, open-source, real-time monitoring and performance troubleshooting tool. This guide will walk you through the process of installing and monitoring services using Netdata on Debian 12, both manually and using Ansible.

Prerequisites

Before you begin, ensure you have:

  1. A Debian 12 server or desktop system
  2. Root or sudo privileges

Manual Installation

Step 1: Install Netdata

Run the following commands to install Netdata:

bash <(curl -Ss https://my-netdata.io/kickstart.sh)

Step 2: Access Netdata

Once installed, you can access the Netdata dashboard by navigating to http://localhost:19999 in your web browser.

Ansible Installation

Step 1: Install Ansible

Install Ansible on your local machine:

sudo apt update
sudo apt install -y ansible

Step 2: Create Ansible Playbook

Create a playbook to install Netdata:

nano install_netdata.yml

Add the following content to the playbook:

---
- hosts: all
  become: true
  tasks:
    - name: Install Netdata
      shell: bash <(curl -Ss https://my-netdata.io/kickstart.sh)

Step 3: Run Ansible Playbook

Run the Ansible playbook to install Netdata:

ansible-playbook install_netdata.yml -i localhost,

Monitoring Services

Step 1: Access Netdata Dashboard

Once installed, you can access the Netdata dashboard by navigating to http://localhost:19999 in your web browser.

Step 2: Add Services

To monitor specific services, click on the "Add a new chart" button on the dashboard and select the desired service from the list.

Conclusion

Congratulations! You have successfully installed and monitored services using the Netdata monitoring tool on Debian 12, both manually and using Ansible. You can now use Netdata to monitor the performance of your system and services in real-time.

Was this answer helpful? 0 Users Found This Useful (0 Votes)