1. Ports
  2. Port 8086

Overview

Port 8086 is the default HTTP API port for InfluxDB, the world's most popular time series database.1 Through this port flows the continuous pulse of modern infrastructure: server metrics streaming from Telegraf agents, IoT sensor readings from factory floors, application performance data from production systems, and the telemetry that powers every Grafana dashboard showing something changing over time.

When InfluxDB listens on port 8086, it opens a gateway designed for one purpose: ingesting and querying timestamped data at massive scale. The /write endpoint accepts data points. The /query endpoint retrieves them. The /ping endpoint confirms the database is alive. Simple endpoints for a simple promise: remember this data, remember when it happened, remember it forever.

How InfluxDB Works

The Line Protocol

InfluxDB's genius lies in its Line Protocol, a text-based format so minimal it borders on elegant.2 One line equals one data point:

cpu,host=server01,region=us-west usage_idle=89.5 1635724800000000000

That single line contains everything InfluxDB needs:

  • Measurement: cpu (what you're measuring)
  • Tags: host=server01,region=us-west (indexed metadata for fast filtering)
  • Fields: usage_idle=89.5 (the actual value)
  • Timestamp: 1635724800000000000 (nanosecond precision)

No JSON parsing overhead. No XML verbosity. Just whitespace-separated meaning. The first space separates measurement and tags from fields. The second separates fields from timestamp. Every character has purpose.3

The Time-Structured Merge Tree

InfluxDB's storage engine, the Time-Structured Merge Tree (TSM), was built from scratch after the team tried and rejected LevelDB, RocksDB, HyperLevelDB, LMDB, and BoltDB.4 None of them could handle what time series data demands: massive write throughput, efficient compression of sequential timestamps, and the ability to delete entire time ranges without performance degradation.

The TSM engine works like this: incoming data writes first to a Write-Ahead Log (WAL) for durability, then to an in-memory cache for immediate queryability. The cache periodically flushes to disk as TSM files, immutable and compressed. These files contain sorted, compressed series data organized by time blocks. As files accumulate, background compactions merge them into larger blocks, improving compression ratios.5

The results speak for themselves: in early testing, InfluxDB achieved a 45x improvement in disk space usage and sustained writes of 300,000 points per second, storing 10 billion data points on a single machine.6

The Story Behind Port 8086

A Fintech Origin

In 2010, Paul Dix was working at a fintech startup in New York City. The company needed to track market data in real-time, updating price predictions every 10 seconds for hundreds of thousands of financial instruments.7 This was Dix's first encounter with time series data at scale, and the available tools weren't built for it.

Three years later, Dix was running Errplane, a Y Combinator-backed company focused on anomaly detection in data center monitoring. By September 2013, he realized the monitoring service wasn't going to take off, but he'd built something valuable underneath it: infrastructure code designed specifically for time series data.8

On September 26th, 2013, he made the first commit to a new open-source project. On November 5th, 2013, InfluxDB was announced to the world.9

Why a New Database?

At the time, developers building metrics and monitoring systems had limited options. RRDtool, created in 1999, was designed for fixed-size round-robin databases, ideal for graphing network traffic but inflexible for dynamic workloads.10 Graphite, released in 2008, improved on this but didn't scale well.11 OpenTSDB, released in 2010, required HBase and all the operational complexity that came with it.12

Dix saw a gap: developers needed a time series database that was simple to install, easy to use, and purpose-built for modern monitoring, analytics, and IoT workloads. The most important design goal? Developer happiness.13

The IANA Registration

Port 8086 is officially registered with IANA for Distributed SCADA Networking (d-s-n) services, part of SCADA (Supervisory Control and Data Acquisition) systems used in industrial control.14 InfluxDB's use of this port is unofficial but has become so widespread that searching for "port 8086" returns InfluxDB documentation first.

This is the nature of the registered port range (1024-49151): official assignments coexist with popular unofficial uses, and sometimes the unofficial use becomes more recognizable than the original assignment.

Security Considerations

CVE-2019-20933: The Empty Secret

In November 2020, security researchers disclosed CVE-2019-20933, an authentication bypass vulnerability in InfluxDB versions before 1.7.6.15 The flaw existed in the JWT token validation code: if a token had an empty SharedSecret, authentication could be bypassed entirely.

The vulnerability earned a CVSS score of 9.8 (Critical).16 An attacker could gain unauthorized access to any database, read sensitive data, modify records, or execute administrative operations. Public exploits were released, and security advisories were issued by Debian and Ubuntu.17

The fix was simple: upgrade to version 1.7.6 or later. But the lesson was a reminder that time series databases often contain sensitive operational data, CPU utilization patterns that reveal business activity, sensor readings from critical infrastructure, application metrics that expose system architecture. Authentication isn't optional.

Securing Port 8086

When exposing InfluxDB to networks:

  • Always enable authentication (disabled by default in older versions)
  • Use HTTPS to encrypt data in transit
  • Restrict network access with firewall rules
  • Consider using API tokens (InfluxDB 2.x) instead of username/password authentication
  • Monitor for unauthorized access attempts

What Flows Through Port 8086

Infrastructure Monitoring

The "TIG Stack" (Telegraf, InfluxDB, Grafana) has become standard infrastructure for infrastructure monitoring.18 Telegraf, with over 300 input plugins, collects metrics from servers, containers, databases, and applications. Everything flows through port 8086 to InfluxDB. Grafana queries it back out, painting dashboards that show whether your systems are healthy.

Industrial IoT at Scale

Siemens Energy monitors 23,000 battery modules across 70+ sites through InfluxDB, analyzing billions of high-frequency sensor readings.19 Equinor, Norway's state-owned oil company, deploys InfluxDB locally on ocean oil rigs to detect potential leaks in real-time, where cloud latency could mean disaster.20 Scottish Power Energy Networks replaced their legacy data historian with InfluxDB to handle the surge in data from distributed energy resources.21

Solar Panels in the Developing World

BBOXX uses InfluxDB to continuously monitor 85,000 solar units providing clean energy in the developing world.22 Each unit, a solar panel connected to a battery powering lights and radios in off-grid communities, reports its health through port 8086. Predictive maintenance keeps the lights on.

Municipal Infrastructure

The City of Morro Bay, California, brought a 1960s-era water treatment plant into the digital age by streaming real-time data from pumps, tanks, and valves through InfluxDB.23 A city's water system, rebuilt in data.

Technical Details

Default Ports

PortProtocolPurpose
8086TCPHTTP API (queries, writes, administration)
8088TCPRPC for backup/restore (InfluxDB Enterprise)

API Endpoints

# Check if InfluxDB is running
curl -I http://localhost:8086/ping

# Write data using Line Protocol
curl -i -XPOST 'http://localhost:8086/write?db=mydb' \
  --data-binary 'cpu,host=server01 usage_idle=89.5'

# Query data
curl -G 'http://localhost:8086/query?db=mydb' \
  --data-urlencode 'q=SELECT * FROM cpu'

Timestamp Precision

InfluxDB accepts timestamps in multiple precisions: nanoseconds (ns), microseconds (us), milliseconds (ms), or seconds (s). If no timestamp is provided, InfluxDB uses the server's system time in UTC.24

Market Position

According to DB-Engines, InfluxDB is the most popular time series database in the world, with a popularity ranking nearly 3x higher than its nearest competitor.25 Time series databases as a category have been the fastest-growing segment in the database market since April 2020.26

With over 1 billion downloads, InfluxDB has become the default choice for developers building systems that need to remember when things happened.27

PortServiceRelationship
9090PrometheusAlternative TSDB with pull-based model
3000GrafanaVisualization layer that queries InfluxDB
8125StatsDMetrics aggregation daemon, often feeds InfluxDB
2003GraphiteEarlier generation TSDB, InfluxDB supports its protocol
4242OpenTSDBHadoop-based TSDB, inspired InfluxDB's tag model

Frequently Asked Questions

Was this page helpful?

😔
🤨
😃