Statistics Export via InfluxDB: Difference between revisions
Jump to navigation
Jump to search
Access restrictions were established for this page. If you see this message, you have no access to this page.
No edit summary |
No edit summary |
||
Line 79: | Line 79: | ||
==InfluxDB & Grafana setup example with docker-compose== | ==InfluxDB & Grafana setup example with docker-compose== | ||
docker-compose.yml | * create the docker-compose.yml | ||
<pre> | |||
version: '3.6' | version: '3.6' | ||
services: | services: | ||
influxdb: | influxdb: | ||
image: influxdb:latest | |||
image: influxdb:latest | container_name: influxdb | ||
restart: always | |||
container_name: influxdb | environment: | ||
- DOCKER_INFLUXDB_INIT_MODE=setup | |||
restart: always | - DOCKER_INFLUXDB_INIT_USERNAME=admin | ||
- DOCKER_INFLUXDB_INIT_PASSWORD=a_secure_password | |||
environment: | - DOCKER_INFLUXDB_INIT_ORG=MyCompany | ||
- DOCKER_INFLUXDB_INIT_BUCKET=allegro-network-multimeter | |||
- DOCKER_INFLUXDB_INIT_MODE=setup | ports: | ||
- '8086:8086' | |||
- DOCKER_INFLUXDB_INIT_USERNAME=admin | volumes: | ||
- influxdb-data:/var/lib/influxdb2 | |||
- DOCKER_INFLUXDB_INIT_PASSWORD=a_secure_password | - influxdb-conf:/etc/influxdb2 | ||
- DOCKER_INFLUXDB_INIT_ORG=MyCompany | grafana: | ||
image: grafana/grafana-oss:latest | |||
- DOCKER_INFLUXDB_INIT_BUCKET=allegro-network-multimeter | container_name: grafana | ||
restart: always | |||
ports: | depends_on: | ||
- influxdb | |||
- '8086:8086' | environment: | ||
- GF_SECURITY_ADMIN_USER=admin | |||
- GF_SECURITY_ADMIN_PASSWORD=a_secure_password | |||
links: | |||
- influxdb | |||
ports: | |||
- '3000:3000' | |||
volumes: | |||
- grafana-data:/var/lib/grafana | |||
- grafana-provisioning:/etc/grafana/provisioning | |||
- ./grafana.ini:/etc/grafana/grafana.ini | |||
volumes: | volumes: | ||
influxdb-data: | |||
influxdb-conf: | |||
grafana-data: | |||
grafana-provisioning: | |||
</pre> | |||
* create a empty grafana.ini file | |||
* run docker-compose up -d | |||
Revision as of 12:11, 17 October 2022
The Influx Export allows to write statistics from the Allegro Network Multimeter to an InfluxDB.
This can be found in the menu "Settings -> Remote access & export -> Influx Export".
InfluxDB settings
- Enabled → Enables the export
- URL → URL of the InfluxDB (for example http://influx.mycompany.com:8086)
- API Token → Organization → the organization set in the InfluxDB
- Organization → the organization set in the InfluxDB
- Bucket → name of the bucket in which the statistics should be stored
- Check TLS Certificates → For HTTPS Connections. Disable if a self signed certificate is used for the InfluxDB server.
Export Settings
Option | InfluxDB measurement name | Description |
---|---|---|
Interval (seconds) | - | Specifies the interval (in seconds) in which the statistics data from the Allegro Network Multimeter are written to the InfluxDB. The value must be greater than or equal to 1. |
Resolution (seconds) | - | Specifies the resolution (in seconds) of the statistics. For example, 1 = one measurement every second, 10 = one measurement every 10 seconds. The value must be greater than or equal to 1. The value may not greater than the interval. |
System Load Statistics | Save the system load, memory load and packet ingress load in percentage | |
Global Counters | global-counters | Save the global counters mac count, ip count, connection count, connection activ, connection maximum, connection capacity. |
Interface Statistics | interface-[interface number] | Save the Bytes and Packets (rx/tx) of all network interfaces. |
Virtual Link Groups Statistics | virtualLinkGroup-[name] | Save the Bytes and Packets (rx) of all Virtual Link Groups. |
IP Global Statistics | ip-global | Save the Bytes and Packets for each protocol. |
IP Device Statistics | ip-[address] | Save the Bytes and Packets (rx/tx) for a list of IP-Devices. Addresses (IPv4/IPv6) separated by comma, without spaces. |
IP Device Deteils Statistics | ip-[address] | Save the Bytes and Packets for each protocol for a list of IP-Addresses. Addresses (IPv4/IPv6) separated by comma, without spaces. |
IP Device Peers Statistics | ip-[address]-peers | Save the Bytes and Packets for all peers of a list of Addresses. Addresses (IPv4/IPv6) separated by comma, without spaces. |
DNS Statistics | dns | Save the global DNS request/replies Statistic. |
ARP Statistics | arp | Save the global ARP request/replies Statistic. |
TCP Response Time Statistics | tcp-response-time | |
Ring Buffer Usage Statistics | system-ring-buffer | Save the Ring Buffer Usage in bytes |
InfluxDB & Grafana setup example with docker-compose
- create the docker-compose.yml
version: '3.6' services: influxdb: image: influxdb:latest container_name: influxdb restart: always environment: - DOCKER_INFLUXDB_INIT_MODE=setup - DOCKER_INFLUXDB_INIT_USERNAME=admin - DOCKER_INFLUXDB_INIT_PASSWORD=a_secure_password - DOCKER_INFLUXDB_INIT_ORG=MyCompany - DOCKER_INFLUXDB_INIT_BUCKET=allegro-network-multimeter ports: - '8086:8086' volumes: - influxdb-data:/var/lib/influxdb2 - influxdb-conf:/etc/influxdb2 grafana: image: grafana/grafana-oss:latest container_name: grafana restart: always depends_on: - influxdb environment: - GF_SECURITY_ADMIN_USER=admin - GF_SECURITY_ADMIN_PASSWORD=a_secure_password links: - influxdb ports: - '3000:3000' volumes: - grafana-data:/var/lib/grafana - grafana-provisioning:/etc/grafana/provisioning - ./grafana.ini:/etc/grafana/grafana.ini volumes: influxdb-data: influxdb-conf: grafana-data: grafana-provisioning:
- create a empty grafana.ini file
- run docker-compose up -d