{"id":46,"date":"2026-08-17T00:34:45","date_gmt":"2026-08-17T03:34:45","guid":{"rendered":"https:\/\/telapreta.dev.br\/blog\/index.php\/dia-do-docker-grafana-prometheus\/"},"modified":"2026-08-17T01:02:22","modified_gmt":"2026-08-17T04:02:22","slug":"dia-do-docker-grafana-prometheus","status":"publish","type":"post","link":"https:\/\/telapreta.dev.br\/blog\/index.php\/dia-do-docker-grafana-prometheus\/","title":{"rendered":"Dia do Docker: Deploy Completo de Grafana + Prometheus + Node Exporter"},"content":{"rendered":"<div class=\"telapreta-post-body\" style=\"line-height: 1.8;font-size: 1.05rem;color: #e2e8f0\">\n<p><em>E a\u00ed pessoal! Nesta edi\u00e7\u00e3o do Dia do Docker, voc\u00ea vai aprender a subir uma stack completa de monitoramento profissional usando apenas linha de comando e Docker Compose.<\/em><\/p>\n<hr style=\"border-color: #1e293b;margin: 30px 0\" \/>\n<h2 style=\"color: #10b981;margin-top: 30px\">\ud83d\ude80 O que vamos construir?<\/h2>\n<p>Subiremos uma infraestrutura de observabilidade em segundos contendo:<\/p>\n<ul style=\"line-height: 1.8\">\n<li><strong>Node Exporter:<\/strong> Coleta m\u00e9tricas de hardware e sistema operacional (CPU, RAM, Disco, Rede).<\/li>\n<li><strong>Prometheus:<\/strong> Armazena as m\u00e9tricas em time-series database (TSDB).<\/li>\n<li><strong>Grafana:<\/strong> Exibe dashboards visuais interativos e relat\u00f3rios em tempo real.<\/li>\n<\/ul>\n<h2 style=\"color: #10b981;margin-top: 30px\">\ud83d\udce6 Arquivo docker-compose.yml<\/h2>\n<pre style=\"background: #0f172a;padding: 15px;border-radius: 8px;border: 1px solid #1e293b;color: #10b981;font-family: monospace\">\nversion: '3.8'\n\nservices:\n  prometheus:\n    image: prom\/prometheus:latest\n    container_name: prometheus\n    volumes:\n      - .\/prometheus.yml:\/etc\/prometheus\/prometheus.yml\n    ports:\n      - \"9090:9090\"\n\n  node-exporter:\n    image: prom\/node-exporter:latest\n    container_name: node-exporter\n    restart: unless-stopped\n    ports:\n      - \"9100:9100\"\n\n  grafana:\n    image: grafana\/grafana:latest\n    container_name: grafana\n    ports:\n      - \"3000:3000\"\n    environment:\n      - GF_SECURITY_ADMIN_PASSWORD=Ak47@Grafana2026\n<\/pre>\n<h2 style=\"color: #10b981;margin-top: 30px\">\u2699\ufe0f Configura\u00e7\u00e3o do Prometheus (prometheus.yml)<\/h2>\n<pre style=\"background: #0f172a;padding: 15px;border-radius: 8px;border: 1px solid #1e293b;color: #10b981;font-family: monospace\">\nglobal:\n  scrape_interval: 15s\n\nscrape_configs:\n  - job_name: 'node'\n    static_configs:\n      - targets: ['node-exporter:9100']\n<\/pre>\n<p>Ap\u00f3s rodar <code>docker compose up -d<\/code>, acesse <code>http:\/\/localhost:3000<\/code>, adicione o Prometheus como Data Source e importe o Dashboard ID <strong>1860<\/strong> para visualizar os dados instantaneamente!<\/p>\n<hr style=\"border-color: #1e293b;margin: 35px 0\" \/>\n<p style=\"color: #94a3b8;font-size: 0.95rem\"><em>Artigo originalmente publicado por <strong>Fabio Silva<\/strong> \u2014 Arquiteto de Solu\u00e7\u00f5es em Cloud, DevOps e IA Generativa.<\/em><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>E a\u00ed pessoal! Nesta edi\u00e7\u00e3o do Dia do Docker, voc\u00ea vai aprender a subir uma stack completa de monitoramento profissional usando apenas linha de comando e Docker Compose. \ud83d\ude80 O que vamos construir? Subiremos uma infraestrutura de observabilidade em segundos contendo: Node Exporter: Coleta m\u00e9tricas de hardware e sistema operacional (CPU, RAM, Disco, Rede). Prometheus: &#8230; <a title=\"Dia do Docker: Deploy Completo de Grafana + Prometheus + Node Exporter\" class=\"read-more\" href=\"https:\/\/telapreta.dev.br\/blog\/index.php\/dia-do-docker-grafana-prometheus\/\" aria-label=\"Read more about Dia do Docker: Deploy Completo de Grafana + Prometheus + Node Exporter\">Ler mais<\/a><\/p>\n","protected":false},"author":1,"featured_media":47,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,5],"tags":[],"class_list":["post-46","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-devops-cloud","category-infraestrutura"],"_links":{"self":[{"href":"https:\/\/telapreta.dev.br\/blog\/index.php\/wp-json\/wp\/v2\/posts\/46","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/telapreta.dev.br\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/telapreta.dev.br\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/telapreta.dev.br\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/telapreta.dev.br\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=46"}],"version-history":[{"count":2,"href":"https:\/\/telapreta.dev.br\/blog\/index.php\/wp-json\/wp\/v2\/posts\/46\/revisions"}],"predecessor-version":[{"id":193,"href":"https:\/\/telapreta.dev.br\/blog\/index.php\/wp-json\/wp\/v2\/posts\/46\/revisions\/193"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/telapreta.dev.br\/blog\/index.php\/wp-json\/wp\/v2\/media\/47"}],"wp:attachment":[{"href":"https:\/\/telapreta.dev.br\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=46"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/telapreta.dev.br\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=46"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/telapreta.dev.br\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=46"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}