added csv data source
This commit is contained in:
parent
fb7e6c6e7e
commit
e81669d023
BIN
docs/.DS_Store
vendored
BIN
docs/.DS_Store
vendored
Binary file not shown.
|
@ -25,8 +25,9 @@ services:
|
||||||
ports:
|
ports:
|
||||||
- 3000:3000
|
- 3000:3000
|
||||||
volumes:
|
volumes:
|
||||||
- ${DATA_DIR}/grafana:/var/lib/grafana
|
- ../dashboard/grafana:/var/lib/grafana
|
||||||
- ../dashboard/flows.json:/data/flows.json
|
- ../dashboard/flows.json:/data/flows.json
|
||||||
|
- ../dashboard/grafana.ini:/etc/grafana/grafana.ini
|
||||||
|
|
||||||
nodered:
|
nodered:
|
||||||
# https://hub.docker.com/r/grafana/grafana
|
# https://hub.docker.com/r/grafana/grafana
|
||||||
|
|
|
@ -8,7 +8,9 @@ As a visualization tool, Grafana is a popular component in monitoring stacks, of
|
||||||
|
|
||||||
To connect Grafana to our Influx-DB, you have to create a data source.
|
To connect Grafana to our Influx-DB, you have to create a data source.
|
||||||
|
|
||||||
The `URL`of our InfluxDB is `http://influxdb:8086`. In InfluxDB you have to create a `token` to connect: [Load Data -> API Tokens](http://localhost:8086/orgs/721027680173bf2f/load-data/tokens).
|
The `URL`of our InfluxDB is `http://influxdb:8086`.
|
||||||
|
|
||||||
|
In InfluxDB you have to create a `token` to connect: [Load Data -> API Tokens](http://localhost:8086/orgs/721027680173bf2f/load-data/tokens).
|
||||||
|
|
||||||
![Influx Create Token](../flow/docs/images/influx-create-token.png)
|
![Influx Create Token](../flow/docs/images/influx-create-token.png)
|
||||||
|
|
||||||
|
@ -31,4 +33,6 @@ from(bucket: "test")
|
||||||
|
|
||||||
![Example Dashboard](./docs/images/grafana-example-dashboard.png)
|
![Example Dashboard](./docs/images/grafana-example-dashboard.png)
|
||||||
|
|
||||||
|
## CSV Import
|
||||||
|
|
||||||
|
See [CSV Import](./docs/csv-import.md).
|
||||||
|
|
28
software/dashboard/docs/csv-import.md
Normal file
28
software/dashboard/docs/csv-import.md
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
# CSV Import
|
||||||
|
|
||||||
|
## Grafana
|
||||||
|
|
||||||
|
In Grafana there is a [csv-datasrouce plugin](https://grafana.github.io/grafana-csv-datasource/). This plug let you visualize data from any URL that returns CSV data, such as REST APIs or static file servers. You can even load data from a local file path. But it is *not* importing CSV from Grafana into a data source (like InfluxDB).
|
||||||
|
|
||||||
|
> For visualizing CSV data this is enough. Why should you duplicate data if the true data source is a CSV file.
|
||||||
|
|
||||||
|
So I added this plugin to our Grafana installation.
|
||||||
|
|
||||||
|
> I just mounted the whole [Grafana directory](../grafana/) into our Docker-Compose setup. Maybe we have to come up with a better solution.
|
||||||
|
|
||||||
|
Garafana is running on [localhost on port 3000 with credentials admin:admin](http://localhost:3000). So let's get there to add the CSV data source.
|
||||||
|
|
||||||
|
> I also added the CSV file to this repository and mounted the whole whole [Grafana directory](../grafana/) into our Docker-Compose setup. So the CSV file is also in, there. Maybe we have to come up with a better solution..
|
||||||
|
|
||||||
|
As the CSV is reachable by Grafana, you can crate a data source, there.
|
||||||
|
|
||||||
|
![Mounting a CSV file](./images/grafana-csv-data-source.png)
|
||||||
|
|
||||||
|
> grafana.ini is also mounted from [this repository](../grafana.ini). So local data mode is enabled.
|
||||||
|
|
||||||
|
Whith Grafana having access to data in the CSV file, it's easy to access this data to create a dashboard.
|
||||||
|
|
||||||
|
![Using CSV data](./images/grafana-csv-data.png)
|
||||||
|
|
||||||
|
|
||||||
|
|
BIN
software/dashboard/docs/images/grafana-csv-data-source.png
Normal file
BIN
software/dashboard/docs/images/grafana-csv-data-source.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 67 KiB |
BIN
software/dashboard/docs/images/grafana-csv-data.png
Normal file
BIN
software/dashboard/docs/images/grafana-csv-data.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 207 KiB |
2
software/dashboard/grafana.ini
Normal file
2
software/dashboard/grafana.ini
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
[plugin.marcusolsson-csv-datasource]
|
||||||
|
allow_local_mode = true
|
53
software/dashboard/grafana/alerting/1/__default__.tmpl
Normal file
53
software/dashboard/grafana/alerting/1/__default__.tmpl
Normal file
|
@ -0,0 +1,53 @@
|
||||||
|
|
||||||
|
{{ define "__subject" }}[{{ .Status | toUpper }}{{ if eq .Status "firing" }}:{{ .Alerts.Firing | len }}{{ if gt (.Alerts.Resolved | len) 0 }}, RESOLVED:{{ .Alerts.Resolved | len }}{{ end }}{{ end }}] {{ .GroupLabels.SortedPairs.Values | join " " }} {{ if gt (len .CommonLabels) (len .GroupLabels) }}({{ with .CommonLabels.Remove .GroupLabels.Names }}{{ .Values | join " " }}{{ end }}){{ end }}{{ end }}
|
||||||
|
|
||||||
|
{{ define "__text_values_list" }}{{ $len := len .Values }}{{ if $len }}{{ $first := gt $len 1 }}{{ range $refID, $value := .Values -}}
|
||||||
|
{{ $refID }}={{ $value }}{{ if $first }}, {{ end }}{{ $first = false }}{{ end -}}
|
||||||
|
{{ else }}[no value]{{ end }}{{ end }}
|
||||||
|
|
||||||
|
{{ define "__text_alert_list" }}{{ range . }}
|
||||||
|
Value: {{ template "__text_values_list" . }}
|
||||||
|
Labels:
|
||||||
|
{{ range .Labels.SortedPairs }} - {{ .Name }} = {{ .Value }}
|
||||||
|
{{ end }}Annotations:
|
||||||
|
{{ range .Annotations.SortedPairs }} - {{ .Name }} = {{ .Value }}
|
||||||
|
{{ end }}{{ if gt (len .GeneratorURL) 0 }}Source: {{ .GeneratorURL }}
|
||||||
|
{{ end }}{{ if gt (len .SilenceURL) 0 }}Silence: {{ .SilenceURL }}
|
||||||
|
{{ end }}{{ if gt (len .DashboardURL) 0 }}Dashboard: {{ .DashboardURL }}
|
||||||
|
{{ end }}{{ if gt (len .PanelURL) 0 }}Panel: {{ .PanelURL }}
|
||||||
|
{{ end }}{{ end }}{{ end }}
|
||||||
|
|
||||||
|
{{ define "default.title" }}{{ template "__subject" . }}{{ end }}
|
||||||
|
|
||||||
|
{{ define "default.message" }}{{ if gt (len .Alerts.Firing) 0 }}**Firing**
|
||||||
|
{{ template "__text_alert_list" .Alerts.Firing }}{{ if gt (len .Alerts.Resolved) 0 }}
|
||||||
|
|
||||||
|
{{ end }}{{ end }}{{ if gt (len .Alerts.Resolved) 0 }}**Resolved**
|
||||||
|
{{ template "__text_alert_list" .Alerts.Resolved }}{{ end }}{{ end }}
|
||||||
|
|
||||||
|
|
||||||
|
{{ define "__teams_text_alert_list" }}{{ range . }}
|
||||||
|
Value: {{ template "__text_values_list" . }}
|
||||||
|
Labels:
|
||||||
|
{{ range .Labels.SortedPairs }} - {{ .Name }} = {{ .Value }}
|
||||||
|
{{ end }}
|
||||||
|
Annotations:
|
||||||
|
{{ range .Annotations.SortedPairs }} - {{ .Name }} = {{ .Value }}
|
||||||
|
{{ end }}
|
||||||
|
{{ if gt (len .GeneratorURL) 0 }}Source: [{{ .GeneratorURL }}]({{ .GeneratorURL }})
|
||||||
|
|
||||||
|
{{ end }}{{ if gt (len .SilenceURL) 0 }}Silence: [{{ .SilenceURL }}]({{ .SilenceURL }})
|
||||||
|
|
||||||
|
{{ end }}{{ if gt (len .DashboardURL) 0 }}Dashboard: [{{ .DashboardURL }}]({{ .DashboardURL }})
|
||||||
|
|
||||||
|
{{ end }}{{ if gt (len .PanelURL) 0 }}Panel: [{{ .PanelURL }}]({{ .PanelURL }})
|
||||||
|
|
||||||
|
{{ end }}
|
||||||
|
{{ end }}{{ end }}
|
||||||
|
|
||||||
|
|
||||||
|
{{ define "teams.default.message" }}{{ if gt (len .Alerts.Firing) 0 }}**Firing**
|
||||||
|
{{ template "__teams_text_alert_list" .Alerts.Firing }}{{ if gt (len .Alerts.Resolved) 0 }}
|
||||||
|
|
||||||
|
{{ end }}{{ end }}{{ if gt (len .Alerts.Resolved) 0 }}**Resolved**
|
||||||
|
{{ template "__teams_text_alert_list" .Alerts.Resolved }}{{ end }}{{ end }}
|
|
@ -0,0 +1,14 @@
|
||||||
|
Jahr,Verarbeitendes Gewerbe (in kt),Verkehr gesamt (in kt),Straßenverkehr (in kt),Haushalte und GHD gesamt (in kt),Haushalte (in kt),"Gewerbe, Handel, Dienstleistungen GHD (in kt)",CO2-Emissionen gesamt (in kt)
|
||||||
|
2020,3702,3760,2989,6070,3165,2905,13532
|
||||||
|
2019,3956,4708,3313,6477,3451,3026,15140
|
||||||
|
2018,4220,4755,3294,6982,3600,3382,15957
|
||||||
|
2017,4630,4653,3333,7012,3509,3503,16294
|
||||||
|
2016,4661,4577,3287,7314,3637,3677,16552
|
||||||
|
2015,5135,4460,3198,7434,3593,3841,17029
|
||||||
|
2014,5388,4417,3178,7419,3657,3762,17224
|
||||||
|
2013,5224,4337,3165,8277,4056,4221,17839
|
||||||
|
2012,5848,4259,3033,8313,4030,4283,18419
|
||||||
|
2011,5714,4279,3045,8143,4052,4091,18136
|
||||||
|
2010,5899,4243,3065,8611,4245,4366,18753
|
||||||
|
2009,5442,4172,3013,8360,4159,4201,17974
|
||||||
|
2008,5835,4234,3019,8462,4284,4178,18531
|
|
BIN
software/dashboard/grafana/grafana.db
Normal file
BIN
software/dashboard/grafana/grafana.db
Normal file
Binary file not shown.
|
@ -0,0 +1,126 @@
|
||||||
|
# Changelog
|
||||||
|
|
||||||
|
## 0.6.4 (2022-12-13)
|
||||||
|
|
||||||
|
- **Chore** backend binaries are now compiled with go 1.19.4
|
||||||
|
|
||||||
|
## 0.6.3 (2021-12-03)
|
||||||
|
|
||||||
|
- **Chore** backend binaries are now compiled with go 1.19.3
|
||||||
|
- **Chore** frontend npm dependencies updated
|
||||||
|
- **Chore** added spellcheck
|
||||||
|
|
||||||
|
## 0.6.2 (2021-10-14)
|
||||||
|
|
||||||
|
[Full changelog](https://github.com/grafana/grafana-csv-datasource/compare/v0.6.1...v0.6.2)
|
||||||
|
|
||||||
|
- Fixed the broken docs and links
|
||||||
|
|
||||||
|
## 0.6.1 (2021-06-22)
|
||||||
|
|
||||||
|
[Full changelog](https://github.com/grafana/grafana-csv-datasource/compare/v0.6.0...v0.6.1)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
- allow_local_mode accepts any value
|
||||||
|
|
||||||
|
## 0.6.0 (2021-06-21)
|
||||||
|
|
||||||
|
[Full changelog](https://github.com/grafana/grafana-csv-datasource/compare/v0.5.0...v0.6.0)
|
||||||
|
|
||||||
|
### Enhancements
|
||||||
|
|
||||||
|
- Disable local mode by default. To use local mode, allow it in your grafana.ini:
|
||||||
|
|
||||||
|
```ini
|
||||||
|
[plugin.marcusolsson-csv-datasource]
|
||||||
|
allow_local_mode = true
|
||||||
|
```
|
||||||
|
|
||||||
|
## 0.5.0 (2021-03-21)
|
||||||
|
|
||||||
|
[Full changelog](https://github.com/grafana/grafana-csv-datasource/compare/v0.4.1...v0.5.0)
|
||||||
|
|
||||||
|
### Enhancements
|
||||||
|
|
||||||
|
- Improved query editor with support for HTTP params, headers, and body.
|
||||||
|
- Add support for relative paths ([#69](https://github.com/grafana/grafana-csv-datasource/issues/69))
|
||||||
|
- Add support for decimal separators ([#43](https://github.com/grafana/grafana-csv-datasource/issues/43))
|
||||||
|
- **EXPERIMENTAL:** Add support for regular expressions in field names ([#68](https://github.com/grafana/grafana-csv-datasource/issues/68)). Must be enabled in the Experimental tab in the query editor.
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
- **BREAKING:** Remove default Accept header ([#56](https://github.com/grafana/grafana-csv-datasource/issues/56)). If your data source expects `Accept: text/csv` on the request, you now need to add it yourself in the Params tab.
|
||||||
|
|
||||||
|
## 0.4.1 (2021-03-21)
|
||||||
|
|
||||||
|
[Full changelog](https://github.com/grafana/grafana-csv-datasource/compare/v0.4.0...v0.4.1)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
- Wrong data format is detected
|
||||||
|
|
||||||
|
## 0.4.0 (2021-03-21)
|
||||||
|
|
||||||
|
[Full changelog](https://github.com/grafana/grafana-csv-datasource/compare/v0.3.3...v0.4.0)
|
||||||
|
|
||||||
|
### Enhancements
|
||||||
|
|
||||||
|
- Add support for annotation queries
|
||||||
|
- Add support for variables queries ([#30](https://github.com/grafana/grafana-csv-datasource/issues/30))
|
||||||
|
- Upgrade @grafana/\* packages
|
||||||
|
- Upgrade Grafana Go SDK
|
||||||
|
|
||||||
|
## 0.3.3 (2021-02-05)
|
||||||
|
|
||||||
|
[Full changelog](https://github.com/grafana/grafana-csv-datasource/compare/v0.3.2...v0.3.3)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
- Default to HTTP if no storage type has been set
|
||||||
|
|
||||||
|
## 0.3.2 (2021-02-03)
|
||||||
|
|
||||||
|
[Full changelog](https://github.com/grafana/grafana-csv-datasource/compare/v0.3.1...v0.3.2)
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
- Allow lazy quotes ([#17](https://github.com/grafana/grafana-csv-datasource/issues/17))
|
||||||
|
|
||||||
|
## 0.3.1
|
||||||
|
|
||||||
|
[Full changelog](https://github.com/grafana/grafana-csv-datasource/compare/v0.3.0...v0.3.1)
|
||||||
|
|
||||||
|
### Enhancements
|
||||||
|
|
||||||
|
- Update grafana-plugin-sdk-go to v0.83.0
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
- Ignore empty custom HTTP headers
|
||||||
|
- Fix duplicate JSON tag for TLS skip verify
|
||||||
|
|
||||||
|
## 0.3.0
|
||||||
|
|
||||||
|
[Full changelog](https://github.com/grafana/grafana-csv-datasource/compare/v0.2.0...v0.3.0)
|
||||||
|
|
||||||
|
### Enhancements
|
||||||
|
|
||||||
|
- Add ARM support ([#13](https://github.com/grafana/grafana-csv-datasource/issues/13))
|
||||||
|
|
||||||
|
### Bug fixes
|
||||||
|
|
||||||
|
- Windows: Paths with backslashes don't work ([#14](https://github.com/grafana/grafana-csv-datasource/issues/14))
|
||||||
|
|
||||||
|
## 0.2.0
|
||||||
|
|
||||||
|
[Full changelog](https://github.com/grafana/grafana-csv-datasource/compare/v0.1.0...v0.2.0)
|
||||||
|
|
||||||
|
### Enhancements
|
||||||
|
|
||||||
|
- Add support for local CSV files ([#6](https://github.com/grafana/grafana-csv-datasource/issues/6))
|
||||||
|
- Add a default Accept header for text/csv
|
||||||
|
|
||||||
|
## 0.1.0
|
||||||
|
|
||||||
|
Initial release. Not fit for production use.
|
|
@ -0,0 +1,201 @@
|
||||||
|
Apache License
|
||||||
|
Version 2.0, January 2004
|
||||||
|
http://www.apache.org/licenses/
|
||||||
|
|
||||||
|
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||||
|
|
||||||
|
1. Definitions.
|
||||||
|
|
||||||
|
"License" shall mean the terms and conditions for use, reproduction,
|
||||||
|
and distribution as defined by Sections 1 through 9 of this document.
|
||||||
|
|
||||||
|
"Licensor" shall mean the copyright owner or entity authorized by
|
||||||
|
the copyright owner that is granting the License.
|
||||||
|
|
||||||
|
"Legal Entity" shall mean the union of the acting entity and all
|
||||||
|
other entities that control, are controlled by, or are under common
|
||||||
|
control with that entity. For the purposes of this definition,
|
||||||
|
"control" means (i) the power, direct or indirect, to cause the
|
||||||
|
direction or management of such entity, whether by contract or
|
||||||
|
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||||
|
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||||
|
|
||||||
|
"You" (or "Your") shall mean an individual or Legal Entity
|
||||||
|
exercising permissions granted by this License.
|
||||||
|
|
||||||
|
"Source" form shall mean the preferred form for making modifications,
|
||||||
|
including but not limited to software source code, documentation
|
||||||
|
source, and configuration files.
|
||||||
|
|
||||||
|
"Object" form shall mean any form resulting from mechanical
|
||||||
|
transformation or translation of a Source form, including but
|
||||||
|
not limited to compiled object code, generated documentation,
|
||||||
|
and conversions to other media types.
|
||||||
|
|
||||||
|
"Work" shall mean the work of authorship, whether in Source or
|
||||||
|
Object form, made available under the License, as indicated by a
|
||||||
|
copyright notice that is included in or attached to the work
|
||||||
|
(an example is provided in the Appendix below).
|
||||||
|
|
||||||
|
"Derivative Works" shall mean any work, whether in Source or Object
|
||||||
|
form, that is based on (or derived from) the Work and for which the
|
||||||
|
editorial revisions, annotations, elaborations, or other modifications
|
||||||
|
represent, as a whole, an original work of authorship. For the purposes
|
||||||
|
of this License, Derivative Works shall not include works that remain
|
||||||
|
separable from, or merely link (or bind by name) to the interfaces of,
|
||||||
|
the Work and Derivative Works thereof.
|
||||||
|
|
||||||
|
"Contribution" shall mean any work of authorship, including
|
||||||
|
the original version of the Work and any modifications or additions
|
||||||
|
to that Work or Derivative Works thereof, that is intentionally
|
||||||
|
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||||
|
or by an individual or Legal Entity authorized to submit on behalf of
|
||||||
|
the copyright owner. For the purposes of this definition, "submitted"
|
||||||
|
means any form of electronic, verbal, or written communication sent
|
||||||
|
to the Licensor or its representatives, including but not limited to
|
||||||
|
communication on electronic mailing lists, source code control systems,
|
||||||
|
and issue tracking systems that are managed by, or on behalf of, the
|
||||||
|
Licensor for the purpose of discussing and improving the Work, but
|
||||||
|
excluding communication that is conspicuously marked or otherwise
|
||||||
|
designated in writing by the copyright owner as "Not a Contribution."
|
||||||
|
|
||||||
|
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||||
|
on behalf of whom a Contribution has been received by Licensor and
|
||||||
|
subsequently incorporated within the Work.
|
||||||
|
|
||||||
|
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
copyright license to reproduce, prepare Derivative Works of,
|
||||||
|
publicly display, publicly perform, sublicense, and distribute the
|
||||||
|
Work and such Derivative Works in Source or Object form.
|
||||||
|
|
||||||
|
3. Grant of Patent License. Subject to the terms and conditions of
|
||||||
|
this License, each Contributor hereby grants to You a perpetual,
|
||||||
|
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||||
|
(except as stated in this section) patent license to make, have made,
|
||||||
|
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||||
|
where such license applies only to those patent claims licensable
|
||||||
|
by such Contributor that are necessarily infringed by their
|
||||||
|
Contribution(s) alone or by combination of their Contribution(s)
|
||||||
|
with the Work to which such Contribution(s) was submitted. If You
|
||||||
|
institute patent litigation against any entity (including a
|
||||||
|
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||||
|
or a Contribution incorporated within the Work constitutes direct
|
||||||
|
or contributory patent infringement, then any patent licenses
|
||||||
|
granted to You under this License for that Work shall terminate
|
||||||
|
as of the date such litigation is filed.
|
||||||
|
|
||||||
|
4. Redistribution. You may reproduce and distribute copies of the
|
||||||
|
Work or Derivative Works thereof in any medium, with or without
|
||||||
|
modifications, and in Source or Object form, provided that You
|
||||||
|
meet the following conditions:
|
||||||
|
|
||||||
|
(a) You must give any other recipients of the Work or
|
||||||
|
Derivative Works a copy of this License; and
|
||||||
|
|
||||||
|
(b) You must cause any modified files to carry prominent notices
|
||||||
|
stating that You changed the files; and
|
||||||
|
|
||||||
|
(c) You must retain, in the Source form of any Derivative Works
|
||||||
|
that You distribute, all copyright, patent, trademark, and
|
||||||
|
attribution notices from the Source form of the Work,
|
||||||
|
excluding those notices that do not pertain to any part of
|
||||||
|
the Derivative Works; and
|
||||||
|
|
||||||
|
(d) If the Work includes a "NOTICE" text file as part of its
|
||||||
|
distribution, then any Derivative Works that You distribute must
|
||||||
|
include a readable copy of the attribution notices contained
|
||||||
|
within such NOTICE file, excluding those notices that do not
|
||||||
|
pertain to any part of the Derivative Works, in at least one
|
||||||
|
of the following places: within a NOTICE text file distributed
|
||||||
|
as part of the Derivative Works; within the Source form or
|
||||||
|
documentation, if provided along with the Derivative Works; or,
|
||||||
|
within a display generated by the Derivative Works, if and
|
||||||
|
wherever such third-party notices normally appear. The contents
|
||||||
|
of the NOTICE file are for informational purposes only and
|
||||||
|
do not modify the License. You may add Your own attribution
|
||||||
|
notices within Derivative Works that You distribute, alongside
|
||||||
|
or as an addendum to the NOTICE text from the Work, provided
|
||||||
|
that such additional attribution notices cannot be construed
|
||||||
|
as modifying the License.
|
||||||
|
|
||||||
|
You may add Your own copyright statement to Your modifications and
|
||||||
|
may provide additional or different license terms and conditions
|
||||||
|
for use, reproduction, or distribution of Your modifications, or
|
||||||
|
for any such Derivative Works as a whole, provided Your use,
|
||||||
|
reproduction, and distribution of the Work otherwise complies with
|
||||||
|
the conditions stated in this License.
|
||||||
|
|
||||||
|
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||||
|
any Contribution intentionally submitted for inclusion in the Work
|
||||||
|
by You to the Licensor shall be under the terms and conditions of
|
||||||
|
this License, without any additional terms or conditions.
|
||||||
|
Notwithstanding the above, nothing herein shall supersede or modify
|
||||||
|
the terms of any separate license agreement you may have executed
|
||||||
|
with Licensor regarding such Contributions.
|
||||||
|
|
||||||
|
6. Trademarks. This License does not grant permission to use the trade
|
||||||
|
names, trademarks, service marks, or product names of the Licensor,
|
||||||
|
except as required for reasonable and customary use in describing the
|
||||||
|
origin of the Work and reproducing the content of the NOTICE file.
|
||||||
|
|
||||||
|
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||||
|
agreed to in writing, Licensor provides the Work (and each
|
||||||
|
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||||
|
implied, including, without limitation, any warranties or conditions
|
||||||
|
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||||
|
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||||
|
appropriateness of using or redistributing the Work and assume any
|
||||||
|
risks associated with Your exercise of permissions under this License.
|
||||||
|
|
||||||
|
8. Limitation of Liability. In no event and under no legal theory,
|
||||||
|
whether in tort (including negligence), contract, or otherwise,
|
||||||
|
unless required by applicable law (such as deliberate and grossly
|
||||||
|
negligent acts) or agreed to in writing, shall any Contributor be
|
||||||
|
liable to You for damages, including any direct, indirect, special,
|
||||||
|
incidental, or consequential damages of any character arising as a
|
||||||
|
result of this License or out of the use or inability to use the
|
||||||
|
Work (including but not limited to damages for loss of goodwill,
|
||||||
|
work stoppage, computer failure or malfunction, or any and all
|
||||||
|
other commercial damages or losses), even if such Contributor
|
||||||
|
has been advised of the possibility of such damages.
|
||||||
|
|
||||||
|
9. Accepting Warranty or Additional Liability. While redistributing
|
||||||
|
the Work or Derivative Works thereof, You may choose to offer,
|
||||||
|
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||||
|
or other liability obligations and/or rights consistent with this
|
||||||
|
License. However, in accepting such obligations, You may act only
|
||||||
|
on Your own behalf and on Your sole responsibility, not on behalf
|
||||||
|
of any other Contributor, and only if You agree to indemnify,
|
||||||
|
defend, and hold each Contributor harmless for any liability
|
||||||
|
incurred by, or claims asserted against, such Contributor by reason
|
||||||
|
of your accepting any such warranty or additional liability.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
APPENDIX: How to apply the Apache License to your work.
|
||||||
|
|
||||||
|
To apply the Apache License to your work, attach the following
|
||||||
|
boilerplate notice, with the fields enclosed by brackets "{}"
|
||||||
|
replaced with your own identifying information. (Don't include
|
||||||
|
the brackets!) The text should be enclosed in the appropriate
|
||||||
|
comment syntax for the file format. We also recommend that a
|
||||||
|
file or class name and description of purpose be included on the
|
||||||
|
same "printed page" as the copyright notice for easier
|
||||||
|
identification within third-party archives.
|
||||||
|
|
||||||
|
Copyright 2022 Grafana Labs
|
||||||
|
|
||||||
|
Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
|
you may not use this file except in compliance with the License.
|
||||||
|
You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing, software
|
||||||
|
distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
|
See the License for the specific language governing permissions and
|
||||||
|
limitations under the License.
|
|
@ -0,0 +1,38 @@
|
||||||
|
|
||||||
|
-----BEGIN PGP SIGNED MESSAGE-----
|
||||||
|
Hash: SHA512
|
||||||
|
|
||||||
|
{
|
||||||
|
"manifestVersion": "2.0.0",
|
||||||
|
"signatureType": "community",
|
||||||
|
"signedByOrg": "marcusolsson",
|
||||||
|
"signedByOrgName": "Marcus Olsson",
|
||||||
|
"plugin": "marcusolsson-csv-datasource",
|
||||||
|
"version": "0.6.3",
|
||||||
|
"time": 1670932858740,
|
||||||
|
"keyId": "7e4d0c6a708866e7",
|
||||||
|
"files": {
|
||||||
|
"CHANGELOG.md": "6d89b3325adfe2067a5ccde632bc0197416a6d99bb89367dd5b1232af8dcc19f",
|
||||||
|
"LICENSE": "ee4141d02acd9ce8d5ec0b3b79fc286a7e2b2c430f8b58bc6261446c0dd9b23c",
|
||||||
|
"README.md": "ea7dbb5d4897d88a3c6da91bf38198ae4c64b7b4ea8f4775aef2cd36c17d4f5c",
|
||||||
|
"gpx_csv-datasource_linux_amd64": "f7f5377cf081dd2d9e7f430961e2a4966602e8a9a977ea7134f1d5dbcb225f50",
|
||||||
|
"img/dark.png": "9e0d577c29d983d7c258ea5704ecdc3e574ff3d16cb9762e9b7fd06a13630daa",
|
||||||
|
"img/light.png": "e71042db587b73f3b6f5e90df09b9d74213060632a3b22250f483a55c752e287",
|
||||||
|
"img/logo.svg": "0bcb07e8f33b833bc4e5ac340feb0997a71dec4c0d8f497feaac775823bbb091",
|
||||||
|
"module.js": "8227c9542931ba495d44eb41892bc02353a393210cdcebeb78469ddda2881c53",
|
||||||
|
"module.js.LICENSE.txt": "347dbeed2228865f29a62b3b23a7c78b97d65d0fe6842c394dd2c9af2b622204",
|
||||||
|
"module.js.map": "6ea7b34a636260bc60386d1a50c07906039a5b35ad748bc4c63c2255d0765543",
|
||||||
|
"plugin.json": "cd567eeb6720a4b38687247f88022e69fff45789942455697889526c8a9e4c9e"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
-----BEGIN PGP SIGNATURE-----
|
||||||
|
Version: OpenPGP.js v4.10.10
|
||||||
|
Comment: https://openpgpjs.org
|
||||||
|
|
||||||
|
wrcEARMKAAYFAmOYaXsAIQkQfk0ManCIZucWIQTzOyW2kQdOhGNlcPN+TQxq
|
||||||
|
cIhm568wAgjrXk/7S8MfIJEuvkjczmQ9h22LxwlKMxMNAWoGv/U7/g48Nexy
|
||||||
|
gDuPrFIZGALfrFKOUwUCpkFIbLh6YjG3xAHxmwIFF0fD4dMccyv98W8Hpy50
|
||||||
|
dcOt70EG6ap8zs9QakcvIaNN3JLeoj8BEc0lwutxIHZdZBDEfsL6Ebd6zoY7
|
||||||
|
hgvDQzU=
|
||||||
|
=91CK
|
||||||
|
-----END PGP SIGNATURE-----
|
|
@ -0,0 +1,17 @@
|
||||||
|
# CSV data source for Grafana
|
||||||
|
|
||||||
|
[![Build](https://github.com/grafana/grafana-csv-datasource/workflows/CI/badge.svg)](https://github.com/grafana/grafana-csv-datasource/actions?query=workflow%3A%22CI%22)
|
||||||
|
[![Release](https://github.com/grafana/grafana-csv-datasource/workflows/Release/badge.svg)](https://github.com/grafana/grafana-csv-datasource/actions?query=workflow%3ARelease)
|
||||||
|
[![Marketplace](https://img.shields.io/badge/dynamic/json?logo=grafana&color=F47A20&label=marketplace&prefix=v&query=%24.items%5B%3F%28%40.slug%20%3D%3D%20%22marcusolsson-csv-datasource%22%29%5D.version&url=https%3A%2F%2Fgrafana.com%2Fapi%2Fplugins)](https://grafana.com/grafana/plugins/marcusolsson-csv-datasource)
|
||||||
|
[![Downloads](https://img.shields.io/badge/dynamic/json?logo=grafana&color=F47A20&label=downloads&query=%24.items%5B%3F%28%40.slug%20%3D%3D%20%22marcusolsson-csv-datasource%22%29%5D.downloads&url=https%3A%2F%2Fgrafana.com%2Fapi%2Fplugins)](https://grafana.com/grafana/plugins/marcusolsson-csv-datasource)
|
||||||
|
[![License](https://img.shields.io/github/license/grafana/grafana-csv-datasource)](LICENSE)
|
||||||
|
|
||||||
|
> **Maintenance**: Now the plugin is being maintained by Grafana Labs. Big thanks to [Marcus Olsson](https://twitter.com/marcusolsson) for the awesome work!
|
||||||
|
|
||||||
|
A data source for loading CSV data into [Grafana](https://grafana.com).
|
||||||
|
|
||||||
|
![Screenshot](https://github.com/grafana/grafana-csv-datasource/raw/main/src/img/dark.png)
|
||||||
|
|
||||||
|
## Documentation
|
||||||
|
|
||||||
|
Full documentation for the plugin is available on the [website](https://grafana.github.io/grafana-csv-datasource).
|
Binary file not shown.
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,11 @@
|
||||||
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
||||||
|
|
||||||
|
//! Copyright (c) JS Foundation and other contributors
|
||||||
|
|
||||||
|
//! github.com/moment/moment-timezone
|
||||||
|
|
||||||
|
//! license : MIT
|
||||||
|
|
||||||
|
//! moment-timezone.js
|
||||||
|
|
||||||
|
//! version : 0.5.38
|
File diff suppressed because one or more lines are too long
|
@ -0,0 +1,64 @@
|
||||||
|
{
|
||||||
|
"$schema": "https://github.com/grafana/grafana/raw/main/docs/sources/developers/plugins/plugin.schema.json",
|
||||||
|
"alerting": true,
|
||||||
|
"annotations": true,
|
||||||
|
"backend": true,
|
||||||
|
"dependencies": {
|
||||||
|
"grafanaDependency": "\u003e=8.4.7",
|
||||||
|
"grafanaVersion": "8.4.7",
|
||||||
|
"plugins": []
|
||||||
|
},
|
||||||
|
"executable": "gpx_csv-datasource",
|
||||||
|
"id": "marcusolsson-csv-datasource",
|
||||||
|
"info": {
|
||||||
|
"author": {
|
||||||
|
"name": "Grafana Labs",
|
||||||
|
"url": "https://grafana.com"
|
||||||
|
},
|
||||||
|
"build": {
|
||||||
|
"time": 1670932852698,
|
||||||
|
"repo": "https://github.com/grafana/grafana-csv-datasource",
|
||||||
|
"branch": "main",
|
||||||
|
"hash": "29675413b7a78c36ce2bea100a4d733a0eb05418",
|
||||||
|
"build": 17
|
||||||
|
},
|
||||||
|
"description": "A data source for loading CSV data",
|
||||||
|
"keywords": [
|
||||||
|
"csv"
|
||||||
|
],
|
||||||
|
"links": [
|
||||||
|
{
|
||||||
|
"name": "Documentation",
|
||||||
|
"url": "https://grafana.github.io/grafana-csv-datasource"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Website",
|
||||||
|
"url": "https://github.com/grafana/grafana-csv-datasource"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "License",
|
||||||
|
"url": "https://github.com/grafana/grafana-csv-datasource/blob/main/LICENSE"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"logos": {
|
||||||
|
"large": "img/logo.svg",
|
||||||
|
"small": "img/logo.svg"
|
||||||
|
},
|
||||||
|
"screenshots": [
|
||||||
|
{
|
||||||
|
"name": "Explore (Dark)",
|
||||||
|
"path": "img/dark.png"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Explore (Light)",
|
||||||
|
"path": "img/light.png"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"updated": "2022-12-13",
|
||||||
|
"version": "0.6.3"
|
||||||
|
},
|
||||||
|
"logs": true,
|
||||||
|
"metrics": true,
|
||||||
|
"name": "CSV",
|
||||||
|
"type": "datasource"
|
||||||
|
}
|
Loading…
Reference in a new issue