<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/logging-gateway-statistics-from-opnsense-to-influxdb-using-node-red-segssqqhn" -->

---
title: Logging Gateway Statistics from OPNsense to InfluxDB...
description: A walkthrough for logging OPNsense gateway statistics (ping delay, standard deviation, and status) to InfluxDB using Node-RED. The OPNsense API endpoint...
canonical: https://daily.dev/posts/logging-gateway-statistics-from-opnsense-to-influxdb-using-node-red-segssqqhn
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Logging Gateway Statistics from OPNsense to InfluxDB using Node-Red | daily.dev
og:description: A walkthrough for logging OPNsense gateway statistics (ping delay, standard deviation, and status) to InfluxDB using Node-RED. The OPNsense API endpoint...
og:url: https://daily.dev/posts/logging-gateway-statistics-from-opnsense-to-influxdb-using-node-red-segssqqhn
og:image: https://api.daily.dev/og/posts/SEGSsQQhn.png
og:image:alt: Logging Gateway Statistics from OPNsense to InfluxDB using Node-Red
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Logging Gateway Statistics from OPNsense to InfluxDB using Node-Red

**[apalrd's adventures](https://daily.dev/sources/apalrd)** · 2 min read · 0 upvotes · 0 comments

## Summary

A walkthrough for logging OPNsense gateway statistics (ping delay, standard deviation, and status) to InfluxDB using Node-RED. The OPNsense API endpoint /api/routes/gateway/status returns an array of gateway data that is polled and parsed in JavaScript via Node-RED, then pushed to InfluxDB. The setup requires an API user in OPNsense and the node-red-contrib-influxdb plugin. The flow supports any number of gateways and can help track ISP reliability or detect modem issues.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.apalrd.net/posts/2022/opnsense_gwlog>

## Questions this post answers

### How do I get gateway statistics from OPNsense via the API?

The OPNsense API endpoint /api/routes/gateway/status returns an array of gateway objects, each containing the gateway name, address, status ('none', 'loss', or 'down'), ping delay in ms, and standard deviation of the ping in ms. No additional plugins are required in OPNsense — only an API user needs to be created.

_Homelab engineers tracking OPNsense reliability share setups like this on daily.dev._

## Similar posts on daily.dev

- [Ntopng turned my home network into something I could actually understand](https://daily.dev/posts/ntopng-turned-my-home-network-into-something-i-could-actually-understand-tsonczi5n) · XDA Developers · 0 upvotes · 0 comments
- [9 Tools and Integrations for InfluxDB](https://daily.dev/posts/9-tools-and-integrations-for-influxdb-c3qv6a4rp) · InfluxData · 2 upvotes · 0 comments
- [Monitoring Node.js Express Application Performance with AppSignal](https://daily.dev/posts/monitoring-node-js-express-application-performance-with-appsignal-56vwr9jtp) · AppSignal · 1 upvotes · 0 comments

---

Tags: [#monitoring](https://daily.dev/tags/monitoring), [#influxdb](https://daily.dev/tags/influxdb)

[View this post on daily.dev](https://daily.dev/posts/logging-gateway-statistics-from-opnsense-to-influxdb-using-node-red-segssqqhn)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Logging Gateway Statistics from OPNsense to InfluxDB using Node-Red","url":"https://daily.dev/posts/logging-gateway-statistics-from-opnsense-to-influxdb-using-node-red-segssqqhn","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/logging-gateway-statistics-from-opnsense-to-influxdb-using-node-red-segssqqhn"},"datePublished":"2026-08-11T08:56:45.897Z","dateModified":"2026-08-11T09:37:41.305Z","description":"A walkthrough for logging OPNsense gateway statistics (ping delay, standard deviation, and status) to InfluxDB using Node-RED. The OPNsense API endpoint...","image":"https://media.daily.dev/image/upload/s--OHB84bZF--/f_auto/v1722860399/public/Placeholder%2010","thumbnailUrl":"https://media.daily.dev/image/upload/s--OHB84bZF--/f_auto/v1722860399/public/Placeholder%2010","isAccessibleForFree":true,"articleSection":"apalrd's adventures","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"apalrd's adventures","logo":"https://media.daily.dev/image/upload/s--4zkx8dRj--/f_auto,q_auto/v1786438309/logos/apalrd?_a=BAMAMicg0","url":"https://daily.dev/sources/apalrd"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/logging-gateway-statistics-from-opnsense-to-influxdb-using-node-red-segssqqhn","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"monitoring,influxdb","timeRequired":"PT2M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"apalrd's adventures","item":"https://daily.dev/sources/apalrd"},{"@type":"ListItem","position":3,"name":"Logging Gateway Statistics from OPNsense to InfluxDB using Node-Red"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/logging-gateway-statistics-from-opnsense-to-influxdb-using-node-red-segssqqhn#faq","mainEntity":[{"@type":"Question","name":"How do I get gateway statistics from OPNsense via the API?","acceptedAnswer":{"@type":"Answer","text":"The OPNsense API endpoint /api/routes/gateway/status returns an array of gateway objects, each containing the gateway name, address, status ('none', 'loss', or 'down'), ping delay in ms, and standard deviation of the ping in ms. No additional plugins are required in OPNsense — only an API user needs to be created. Homelab engineers tracking OPNsense reliability share setups like this on daily.dev."}}]}
```

