Getting Started
7 Lessons
Section
















While the FixedIT Data Agent is an edge-based data processing application, you might want to use it together with server-based data infrastructure to create dashboards and visualizations of data produced by the edge device.
The Data Agent is responsible for processing and analyzing data streams. Sometimes, all you want to do is trigger automated actions or events based on the data. But sometimes, you want to collect and visualize this data. One option would be to deploy a custom UI to the FixedIT Data Agent ACAP directly on the Axis device, but visualizations often benefit from serving data from multiple devices on a single pane of glass. Due to this, many users want to send the data from all their edge devices to a central database and visualize it there.
One benefit of using the FixedIT Data Agent is that you can process a large amount of data in the Axis device, filter it to extract the relevant parts and send only those to the central server. You can also add custom transformations that are performed directly in the device before sending the data. This creates a very scalable solution. An example of this can be seen in our blog post "Video Analytics Performance Dashboards: Combining CV Metrics with AI-Driven Anomaly Detection and a Natural Language Chat Interface".
As another example, consider the case where you want to log all events relating to video recording on all your devices. Information about the events (such as started recording, stopped recording, etc.) exists in the log files of the camera, but sending all log files to a database would consume a lot of bandwidth and database storage. This is where edge-based filtering makes a lot of sense.

The image shows an example where a large amount of data is processed on the device. Log files in the Axis cameras are constantly written to, but only the logs from some specific application or process might be of interest. The FixedIT Data Agent can parse and filter the logs and only send lines related to a specific process or action to the central database.
When building systems for video analytics or device monitoring, you will quickly encounter different types of data with very different characteristics. Not all databases are created equal, and choosing the right one can have a major impact on performance, scalability, and simplicity.
Broadly speaking, databases fall into a few common categories. Relational databases (SQL) like PostgreSQL or MySQL are structured, schema-based systems designed for consistency and complex queries across well-defined relationships. NoSQL databases such as document stores, key-value stores, or column-family databases trade strict structure for flexibility and scalability. A special kind of those are time series databases, which are purpose-built for handling data indexed by time. This is something that becomes central in telemetry, monitoring, and analytics pipelines where all data points are typically related to a specific time when the event occurred.
In a video analytics system, you typically deal with two distinct data types:
Events (e.g., “intruder detected”, “vehicle parked for too long”)
Metadata streams (e.g., object count per frame, object position)
Similarly, in device monitoring you can see the same two types:
Events (e.g., “device went offline”, “unusually high memory usage detected”)
Metadata streams (e.g., CPU usage, temperature, frame rate)
While relational databases can store all of this, they’re often not the best fit for high-frequency, append-only data like metrics or telemetry. Writing thousands of timestamped data points per second, querying trends over time, and managing retention policies can become inefficient and complex in a traditional SQL setup.
This is where time series databases come in. A time series database is optimized for storing sequences of data points indexed by time. Instead of focusing on relationships between tables, time series databases are designed for:
Extremely fast writes of time-stamped data
Efficient compression of large volumes of data
Querying over time ranges (e.g., averages, trends, downsampling)
Built-in retention policies and data lifecycle management
Compared to a relational database, a time series database avoids expensive indexing strategies and joins, and instead organizes data in a way that makes time-based queries natural and performant. For example, asking “what was the average inference latency over the last 10 minutes?” is a first-class operation in a time series database, whereas it can be cumbersome and slower in a traditional SQL system.
InfluxDB is one of the most widely used time series databases in this space. It is designed specifically for high-throughput ingestion of time-stamped data. Version 1 and 2 provide a powerful query language (Flux or InfluxQL) tailored for time-based analysis, while the newest one, version 3, allows for queries using regular SQL syntax. InfluxDB also integrates naturally with Telegraf (the workflow orchestrator used in the FixedIT Data Agent ACAP app). Telegraf can gather metrics from edge devices, applications and system components, and send them directly to InfluxDB with minimal configuration.
InfluxDB is an open-source project and you can run it either on a cloud-based server or on your own local computer. This makes it a great fit for all kinds of organizations, ranging from small to enterprise, where it's one of the commonly preferred databases.
While InfluxDB is not the only database supported by the FixedIT Data Agent, it is the one most commonly used together with it. Telegraf has native support for multiple databases, and for the ones that don't, you can use a proxy transport like HTTP push or MQTT.
Telegraf, the workflow-manager layer in the FixedIT Data Agent, is using configuration files to create data workflows. These files can make use of plugins to ingest, send or process data. One of those supported plugins is the influxdb_v2 output plugin. This can be used to send data to an InfluxDB database:
[[outputs.influxdb_v2]]
urls = ["${INFLUX_HOST}:${INFLUX_PORT}"]
token = "${INFLUX_TOKEN}"
organization = "${INFLUX_ORG}"
bucket = "${INFLUX_BUCKET}"The environment variables used in this example snippet are set by the FixedIT Data Agent based on its input configuration fields, which can be set on the Configuration→Variables page under the InfluxDB Environment Variables section:

Configuring the parameters here will make them available as environment variables in the Telegraf *.conf files so they can be used in the outputs.influxdb_v2 plugin.
This makes it easier and more standardized to configure the settings, but you can just as well hard code them directly in the configuration file if you prefer that (hard coding a secret token is not recommended in production deployments!).
There are also influxdb and influxdb_v3 output plugins, but note that InfluxDB v3 is compatible with the upload format of the version 2 database, meaning that the influxdb_v2 plugin can be used both with version 2 and 3 of the InfluxDB database.
When you install the FixedIT Data Agent in a device, this configuration is already pre-uploaded in a file called output.conf. You also have other files like input_system.conf and input_network.conf which configure the collection of health metrics from the camera. This means that if you already have an InfluxDB database set up, all you need to do after installing the Data Agent in an Axis device is to configure those settings in the Apps→Settings UI. The Data Agent will then start sending health data to your InfluxDB database.
There's multiple ways to start an InfluxDB server on your computer, but if you have Docker installed, the easiest way is to run it in a Docker container:
docker run --rm -it -p 8086:8086 influxdb:2This command will:
Download and run the official influxdb image from Dockerhub
Run it interactively with a TTL connected (-it)
Automatically remove the container when it has been stopped (--rm)
Forward port 8086 from the container to your localhost (8086 is the default port used by InfluxDB)
After doing this, you can open the URL http://localhost:8086 to access the database interface.
Then you will need to create a bucket and an API token that can be used by the FixedIT Data Agent. Before doing this, continue reading as we have a ready-to-use deployment configuration that will automate this for you. But first, let's introduce Grafana and the role it has.
What is Grafana?
Grafana is a visualization and observability platform designed to turn data into intuitive, interactive dashboards. It connects to a wide range of data sources, including time series databases like InfluxDB. It allows you to create dashboards where you can visualize and explore data in real time. Instead of working directly with raw metrics or query outputs, Grafana provides a flexible UI where you can build graphs, heatmaps, alerts and custom panels that make complex system behavior easy to understand at a glance.
In a health monitoring and video analytics context, Grafana becomes the window into your system’s data and metrics. You can monitor things like inference rates, detection counts, latency, CPU usage, and camera connectivity across an entire fleet. Combined with InfluxDB and the FixedIT Data Agent, it enables both real-time monitoring and historical analysis, helping you quickly spot anomalies, debug issues, and communicate system insights to both technical and non-technical stakeholders.

Official example image from the Grafana website showing a dashboard created with Grafana.
But it doesn't stop there. You can create domain-specific dashboards to visualize business metrics such as shop-floor heatmaps, occupancy over time or congestion in traffic. Grafana gives you the fundamental building blocks that allow you to create your own custom visualizations and the FixedIT Data Agent makes it easy to collect data from your cameras and make sure it arrives to Grafana in a robust and reliable way.
You don't need to use Grafana if you don't want to. As with other parts of the FixedIT ecosystem, things are modular and flexible. You might have another favorite visualization tool, you might have your own proprietary or you might be happy just using the built-in dashboard creation functionality in InfluxDB v3. The FixedIT Data Agent should be flexible enough for all these use cases. But if you want to get up and running quickly and leverage the examples we have created, then Grafana is a great way to go.
Deploying Our Ready-to-Use Stack
To make things as easy as possible for you, we have published a repository with a complete InfluxDB+Grafana stack, including pre-provisioned dashboards for Axis device monitoring. You can find the stack in this repo.
When using this stack, InfluxDB will come with a bucket named Cameras in an organization called Whisperer. It will also already be connected to Grafana and it will have three different dashboards already loaded:
System Overview: Fleet-wide metrics including connected devices, recently lost devices, and performance outliers.
Overview of Devices: Individual device information with detailed metrics, IP addresses, and system health.
Device Details: Deep-dive into specific device performance including CPU, RAM, network, and geo-location data.
This can be used as is, or serve as a good base to start your own project.

To use this stack, go to the tags page and download the zip or tar file for the latest release. Then open a terminal in the fixedit-data-agent-examples/dashboard-deployments/system-monitoring-influxdb2-flux-grafana/ folder and run the following command:
docker compose up -dLike the earlier example, this uses Docker; however, instead of only downloading and running one image, it uses the configuration found in the docker-compose.yml file. After doing this, you can access InfluxDB on http://localhost:8086 and Grafana on http://localhost:3000. The username and password for InfluxDB are test and testtest, for Grafana it is username admin and password test.
To configure the FixedIT Data Agent in the Axis devices, use the following settings to configure the app in the Apps→Settings page (as described earlier):
InfluxDBHost: http://YOUR_COMPUTER_IP:8086
InfluxDBToken: KLoG_Z0NsDIbVzS7zVn_VwhgxUgvwaGWE1wwO9SsGfNEeMaopLMsAA2aAGbCshpetVdu86Ig3-WTKugv6Srg6w==
InfluxDBOrganization: Whisperer
InfluxDBBucket: Cameras
After a few minutes, you should start seeing health data being populated in the dashboard. If you do not, check the time settings in the Axis device and make sure that everything is correct.
For a production deployment, see the repository for more information about using the docker-compose.prod.yml configuration file, which extends the deployment with further safety such as randomized tokens and passwords.
For more information on how to navigate the dashboards, see this recording:

The hard groundwork has already been done; what's left is to start using it as is or extend it with new views using your own customized data.
In the project-hello-world-exec example in our public repo, we explain the basics of how custom metrics can be created in the Data Agent and sent to InfluxDB. Here, we explain that all metrics created in the Data Agent are by default sent to all the defined outputs:

This means that since the default configuration already contains an output plugin that sends data to InfluxDB, all you need to do to collect a new metric is to define the plugin or script that will produce it.
In the FixedIT Data Agent quickstart PDF file, we can see an example that uses an HTTP input to fetch the occupancy metric from an Axis camera:
# This configuration file is used to collect occupancy data from AXIS Object
# Analytics. For this to work, you first need to start the AXIS Object Analytics
# application on the device and configure an occupancy scenario.
# You should replace the scenario number with the one you have configured in
# AXIS Object Analytics.
[[inputs.http]]
name_override = "camera_occupancy"
# Note that we have to use HTTPS here since the Axis devices does not
# allow BASIC auth over HTTP and the Telegraf HTTP input plugin does not
# support DIGEST auth. We need to allow insecure HTTPS connections to the
# device since the devices by default use a self-signed certificate from
# Axis.
urls = ["https://127.0.0.1/local/objectanalytics/control.cgi"]
insecure_skip_verify = true
timeout = "5s"
method = "POST"
data_format = "json"
headers = { "Content-Type" = "application/json" }
body = '''
{
"apiVersion": "1.6",
"context": "telegraf",
"method": "getOccupancy",
"params": {"scenario": 2}
}
'''
# Update the credentials to match your device's credentials. A user
# with 'Administrator' permissions is necessary.
username = "myadmin"
password = "myadminpass"
# Parse field from the nested `data` object and only
# keep the `total` field
json_query = "data"
fieldinclude = ["total"]Let's break this down:
[[inputs.http]] creates a new input based on the inputs.http plugin. This is a client that can be used to run periodic web requests.
urls specifies the URLs to which it should make a request. We have specified the URL for the VAPIX-based AXIS Object Analytics API which exists in all Axis cameras. We use the loopback IP 127.0.0.1 so requests are directed to the camera itself, where the Data Agent is running.
insecure_skip_verify is used to disable certificate validation. This makes sure that the requests will work even with the self-signed certificates that are default in the Axis cameras.
We then set some additional parameters that specify how the client should make the request. This is based on the information in the VAPIX-based AXIS Object Analytics API documentation.
username and password need to be set to a camera user with Administrator privileges to access the occupancy data API. You can either hard code these in the file, or use the $VAPIX_USERNAME and $VAPIX_PASSWORD variables that can be set from the Apps→Settings UI. The latter option is preferable since the password will not be visible.
json_query = "data" configures the plugin parser to consider only fields in the data section of the response object. fieldinclude = ["total"] specifies that only the total field (the occupancy count) should be kept.
The interval at which this input runs is decided by the Sync interval seconds parameter in the Apps→Settings UI, due to the interval = "${SYNC_INTERVAL_SECONDS}s" line in the default agent.conf file. You can change this in the Apps→Settings UI or override it by setting a new interval = <VALUE>s under the [[inputs.http]] section of the uploaded configuration file.
The occupancy data will now be sent to InfluxDB and be accessible to Grafana, where you can create a new dashboard and add a new visualization for it:

As shown in the image, the Flux query to fetch the occupancy data would be the following:
from(bucket: "Cameras")
|> range(start: v.timeRangeStart, stop: v.timeRangeStop)
|> filter(fn: (r) => r["_measurement"] == "camera_occupancy")
|> filter(fn: (r) => r["_field"] == "total")
|> group(columns: ["host"])
|> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false)Let's break this down:
from(bucket: "Cameras") specifies the name of the bucket that the Data Agent is uploading data to.
|> range(start: v.timeRangeStart, stop: v.timeRangeStop) adds a time-based filter using the variables that Grafana sets based on the time range selector at the top right of the user interface.
|> filter(fn: (r) => r["_measurement"] == "camera_occupancy") filters for the metric called camera_occupancy, which was set in the configuration file for the input with name_override = "camera_occupancy".
|> filter(fn: (r) => r["_field"] == "total") filters for the total field, which was the one we kept using the fieldinclude = ["total"] line.
|> group(columns: ["host"]) creates a separate line for each device that is reporting. This works because Telegraf is automatically setting the host name as a tag for all data.
|> aggregateWindow(every: v.windowPeriod, fn: mean, createEmpty: false) downsamples the data to make sure that selecting a long time interval will not use more data points than what Grafana can visualize.
In this lesson we have seen how InfluxDB/Grafana can be used together with the FixedIT Data Agent to create dashboards visualising both historical data and real time data. We have seen how we can extend the FixedIT Data Agent configuration files to collect custom metrics and send them to the InfluxDB/Grafana stack for visualization. For a more complete and advanced use case, continue by reading the "Video Analytics Performance Dashboards: Combining CV Metrics with AI-Driven Anomaly Detection and a Natural Language Chat Interface" blog post.