Financial Infrastructure · DevOps · Boston

Engineering inside
financial services.

Ten years across private equity, retail, and asset management. Real technical experience covering infrastructure, cloud, security, and trading systems. Written plainly to help other engineers navigate this world.

Michael Harlow
Michael Harlow // sys.ghost  ·  Boston, MA
☕ Buy me a coffee
Latest post
Every engineering org I talk to is running AI agents somewhere in production now. Almost none of them have figured out how to operate them the way we operate everything else that touches customer data.
Jul 14, 2026 · 11 min read
Read →
Latest post
Every engineering org I talk to is running AI agents somewhere in production now. Almost none of them have figured out how to operate them the way we operate everything else that touches customer data.
Jul 14, 2026 · 11 min read
Read →
All posts

Archive

We scheduled a Technology Connect event for our engineering team and built a lineup of games around AI and infrastructure topics. Here's how we put it together and what I'd do differently.
← Back to posts
Infrastructure Apr 12, 2026 · 15 min read

Prometheus and Grafana from Scratch: A Real Monitoring Stack in an Hour

Prometheus and Grafana from Scratch: A Real Monitoring Stack in an Hour

Monitoring is one of those things that seems complicated from the outside and is actually quite approachable once you just sit down and do it. This guide walks through setting up a real Prometheus and Grafana monitoring stack on a single Ubuntu 22.04 server, from nothing to working dashboards.

Before we start: a quick explanation of what these tools are and how they relate to each other.

Prometheus is a time-series database and metrics collection system. It works by "scraping" - periodically making HTTP requests to configured targets and storing the numeric values it gets back. Those targets are called "exporters."

Node Exporter is an exporter that exposes system metrics from the machine it runs on: CPU usage, memory, disk I/O, network traffic. It's the most common starting point.

Grafana is the visualisation layer. It connects to Prometheus (and many other data sources) and lets you build dashboards from the metrics it has stored.

The flow is: Node Exporter exposes metrics → Prometheus scrapes and stores them → Grafana queries Prometheus and displays them.

Step 1: Create a dedicated user for Prometheus

Never run monitoring daemons as root:

bash
sudo useradd --no-create-home --shell /bin/false prometheus
sudo useradd --no-create-home --shell /bin/false node_exporter

Create directories Prometheus will use:

bash
sudo mkdir -p /etc/prometheus /var/lib/prometheus
sudo chown prometheus:prometheus /etc/prometheus /var/lib/prometheus

Step 2: Download and install Prometheus

Find the latest version at https://prometheus.io/download/ - at time of writing it's 2.51.0. Replace the version below if a newer one is available:

bash
cd /tmp
wget https://github.com/prometheus/prometheus/releases/download/v2.51.0/prometheus-2.51.0.linux-amd64.tar.gz
tar xvf prometheus-2.51.0.linux-amd64.tar.gz
cd prometheus-2.51.0.linux-amd64

Copy the binaries:

bash
sudo cp prometheus /usr/local/bin/
sudo cp promtool /usr/local/bin/
sudo chown prometheus:prometheus /usr/local/bin/prometheus /usr/local/bin/promtool

Copy the default configuration files:

bash
sudo cp -r consoles /etc/prometheus/
sudo cp -r console_libraries /etc/prometheus/
sudo chown -R prometheus:prometheus /etc/prometheus/consoles /etc/prometheus/console_libraries

Step 3: Configure Prometheus

Create the main Prometheus config file:

bash
sudo nano /etc/prometheus/prometheus.yml

Paste this configuration:

yaml
global:
  scrape_interval: 15s
  evaluation_interval: 15s

alerting:
alertmanagers:
- static_configs:
- targets: []

rule_files: []

scrapeconfigs:
- job
name: 'prometheus'
static_configs:
- targets: ['localhost:9090']

  • jobname: 'nodeexporter'
  • static_configs:
  • - targets: ['localhost:9100']
  • ```

This tells Prometheus to scrape itself (port 9090) and Node Exporter (port 9100) every 15 seconds.

Set ownership:

bash
sudo chown prometheus:prometheus /etc/prometheus/prometheus.yml

Step 4: Create a systemd service for Prometheus

bash
sudo nano /etc/systemd/system/prometheus.service

Paste:

ini
[Unit]
Description=Prometheus Monitoring
Wants=network-online.target
After=network-online.target

[Service]
User=prometheus
Group=prometheus
Type=simple
ExecStart=/usr/local/bin/prometheus \
--config.file=/etc/prometheus/prometheus.yml \
--storage.tsdb.path=/var/lib/prometheus/ \
--web.console.templates=/etc/prometheus/consoles \
--web.console.libraries=/etc/prometheus/console_libraries \
--storage.tsdb.retention.time=30d
Restart=always

[Install]
WantedBy=multi-user.target
```

--storage.tsdb.retention.time=30d keeps 30 days of metrics. Adjust based on your available disk space - 30 days of typical system metrics is around 1-2GB per host.

Enable and start:

bash
sudo systemctl daemon-reload
sudo systemctl enable prometheus
sudo systemctl start prometheus
sudo systemctl status prometheus

You should see active (running). If not, check logs:

bash
sudo journalctl -u prometheus -f

Prometheus is now running at http://your-server-ip:9090.

Step 5: Install Node Exporter

bash
cd /tmp
wget https://github.com/prometheus/node_exporter/releases/download/v1.7.0/node_exporter-1.7.0.linux-amd64.tar.gz
tar xvf node_exporter-1.7.0.linux-amd64.tar.gz
sudo cp node_exporter-1.7.0.linux-amd64/node_exporter /usr/local/bin/
sudo chown node_exporter:node_exporter /usr/local/bin/node_exporter

Create the systemd service:

bash
sudo nano /etc/systemd/system/node_exporter.service
ini
[Unit]
Description=Node Exporter
Wants=network-online.target
After=network-online.target

[Service]
User=nodeexporter
Group=node
exporter
Type=simple
ExecStart=/usr/local/bin/node_exporter
Restart=always

[Install]
WantedBy=multi-user.target
```

bash
sudo systemctl daemon-reload
sudo systemctl enable node_exporter
sudo systemctl start node_exporter
sudo systemctl status node_exporter

Test that Node Exporter is exposing metrics:

bash
curl http://localhost:9100/metrics | head -20

You should see a wall of text that starts with # HELP lines describing available metrics.

Step 6: Verify Prometheus is scraping Node Exporter

Open the Prometheus UI at http://your-server-ip:9090. Go to Status > Targets.

You should see two targets: prometheus and node_exporter, both with state UP. If Node Exporter shows DOWN, check that it's running and that the port is correct.

Try a quick query in the Prometheus UI. In the search box, type:

text
node_cpu_seconds_total

Press Execute. You should see a table of values. This is CPU usage broken down by mode (idle, user, system, etc.).

Step 7: Install Grafana

bash
sudo apt install -y software-properties-common
wget -q -O - https://packages.grafana.com/gpg.key | sudo apt-key add -
echo "deb https://packages.grafana.com/oss/deb stable main" | sudo tee /etc/apt/sources.list.d/grafana.list
sudo apt update
sudo apt install grafana -y

Enable and start:

bash
sudo systemctl daemon-reload
sudo systemctl enable grafana-server
sudo systemctl start grafana-server
sudo systemctl status grafana-server

Grafana is now running at http://your-server-ip:3000.

Step 8: Configure Grafana

Open the Grafana UI in your browser. Default credentials are admin / admin. You'll be prompted to change the password immediately - do it.

Add Prometheus as a data source:

  1. Click the gear icon (Configuration) in the left sidebar
  2. Click Data Sources
  3. Click Add data source
  4. Select Prometheus
  5. Set URL to http://localhost:9090
  6. Click Save & Test

You should see "Data source is working."

Import the Node Exporter dashboard:

Someone has already built a comprehensive Node Exporter dashboard and published it to Grafana's dashboard library. No need to build your own from scratch.

  1. Click the + icon in the left sidebar
  2. Click Import
  3. Enter dashboard ID 1860 in the "Import via grafana.com" field
  4. Click Load
  5. Select your Prometheus data source from the dropdown
  6. Click Import

You now have a full dashboard showing CPU, memory, disk, network, and system load for your server.

Step 9: Set up a firewall rule

By default, Prometheus (9090), Node Exporter (9100), and Grafana (3000) are accessible from any IP. In production, restrict this.

Prometheus and Node Exporter should not be publicly accessible - they expose sensitive system information. Restrict them to localhost or to your monitoring network:

bash
# Block external access to Prometheus and Node Exporter
sudo ufw deny 9090
sudo ufw deny 9100

# Allow Grafana only from specific IPs (replace with your IP)
sudo ufw allow from YOUR_IP to any port 3000
```

Or put Grafana behind a reverse proxy (nginx or Caddy) with HTTPS and basic auth. That's the right production setup but beyond the scope of this post.

Useful PromQL queries to get started

Once everything is running, here are some queries worth knowing. You can run these in the Grafana query editor or directly in the Prometheus UI:

promql
# CPU usage percentage (non-idle CPU time)
100 - (avg by (instance) (rate(node_cpu_seconds_total{mode="idle"}[5m])) * 100)

# Available memory in GB
nodememoryMemAvailable_bytes / 1024 / 1024 / 1024

# Disk usage percentage
100 - ((nodefilesystemavailbytes{mountpoint="/"} / nodefilesystemsizebytes{mountpoint="/"}) * 100)

# Network traffic in/out (bytes per second)
rate(nodenetworkreceivebytestotal{device="eth0"}[5m])
rate(nodenetworktransmitbytestotal{device="eth0"}[5m])
```

---

From here, the natural next steps are: adding more exporters for specific services (there are exporters for PostgreSQL, Redis, Nginx, and most other common tools), setting up Alertmanager to send alerts when things go wrong, and adding more servers to the scrape config. Each of those could be its own post and probably will be.

But this is a working stack. Real metrics, real dashboards, real data. That's the foundation everything else builds on.

Found this useful?
☕ Buy Michael a Coffee
← More posts

Hey, I'm Michael Harlow.

Senior Systems Engineer · Boston, MA · Writing as sys.ghost

I have spent over a decade building and maintaining infrastructure at the intersection of technology and financial services. My career has taken me through three distinct sectors -- technology, private equity, and asset management -- and each one changed how I think about what reliable infrastructure actually requires.

I started in general IT, which is where most engineers who did not go straight into software end up. Data centers, networking, on-call rotations, learning to label cables properly because unlabeled cables are a promise that someone else will suffer later. The work taught me that almost every sophisticated system is, one layer down, a collection of unglamorous fundamentals that either hold or do not. I still believe that. I still label everything.

Private equity came next, and it was a different world. The infrastructure stakes there are less about uptime and more about data integrity. When deal teams are making acquisition decisions based on data you are responsible for, and when a due diligence process has a hard deadline that does not move regardless of what broke overnight, your relationship with reliability changes. A wrong number in an LP report does not cause an immediate incident. It causes a conversation in a partner meeting six weeks later, and by then you need to reconstruct what happened from imperfect records. I became obsessive about data provenance in PE and I have not stopped.

For the past several years I have been in asset management, supporting trading and investment operations infrastructure. This is the environment I find most technically interesting. The compliance requirements are demanding, the legacy systems have long institutional memories, and the tolerance for operational errors is genuinely low -- not just in terms of business impact, but in terms of regulatory consequence. When markets are open, there is no fixing it after the weekend.

I started Packet & Profit in January 2026 because I kept looking for the kind of writing I wanted to read and finding it mostly did not exist. There is a lot of content for engineers online. There is much less written by engineers working specifically inside regulated financial services firms, being honest about what that actually involves day to day. The compliance conversations, the legacy constraints, the incident management in front of stakeholders who measure downtime in dollars per minute. That is what I write about here.

Outside of work I have been running a Saturday morning robotics course at my local YMCA for kids aged 10 to 14. It is one of the better decisions I have made.

Certifications

Red Hat Certified Engineer (RHCE)
Certified Kubernetes Administrator (CKA)
AWS Solutions Architect -- Associate
CompTIA Security+
HashiCorp Vault Associate

My Stack

RHEL / Ubuntu
Kubernetes
OpenShift
Terraform
Ansible
Prometheus
Grafana
Python / Bash
AWS / Azure
Cisco / Palo Alto
PostgreSQL
Redis
HashiCorp Vault
Fluent Bit
Helm
ArgoCD

Career

2022 -- Present
Senior Systems Engineer, Asset Management -- Boston, MA
Leading infrastructure for trading operations and investment management systems. Responsibilities span network security, cloud migration strategy, Kubernetes platform engineering, and incident response. Deeply involved in T+1 settlement infrastructure work and the shift from overnight batch processing to near-real-time event-driven architecture.
2018 -- 2022
Systems Engineer, Private Equity -- Boston, MA
Built and maintained data infrastructure supporting deal teams, portfolio monitoring, and investor reporting. Managed infrastructure through multiple due diligence cycles with hard deadlines and high data integrity requirements. Led a major data platform migration from on-premises to cloud-hosted infrastructure, including security controls satisfying LP and regulatory requirements.
2015 -- 2018
Infrastructure Engineer, Retail Technology
Supported inventory management, real-time pricing, and supply chain integration systems across a high-SKU retail environment. Operated under peak load conditions where scale was a concrete engineering problem rather than an abstract one. Built out monitoring and alerting infrastructure from scratch and managed a full data center relocation.
2013 -- 2015
IT Engineer, Technology Sector
Established the professional fundamentals: data center operations, network infrastructure, endpoint management, and the on-call rotations that teach you more about system fragility than any textbook. Developed an appreciation for cable labeling that has never left me.

Get in Touch

If you are an engineer working in financial services, curious about the career path, or have a question about something I have written, I would genuinely like to hear from you. Use the and I will get back to you. If something here has been useful, a coffee is always appreciated.

A note on anonymity: I write under my own name but keep my current employer private. The financial services industry is small, the regulatory environment is real, and I want to write honestly without those constraints. All incidents and case studies on this site are anonymised. The technical content is real; identifying details are not.
Get in touch

Contact

Whether you are an engineer in financial services, have a question about something I have written, or just want to say hello - feel free to reach out. I read everything.

Powered by Resend · No spam, ever

Legal

Privacy Policy

Last updated: April 2026

This policy explains what information Packet & Profit collects when you visit this site, how it is used, and what choices you have.

Information We Collect

We do not require you to create an account or provide personal information to read this blog. The only personal information we collect is what you voluntarily submit through the contact form: your name, email address, and message. This information is transmitted via Resend and used solely to respond to your enquiry.

Google AdSense and Advertising

This site uses Google AdSense to display advertisements. Google AdSense uses cookies and similar tracking technologies to serve ads based on your prior visits to this and other websites. This means Google may use information about your visits to this site to show you personalised ads on other sites across the web.

You can opt out of personalised advertising by visiting Google Ads Settings, aboutads.info, or optout.networkadvertising.org. See Google advertising policies for more.

Cookies

This site uses a single first-party cookie to remember your theme preference (light or dark mode). This cookie contains no personal information. Third-party cookies may be set by Google AdSense for advertising purposes as described above.

Analytics

This site does not currently use any analytics platform beyond what Vercel provides as part of its standard hosting service (aggregated, anonymised traffic data).

Contact Form

When you submit the contact form, your name, email address, subject, and message are transmitted to the blog author via Resend. This data is not stored by this site and is not shared with any third party beyond Resend. See Resend's privacy policy for details.

Third-Party Links

Posts on this site may link to external websites. We are not responsible for the privacy practices or content of those sites.

Your Rights

If you have submitted a message via the contact form and would like that information removed, or if you have any questions about this policy, please use the contact form to get in touch.

Changes to This Policy

We may update this policy from time to time. The date at the top of this page reflects when it was last revised.

Legal

Terms of Service

Last updated: April 2026

By accessing and using Packet & Profit (packetandprofit.com), you agree to be bound by these Terms of Service. If you do not agree, please do not use this site.

Use of Content

All written content, illustrations, and code examples published on this site are the original work of Michael Harlow unless otherwise stated. You are welcome to share links to posts and quote brief excerpts (with attribution), but you may not reproduce full articles, copy content to other websites, or use the content for commercial purposes without written permission.

No Professional Advice

Content published on this site reflects personal opinions and professional experience. It is provided for informational and educational purposes only. Nothing on this site constitutes financial, investment, legal, or professional advice of any kind. See the for more detail.

Third-Party Links

This site may contain links to third-party websites. These links are provided for convenience and do not constitute an endorsement of the linked site or its content. We have no control over and accept no responsibility for external sites.

Advertising

This site participates in Google AdSense, which displays advertisements from third-party advertisers. The presence of an advertisement does not constitute an endorsement of the advertiser's products or services. Ad content is determined by Google based on the content of this site and your browsing history.

Accuracy of Information

While we make every effort to ensure the accuracy of information published on this site, technology and financial markets change rapidly. Information that was accurate at the time of publication may become outdated. We do not warrant the completeness, accuracy, or timeliness of any content on this site.

Limitation of Liability

To the fullest extent permitted by law, Packet & Profit and its author shall not be liable for any direct, indirect, incidental, or consequential damages arising from your use of, or inability to use, this site or its content.

Changes to These Terms

We reserve the right to update these terms at any time. Continued use of the site following any changes constitutes your acceptance of the revised terms. The date at the top of this page reflects the most recent revision.

Contact

If you have questions about these terms, please use the .

Legal

Disclaimer

Last updated: April 2026

Packet & Profit is a personal blog written by Michael Harlow, a Systems Engineer based in Boston, MA. The views expressed here are entirely his own and do not represent those of any employer, client, or organisation he is affiliated with.

Not Financial or Investment Advice

This site discusses financial services technology, investment management infrastructure, and related engineering topics from a technical practitioner's perspective. Nothing published here is financial advice, investment advice, or a recommendation to buy, sell, or hold any security, asset, or financial instrument. The author is not a registered financial adviser, broker, or investment professional.

Content that references financial markets, trading systems, or investment firms is provided for technical and educational context only. Any figures, case studies, or examples are illustrative and should not be relied upon for financial decisions.

Not Legal or Professional Advice

Nothing on this site constitutes legal, compliance, regulatory, or professional advice. Readers should consult qualified professionals for advice specific to their circumstances.

Professional Experience

Posts on this site draw on the author's professional experience in systems engineering across private equity, retail technology, and asset management. Specific details about employers, clients, projects, and colleagues have been anonymised or generalised. Any resemblance to specific organisations is incidental.

Accuracy

The author makes reasonable efforts to ensure published information is accurate at the time of writing. The technology and financial services landscape changes quickly. Readers should verify any technical or regulatory information against current primary sources before acting on it.

Affiliate Links and Advertising

This site displays advertisements through Google AdSense. The site may also contain links to tools, services, or products that the author uses or finds useful. These are not paid endorsements unless explicitly stated. The author's opinions are his own and are not influenced by advertisers.

Questions

For questions about anything on this site, please use the .

This site uses cookies for theme preferences and displays ads via Google AdSense, which may use cookies to personalise ads.