Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
IT Security Toolszitadel v4.18.0(22.09.2026 um 11:25 Uhr)
IT Security ToolsPodroid v1.2.9(22.09.2026 um 12:05 Uhr)
IT Security NachrichtenHow the CIA captured Carlos the Jackal(22.09.2026 um 13:00 Uhr)
Sicherheitslücken (CVE)Aikido Security Unveils Altar-1 Open-Weight AI for Cybersecurity Defense(22.09.2026 um 12:50 Uhr)
Sicherheitslücken (CVE)IT Security News Hourly Summary 2026-09-22 13h : 23 posts(22.09.2026 um 13:00 Uhr)
IT Security NachrichtenHow a Managed SOC works: What happens when a cyberattack begins?(22.09.2026 um 13:02 Uhr)
Sicherheitslücken (CVE)[UPDATE] [mittel] libxml2: Schwachstelle ermöglicht Denial of Service(22.09.2026 um 12:47 Uhr)
IT Security Toolszitadel v4.18.0(22.09.2026 um 11:25 Uhr)
IT Security ToolsPodroid v1.2.9(22.09.2026 um 12:05 Uhr)
IT Security NachrichtenHow the CIA captured Carlos the Jackal(22.09.2026 um 13:00 Uhr)
Sicherheitslücken (CVE)Aikido Security Unveils Altar-1 Open-Weight AI for Cybersecurity Defense(22.09.2026 um 12:50 Uhr)
Sicherheitslücken (CVE)IT Security News Hourly Summary 2026-09-22 13h : 23 posts(22.09.2026 um 13:00 Uhr)
IT Security NachrichtenHow a Managed SOC works: What happens when a cyberattack begins?(22.09.2026 um 13:02 Uhr)
Sicherheitslücken (CVE)[UPDATE] [mittel] libxml2: Schwachstelle ermöglicht Denial of Service(22.09.2026 um 12:47 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

Monitoring and Observing My First Linux Server: A Beginner’s Guide to Prometheus & Grafana.

Have you ever wondered what’s actually happening inside a Linux server? As a DevOps engineer and learner, you will eventually move past "just running commands" to actually observing your infrastructure to know what is happening under the h…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

Have you ever wondered what’s actually happening inside a Linux server?

As a DevOps engineer and learner, you will eventually move past "just running commands" to actually observing your infrastructure to know what is happening under the hood.



So I built a simple observability stack using Prometheus and Grafana, which I called "Linux Health Sentinel". This guide walks you through that exact beginner-friendly setup to see how data flows from a raw event to a visual graph.



🔍 Monitoring vs. Observability: What's the Difference?

Before diving in, it's important to understand these two core concepts in DevOps and cloud environments:




  • Monitoring: Tells you if a system is working and/or if something is broken (e.g., "Is the CPU over 80%?").

  • Observability: helps you understand why. by looking at the data—the "signals"—the system emits.



Observability is a system, not just a tool:

sensors → data pipeline → dashboard



The 4 phases of observability





  • Phase 1 → Instrumentation (Sensors)
    Tools that emit signals from infrastructure and apps. (on the target)


  • Phase 2 → Collection (The Pipeline)
    Collectors clean, label, and route the data.


  • Phase 3 → Storage (The Library)
    Metrics, logs, and traces live in optimised databases.


  • Phase 4 → Visualisation & Alerting
    Dashboards + alerts turn data into action.



Project Goal

Visualise the real-time CPU, memory, and disc health of an Ubuntu VM using the industry-standard Prometheus and Grafana stack.



🛠️ The Tech Stack

Target → VM

Control Center → Laptop



To build my sentinel, I used the "Golden Trio" of open-source observability:




  • Node Exporter: The "spy/sensor and collector" on the VM (target) that gathers hardware stats.

  • Prometheus: The "brain and storage" that pulls data and stores it in a time-series database.

  • Grafana: The "face" that turns raw numbers into beautiful, readable dashboards.



🚀 Step-by-Step Implementation

Step 1: Set Up the "Target" (VirtualBox VM)

This VM represents a production server in a data centre.

a. Network Setup (Crucial): * In VirtualBox, select your VM > Settings > Network.

- Change "Attached to" from NAT to Bridged Adapter.

- Why? This gives the VM an IP address on your home network so your laptop can "talk" to it.

b. Start the VM and find its IP address:




hostname -I






Note this down; let's assume it is 192.168.1.50

c. Install the "Spy" (Node Exporter):

Node Exporter is a small tool that translates Linux system stats into a format Prometheus understands.




sudo apt update
sudo apt install prometheus-node-exporter -y






d. Verify: Open the browser on your laptop and go to http://192.168.1.50:9100/metrics. If you see a wall of text, the spy is active.



Step 2: Set Up the "Control Center" (Your Laptop)



Your laptop will act as the monitoring server that "pulls" data from the VM.



a. Install Prometheus (The Database):




sudo apt update
sudo apt install prometheus -y






b. Configure Prometheus to watch the VM: Edit the configuration file:




sudo nano /etc/prometheus/prometheus.yml






Scroll to the end and add this "job":




- job_name: 'ubuntu_vm'
static_configs:
- targets: ['192.168.1.50:9100']






Save and Exit (Ctrl+O, Enter, Ctrl+X).

c. Restart Prometheus:




sudo systemctl restart prometheus








Step 3: Visualise with Grafana



a. Install Grafana:




wget -q -O - https://apt.grafana.com/gpg.key | gpg --dearmor | sudo tee /usr/share/keyrings/grafana.gpg > /dev/null
sudo apt update && sudo apt install grafana -y
sudo systemctl enable --now grafana-server






b. Access Grafana: Open http://localhost:3000 (User/Pass: admin/admin).

c. Connect the dots:

- Go to Connections > Data Sources > Add Data Source.

- Select Prometheus.

- Set URL to http://localhost:9090. Click Save & Test.





d. Import the Pro Dashboard:

- Click the + (top right) > Import.

- Enter ID 1860 (this is the community standard for Node Exporter).

- Select your Prometheus data source and click Import.





💡 The Result

With just a VM, Prometheus, and Grafana, we built a real observability pipeline.

We can now see CPU, memory, and disk metrics in real time, exactly how production monitoring works in professional environments.



This small project is the foundation of modern DevOps observability. From here, you can explore:




  • alerting with Alertmanager

  • container monitoring

  • Kubernetes observability

  • logs and distributed tracing



Observability isn’t just about dashboards; it’s about understanding your systems deeply.

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Monitoring and Observing My First Linux Server: A Beginner’s Guide to Prometheus & Grafana.

Thematisch verwandte Begriffe: Monitoring, Observing, First, Linux · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-94493 | A vulnerability was detected in Gigatech PDV5701 1.0.31_240305_112640. T…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick