Port 8086 is the InfluxDB HTTP API port for time-series data ingestion and queries. InfluxDB accepts writes (line protocol), Flux/InfluxQL queries, and serves its web UI on port 8086. Default installations allow unauthenticated access – enable authentication and restrict to monitoring networks in production.
Port Number
8086
Protocol
TCP
Service
InfluxDB HTTP API
Range
IANA Registered (1024–49151)
Basic health check (204 = healthy, works without auth)
curl -s http://localhost:8086/ping -w '%{http_code}'Test if unauthenticated queries work (should return 401 if auth enabled)
curl -s http://localhost:8086/query --data-urlencode 'q=SHOW DATABASES'List buckets (InfluxDB 2.x with auth)
curl -s -H 'Authorization: Token YOUR_TOKEN' http://localhost:8086/api/v2/buckets | jq '.buckets[].name'CLI connectivity test
influx ping --host http://localhost:8086curl -XPOST 'http://localhost:8086/write?db=metrics' --data-binary 'cpu,host=srv1 value=0.42'
influx query 'from(bucket:"metrics") |> range(start: -1h)'
curl http://localhost:8086/pingInfluxDB was created by InfluxData in 2013 as a purpose-built time-series database. Port 8086 was chosen for the HTTP API. InfluxDB 1.x (2015-2020) used InfluxQL (SQL-like). InfluxDB 2.0 (2020) introduced Flux language, built-in dashboards, and token-based auth. InfluxDB 3.0 (2024) rewrote the storage engine in Rust using Apache Arrow and DataFusion, returning to SQL as the primary query language.
How do I migrate from InfluxDB 1.x to 2.x securely?
Use influx upgrade CLI tool which migrates databases to buckets and creates DBRP mappings for backward compatibility. Critical: the tool generates an all-access token – immediately create scoped tokens and revoke the all-access one. Enable TLS (tls-cert and tls-key in config.toml). Old 1.x HTTP basic auth stops working – update all Telegraf/Grafana configurations to use Authorization: Token header.
InfluxDB vs Prometheus for metrics?
InfluxDB: push-based (Telegraf pushes), SQL/Flux queries, built-in downsampling (continuous queries/tasks), better for IoT/high-cardinality. Prometheus: pull-based (scrapes targets), PromQL, designed for infrastructure monitoring, better ecosystem (Alertmanager, Grafana native). Use InfluxDB when: you control the writer (IoT sensors, apps). Use Prometheus when: you monitor infrastructure (Kubernetes, servers).