Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

โ€œInvest in yourself โ€” your confidence is always worth it.โ€

Explore Cosmetic Hospitals

Start your journey today โ€” compare options in one place.

Graphite: How to install and Configure graphite monitoring tool


docker-compose.yml
root@ip-172-31-37-11:~/graphite-linux-demo# more docker-compose.yml
version: "3.8"

services:
  graphite:
    image: graphiteapp/graphite-statsd:latest
    container_name: graphite
    restart: unless-stopped
    ports:
      - "8080:80"          # Graphite Web UI
      - "2003:2003"        # Carbon plaintext TCP
      - "2004:2004"        # Carbon pickle
      - "8125:8125/udp"    # StatsD UDP
      - "8126:8126"        # StatsD admin
    volumes:
      - graphite_data:/opt/graphite/storage
      - ./storage-schemas.conf:/opt/graphite/conf/storage-schemas.conf

  telegraf:
    image: telegraf:latest
    container_name: telegraf
    restart: unless-stopped
    depends_on:
      - graphite
    user: root
    volumes:
      - ./telegraf.conf:/etc/telegraf/telegraf.conf:ro
      - /:/hostfs:ro
      - /var/run/docker.sock:/var/run/docker.sock:ro
    environment:
      HOST_MOUNT_PREFIX: /hostfs

volumes:
  graphite_data:
root@ip-172-31-37-11:~/graphite-linux-demo# Code language: PHP (php)

root@ip-172-31-37-11:~/graphite-linux-demo# more storage-schemas.conf 
[telegraf]
pattern = ^telegraf\.
retentions = 10s:1d,1m:7d,10m:30d

[default]
pattern = .*
retentions = 10s:1d,1m:7d,10m:30d
root@ip-172-31-37-11:~/graphite-linux-demo# Code language: PHP (php)

root@ip-172-31-37-11:~/graphite-linux-demo# more telegraf.conf
[agent]
  interval = "10s"
  round_interval = true
  hostname = "linux-demo"
  omit_hostname = false

[[outputs.graphite]]
  servers = ["graphite:2003"]
  prefix = "telegraf"
  template = "host.measurement.field"

[[inputs.cpu]]
  percpu = true
  totalcpu = true
  collect_cpu_time = false
  report_active = true

[[inputs.mem]]

[[inputs.swap]]

[[inputs.system]]

[[inputs.disk]]
  ignore_fs = ["tmpfs", "devtmpfs", "devfs", "iso9660", "overlay", "aufs", "squashfs", "nsfs", "cgroup", "cgroup2"]

[[inputs.net]]

[[inputs.kernel]]

[[inputs.processes]]
root@ip-172-31-37-11:~/graphite-linux-demo# Code language: PHP (php)

Commands to run all setup

docker-compose up -d

docker exec -it graphite find /opt/graphite/storage/whisper/telegraf -type f | head -20

docker exec -it graphite find /opt/graphite/storage/whisper/telegraf -type f | sed 's#/opt/graphite/storage/whisper/##; s#/#.#g; s#.wsp$##' | sortCode language: JavaScript (javascript)

root@ip-172-31-37-11:~/graphite-linux-demo# docker ps
CONTAINER ID   IMAGE                                COMMAND                  CREATED      STATUS      PORTS                                                                                                                                                                                                                                                  NAMES
e7345a01ea59   telegraf:latest                      "/entrypoint.sh teleโ€ฆ"   3 days ago   Up 3 days   8092/udp, 8125/udp, 8094/tcp                                                                                                                                                                                                                           telegraf
5d1ad13e09fd   graphiteapp/graphite-statsd:latest   "/entrypoint"            3 days ago   Up 3 days   2013-2014/tcp, 2023-2024/tcp, 8080/tcp, 0.0.0.0:2003-2004->2003-2004/tcp, [::]:2003-2004->2003-2004/tcp, 0.0.0.0:8126->8126/tcp, [::]:8126->8126/tcp, 8125/tcp, 0.0.0.0:8125->8125/udp, [::]:8125->8125/udp, 0.0.0.0:8080->80/tcp, [::]:8080->80/tcp   graphite
root@ip-172-31-37-11:~/graphite-linux-demo# Code language: PHP (php)

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services โ€” all in one place.

Explore Hospitals
Iโ€™m a DevOps/SRE/DevSecOps/Cloud Expert passionate about sharing knowledge and experiences. I have worked at <a href="https://www.cotocus.com/">Cotocus</a>. I share tech blog at <a href="https://www.devopsschool.com/">DevOps School</a>, travel stories at <a href="https://www.holidaylandmark.com/">Holiday Landmark</a>, stock market tips at <a href="https://www.stocksmantra.in/">Stocks Mantra</a>, health and fitness guidance at <a href="https://www.mymedicplus.com/">My Medic Plus</a>, product reviews at <a href="https://www.truereviewnow.com/">TrueReviewNow</a> , and SEO strategies at <a href="https://www.wizbrand.com/">Wizbrand.</a> Do you want to learn <a href="https://www.quantumuting.com/">Quantum Computing</a>? <strong>Please find my social handles as below;</strong> <a href="https://www.rajeshkumar.xyz/">Rajesh Kumar Personal Website</a> <a href="https://www.youtube.com/TheDevOpsSchool">Rajesh Kumar at YOUTUBE</a> <a href="https://www.instagram.com/rajeshkumarin">Rajesh Kumar at INSTAGRAM</a> <a href="https://x.com/RajeshKumarIn">Rajesh Kumar at X</a> <a href="https://www.facebook.com/RajeshKumarLog">Rajesh Kumar at FACEBOOK</a> <a href="https://www.linkedin.com/in/rajeshkumarin/">Rajesh Kumar at LINKEDIN</a> <a href="https://www.wizbrand.com/rajeshkumar">Rajesh Kumar at WIZBRAND</a> <a href="https://www.rajeshkumar.xyz/dailylogs">Rajesh Kumar DailyLogs</a>

Related Posts

Ruby on Rails vs Node.js: Performance, Speed, and Scalability Compared

Choosing between Ruby on Rails and Node.js is a common decision when building modern web applications. Both frameworks power large-scale products, but they approach performance, concurrency, and…

Read More

How Zero-Knowledge Coprocessors Are Reshaping Web3 Computation

Developers often hit a brick wall when building decentralized apps. Standard infrastructure just fails to keep up. Clogging a main network with heavy workloads leads to slow…

Read More

5 Top Developer Experience (DevEx) Insight Tools for 2026

Developer experience has evolved from an internal engineering concern into a measurable operational discipline. As software organizations scale across distributed cloud environments, platform engineering initiatives, AI-assisted development…

Read More

Top 10 AI Tools to Automate Repetitive Documents For DevOps Teamsย 

DevOps teams have automated deployingโ€š testingโ€š monitoringโ€š and rolling back changesโ€š but documentation layer automation is a gap that still incurs time costโ€ค Gartner predicts by 2026…

Read More

Customer Loyalty Strategy for SaaS and eCommerce: How to Pick the Right Software

Customer Loyalty Strategy for SaaS and eCommerce: How to Pick the Right Software TL;DR Retaining a customer costs 5 to 25 times less than acquiring a new…

Read More

Top 10 Sales Enablement Tools: Features, Pros, Cons & Comparison

Introduction Sales Enablement Tools are platforms designed to equip sales teams with the right content, insights, training, and data at the right timeโ€”so they can sell more…

Read More
Subscribe
Notify of
guest
0 Comments
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
Jason Mitchell
Jason Mitchell
25 days ago

Really useful guide for anyone working with Graphite monitoring. The instructions are simple, clear, and easy to follow.

0
Would love your thoughts, please comment.x
()
x