Operations 4 min read

Master Grafana: Key Features, Installation on Linux & Docker

This guide introduces Grafana, outlines its multi‑source monitoring features, and provides step‑by‑step installation instructions for Linux using systemd and for Docker Compose, including required commands, configuration files, and how to create and save a basic dashboard.

Efficient Ops
Efficient Ops
Efficient Ops
Master Grafana: Key Features, Installation on Linux & Docker

What is Grafana

Grafana is an open‑source monitoring and visualization platform widely used for infrastructure, application performance, log management and business data visualization. It supports many data sources such as time‑series databases (Prometheus, CloudWatch), log tools (Loki, Elasticsearch), SQL/NoSQL databases, CI/CD tools, and more.

Key Features

Multiple data sources : supports 164 types including time‑series, logs, databases and CI/CD.

Monitoring visualization : flexible chart types for intuitive data display.

Dynamic dashboards : show multiple dimensions like time range or data source.

Convenient data search : dynamic queries with real‑time visual results.

Installation & Deployment

Linux (systemd)

sudo systemctl daemon-reload
sudo systemctl start grafana-server
sudo systemctl status grafana-server   # verify status
sudo systemctl enable grafana-server.service   # enable at boot
sudo systemctl edit grafana-server.service
[Service]
CapabilityBoundingSet=CAP_NET_BIND_SERVICE
AmbientCapabilities=CAP_NET_BIND_SERVICE
PrivateUsers=false
sudo systemctl restart grafana-server

Docker Compose

Create a docker-compose.yaml file and run docker compose -d to start Grafana.

version: '3.8'
services:
  grafana:
    image: grafana/grafana:latest
    container_name: grafana
    restart: unless-stopped
    environment:
      - TERM=linux
      - GF_INSTALL_PLUGINS=grafana-clock-panel,grafana-polystat-panel
    ports:
      - '3000:3000'
    volumes:
      - 'grafana_storage:/var/lib/grafana'
volumes:
  grafana_storage: {}

After the container is up, open http://localhost:3000 (default credentials admin/admin, password change required). In the Grafana UI, create a new dashboard, add a visualization, select a data source, and Grafana will generate a sample “Random Walk” dashboard. Save the dashboard to display your data.

Empty dashboard state
Empty dashboard state
MonitoringDockeroperationsInstallationVisualizationGrafana
Efficient Ops
Written by

Efficient Ops

This public account is maintained by Xiaotianguo and friends, regularly publishing widely-read original technical articles. We focus on operations transformation and accompany you throughout your operations career, growing together happily.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.