Plugins 〉CnosDB


Developer

CnosDB

Sign up to receive occasional product news and updates:


Grafana Cloud
Grafana Cloud
  • Grafana, of course
  • 10k series Prometheus metrics
  • 50 GB logs
  • 50 GB traces
  • 2,232 app o11y host hours
  • ...and more
Create free account

No credit card needed, ever.


Data Source
community

CnosDB

  • Overview
  • Installation
  • Change log
  • Related content

CnosDB data source for Grafana

This document describes how to install and configure CnosDB data source plugin for Grafana, and to query and visualize data from CnosDB.

Installation

At first, you should add a Connection to query CnosDB.

Navigate to Configurations / Plugins, search cnosdb and then click it.

install_1

Click button Create a CnosDB data source.

install_2

Configure the connection options, then click the Save & test button.

configure_1

If you see "Data source is working" that means CnosDB data source connected successfully.

configure_2

Usage - Dashboard

See Use Dashboards for more instructions on how to use grafana dashboard.

Navigate to Dashboards, click New Dashboard in dropped down list, then click Add a new panel. Now you can see the visual query editor.

Visual query editor

Click the area after FROM to choose the table.

create_panel_5

Click the area after SELECT to choose the column.

create_panel_6

Now you can see the visualization of the query result.

create_panel_7

Raw query editor

You can also enter the raw sql editor mode by clicking this button.

create_panel_1

Now the whole visual query editor means SQL query below:

SELECT date_bin(INTERVAL '1 minute', time, TIMESTAMP '1970-01-01T00:00:00Z') AS time, avg(usage_user)
FROM cpu
WHERE $timeFilter
GROUP BY date_bin(INTERVAL '1 minute', time, TIMESTAMP '1970-01-01T00:00:00Z')
ORDER BY time ASC

You can see that SQL in raw query editor.

create_panel_2

Save your panel

Click Apply to save the panel, and then you will be navigated to New dashboard page.

create_panel_8

You'll see the panel we just edited on New dashboard page.

create_panel_9

Installing CnosDB on Grafana Cloud:

For more information, visit the docs on plugin installation.

Installing on a local Grafana:

For local instances, plugins are installed and updated via a simple CLI command. Plugins are not updated automatically, however you will be notified when updates are available right within your Grafana.

1. Install the Data Source

Use the grafana-cli tool to install CnosDB from the commandline:

grafana-cli plugins install 

The plugin will be installed into your grafana plugins directory; the default is /var/lib/grafana/plugins. More information on the cli tool.

2. Configure the Data Source

Accessed from the Grafana main menu, newly installed data sources can be added immediately within the Data Sources section.

Next, click the Add data source button in the upper right. The data source will be available for selection in the Type select box.

To see a list of installed data sources, click the Plugins item in the main menu. Both core data sources and installed data sources will appear.

Changelog

1.0.0 (Unreleased)

Initial release.