A customer with a NetEye installation to which I had added the nTop module asked me if I could integrate nTop’s Grafana Dashboards, so they could view them by consulting NetEye’s ITOA Menu.
The installation and configuration of nTop for this client, a task I had already conducted some time ago, was a matter of analyzing what nTop performance data was available from InfluxDB. Then I would only need to extract that data to make Grafana Dashboards to propose to the client.
The first configuration I added was to export nTop time series data to InfluxDB, which involved creating the DB and nTop user on the DB Server.
The second useful configuration was to instruct nTop to save the time series data in InfluxDB by configuring all of its DB Server connection parameters.
To proceed, consult the menu Settings -> Preferences:
Note, in terms of data security, how nTop communicates with InfluxDB via the HTTPS protocol.
Now it’s time to configure Grafana and give it the details of the Data Source it should use:
It’s a requirement that the same DB connection parameters configured for nTop are also passed to Grafana.
The last step is to add an nTop Dashboard to Grafana. To do this we make use of the query builder that Grafana provides, so that we have help in constructing a query useful for extracting time series data from the database when we generate our Dashboard:
Queries change depending on whether you then want to represent the data with a Gauge or a Counter.
The gauges are meant for values such as Active Flows or Bandwidth, hence you see in the SELECT the need to use the derivative, while the counter is better suited to representing incremental values that can be taken as-is:
Are you passionate about performance metrics or other modern IT challenges? Do you have the experience to drive solutions like the one above? Our customers often present us with problems that need customized solutions. In fact, we’re currently hiring for roles like this as well as other roles here at Würth Phoenix.