All Projects → paveldanilin → grafana-csv-plugin

paveldanilin / grafana-csv-plugin

Licence: MIT license
CSV datasource for Grafana 6.x.x / 7.x.x

Programming Languages

go
31211 projects - #10 most used programming language
javascript
184084 projects - #8 most used programming language
HTML
75241 projects
shell
77523 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to grafana-csv-plugin

Grafana Prometheus Alertmanager Datasource
Stars: ✭ 163 (+393.94%)
Mutual labels:  grafana, datasource
Grafanajsondatasource
Grafana datasource to load JSON data over your arbitrary HTTP backend
Stars: ✭ 146 (+342.42%)
Mutual labels:  grafana, datasource
grafana-pnp-datasource
PNP4Nagios/RRD Datasource for Grafana
Stars: ✭ 27 (-18.18%)
Mutual labels:  grafana, datasource
grafana-pandas-datasource
Grafana Pandas Datasource - using Python for generating timeseries-, table-data and annotations
Stars: ✭ 38 (+15.15%)
Mutual labels:  grafana, datasource
Etl.net
Mass processing data with a complete ETL for .net developers
Stars: ✭ 129 (+290.91%)
Mutual labels:  csv, sftp
Styx
Export Data from Prometheus to csv, gnuplot & matplotlib
Stars: ✭ 66 (+100%)
Mutual labels:  csv, grafana
grafana-simplejson-datasource-example
A simple Flask server demonstrating the basics of the Grafana simplejson datasource.
Stars: ✭ 21 (-36.36%)
Mutual labels:  grafana, datasource
Iostreams
IOStreams is an incredibly powerful streaming library that makes changes to file formats, compression, encryption, or storage mechanism transparent to the application.
Stars: ✭ 84 (+154.55%)
Mutual labels:  csv, sftp
docker-clickhouse-grafana
Baseline Compose for Clickhouse + Grafana
Stars: ✭ 24 (-27.27%)
Mutual labels:  grafana, datasource
chartjs-plugin-datasource-prometheus
Chart.js plugin for Prometheus data loading
Stars: ✭ 77 (+133.33%)
Mutual labels:  grafana, datasource
tv
📺(tv) Tidy Viewer is a cross-platform CLI csv pretty printer that uses column styling to maximize viewer enjoyment.
Stars: ✭ 1,763 (+5242.42%)
Mutual labels:  csv
elastic-query-export
🚚 Export Data from ElasticSearch to CSV/JSON using a Lucene Query (e.g. from Kibana) or a raw JSON Query string
Stars: ✭ 56 (+69.7%)
Mutual labels:  csv
strapi-plugin-import-export-content
Csv and Json import / export content plugin to Strapi
Stars: ✭ 129 (+290.91%)
Mutual labels:  csv
awesome-georgian-datasets
Useful datasets, specific to Georgia
Stars: ✭ 47 (+42.42%)
Mutual labels:  csv
artemis cli
A command-line application for tutors to more productively grade programming excises on ArTEMiS
Stars: ✭ 12 (-63.64%)
Mutual labels:  csv
uzbekistan-regions-data
Full Database of regions Uzbekistan available in JSON, SQL & CSV Format All Regions, Districts & Quarters with Latin, Cyrillic and Russian versions. (Районы (туманы) Республики Узбекистан и Города областного (республиканского) подчинения)
Stars: ✭ 46 (+39.39%)
Mutual labels:  csv
cryptowelder
(deprecated) Cryptocurrency trade monitoring/visualization tool with time-series data.
Stars: ✭ 29 (-12.12%)
Mutual labels:  grafana
robusta
Open source Kubernetes monitoring, troubleshooting, and automation platform
Stars: ✭ 772 (+2239.39%)
Mutual labels:  grafana
bamboo-prometheus-exporter
Prometheus Exporter For Bamboo
Stars: ✭ 18 (-45.45%)
Mutual labels:  grafana
formula1-telemetry-kafka
No description or website provided.
Stars: ✭ 99 (+200%)
Mutual labels:  grafana

CSV datasource for Grafana 6.x.x

Many thanks to JetBrains for providing the OS license for an amazing GoLand IDE.

JetBrains logo

Install

Grafana 7.x.x

The plugin is unsigned, hence you may face the error:

lvl=eror msg=“Failed to load plugin” logger=plugins error=“plugin “grafana-csv-plugin” is unsigned”

To get it to work you should make configuration as described in documentation

Features

  • Read local CSV file
  • SQL queries (under the hood CSV will be converted into in-memory SQLite3 DB)
  • Auto-detect column types by the first data row
  • Reloading CSV file on changing
  • Query variables
  • Macros:
    • $__timeFilter(dateColumn)
    • $__timeGroup(dateColumn, interval)
    • $__unixEpochFrom()
    • $__unixEpochTo()

CSV format

  • Each CSV file must have the first row with column names

Query

  • SQLite3
  • Each DS has its own table, the name of the table coincides with the DS name (for example the DS name is my_data, hence in a query you should select from my_data table)

Macros

Macros Description
$__timeFilter(dateColumn) Will be replaced by a time range filter using the specified column name. For example, dateColumn BETWEEN ‘2017-04-21T05:01:17Z’ AND ‘2017-04-21T05:06:17Z’
$__timeGroup(dateColumn, interval), Examples: sec: $__timeGroup(dateColumn, 60); min: $__timeGroup(dateColumn, 60m); hour: $__timeGroup(dateColumn, 1h) Will be replaced by an expression usable in a GROUP BY clause. For example, datetime((strftime('%s', dateColumn) / 60) * 60, 'unixepoch')
$__unixEpochFrom() Will be replaced by the start of the currently active time selection as Unix timestamp. For example, 1494410783
$__unixEpochTo() Will be replaced by the end of the currently active time selection as Unix timestamp. For example, 1494497183

Build graphs

Example:

  • CSV File: data/SacramentocrimeJanuary2006.csv
  • DS name jan_2006
  • group by 1 hour
  • filter by current time range
SELECT $__timeGroup(cdatetime, 1h) as "time", district as "metric", count(*) as "value"
FROM
    jan_2006
WHERE
    $__timeFilter(cdatetime)
GROUP BY "time", "metric"
ORDER BY "time"

Example:

  • CSV File: data/SalesJan2009.csv
  • DS name sales
  • group by 24 hours
SELECT $__timeGroup(Transaction_date, 24h) as "time", Payment_Type as "metric", count(*) as "value"
FROM
sales
GROUP BY "time", "metric"
ORDER BY "time"

Simple table

Config

  • Read local file

  • Read remote file

Build

  • npm run build

Docker (Grafana 6.7.4)

http://your-server:3000 (admin/admin)

  • manage.sh build (build docker image)
  • manage.sh up (run container)
  • manage.sh down (stop container)

After starting container go to the showcase dashboard: http://your-host:3000/d/DTRcLsVGk/showcase-sales?orgId=1

Prev version

  • 1.1.0 which doesn't support SQL, but supports the filtering expressions.
Example data set: /data
Icon: https://freeicons.io/vector-file-types-icons/csv-icon-2272
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].