Skip to content

Commit fcd4379

Browse files
committed
[CrateDB] Add documentation across the board
1 parent ce1fbbb commit fcd4379

File tree

25 files changed

+238
-41
lines changed

25 files changed

+238
-41
lines changed

CHANGES.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ in progress
2525
a single TTN Application. Thanks, @thiasB, @einsiedlerkrebs, and @ClemensGruber.
2626
- [core] Fix error when connecting to MQTT broker without authentication credentials
2727
- [docs] Refactor "decoders" section to "integrations", and improve index/overview page
28+
- [CrateDB] Add support for data acquisition and data export
2829

2930

3031
.. _kotori-0.27.0:

README.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ Kotori
7676
:target: https://github.com/grafana/grafana
7777
:alt: Supported Grafana versions
7878

79+
.. image:: https://img.shields.io/badge/CrateDB-4.2%20--%205.x-blue.svg
80+
:target: https://github.com/crate/crate
81+
:alt: Supported CrateDB versions
82+
7983
.. image:: https://img.shields.io/badge/InfluxDB-1.6%2C%201.7%2C%201.8-blue.svg
8084
:target: https://github.com/influxdata/influxdb
8185
:alt: Supported InfluxDB versions
@@ -105,7 +109,7 @@ Details
105109

106110
Kotori takes the role of the `data historian`_ component within a `SCADA`_ / `MDE`_
107111
system, exclusively built upon industry-grade `free and open-source software`_
108-
like Grafana_, Mosquitto_, or InfluxDB_. It is written in Python_,
112+
like Grafana_, Mosquitto_, CrateDB_, or InfluxDB_. It is written in Python_,
109113
and uses the Twisted_ networking library.
110114

111115
The best way to find out what you can do with Kotori, is by looking at
@@ -222,6 +226,7 @@ The project is licensed under the terms of the GNU AGPL license, see `LICENSE`_.
222226

223227
.. _Autobahn: https://crossbar.io/autobahn/
224228
.. _contributors: https://getkotori.org/docs/project/contributors.html
229+
.. _CrateDB: https://github.com/crate/crate
225230
.. _Create an issue: https://github.com/daq-tools/kotori/issues/new
226231
.. _data historian: https://en.wikipedia.org/wiki/Operational_historian
227232
.. _development sandbox: https://getkotori.org/docs/setup/sandbox.html

doc/source/_meta.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
:keywords lang=es: adquisición de datos, gráficas, conjunto de herramientas, telemetría
1717
:keywords lang=fr: acquisition de données, graphiques, boîte à outils, télémétrie
1818
:keywords: m2m, iot, mqtt, wamp, http, rest, udp, binary struct,
19-
Kotori, Grafana, InfluxDB, Mosquitto, MongoDB, XMPP, SMTP
19+
Kotori, Grafana, CrateDB, InfluxDB, Mosquitto, MongoDB, XMPP, SMTP
2020

doc/source/_resources.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@
170170
.. _Raumfahrtagentur: http://www.raumfahrtagentur.org/
171171

172172
.. NEW
173+
.. _CrateDB: https://github.com/crate/crate
173174
.. _curl: https://en.wikipedia.org/wiki/CURL
174175
.. _Flux data scripting language: https://docs.influxdata.com/flux/
175176
.. _Funky v3: https://harizanov.com/product/funky-v3/
@@ -183,6 +184,7 @@
183184
.. _OpenXC: https://openxcplatform.com/
184185
.. _OpenXC for Python: http://python.openxcplatform.com/
185186
.. _multi-tenant: https://en.wikipedia.org/wiki/Multitenancy
187+
.. _near real-time: https://en.wikipedia.org/wiki/Near_real-time#Near_real-time
186188
.. _NodeUSB: https://web.archive.org/web/20210621192219/http://www.nodeusb.com/
187189
.. _trunking: https://en.wikipedia.org/wiki/Trunking
188190
.. _webhook: https://en.wikipedia.org/wiki/Webhook

doc/source/about/scenarios.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ We are standing on the shoulders of giants:
8585
- Leverage the open infrastructure based on Twisted_ - an event-driven networking engine -
8686
to implement custom software components.
8787
- Listen and talk M2M_ using the *MQ Telemetry Transport* connectivity protocol and software bus (MQTT_).
88-
- Store data points into InfluxDB_, a leading open source time series database suitable
89-
for realtime analytics and sensor data storage.
88+
- Store data points into CrateDB_, InfluxDB_, or other open source time series databases
89+
suitable for realtime analytics and sensor data storage.
9090
- Automate dashboard management in the context of data arriving on different data channels
9191
using Grafana_, an open source, feature rich metrics dashboard and graph editor.
9292
- Make Browser clients first-class citizens of the underpinning software bus framework

doc/source/about/technologies.rst

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,16 @@ Infrastructure components
2626

2727
- Kotori_, a data acquisition, graphing and telemetry toolkit
2828
- Grafana_, a graph and dashboard builder for visualizing time series metrics
29-
- InfluxDB_, a time-series database
29+
- CrateDB_, a time-series database ¹
30+
- InfluxDB_, a time-series database ¹
3031
- Mosquitto_, an MQTT message broker
31-
- MongoDB_, a document store (optional) ¹²
32+
- MongoDB_, a document store (optional) ²³
3233

33-
| ¹ MongoDB is only required when doing CSV data acquisition, so it is completely
34+
| ¹ Kotori can either use CrateDB or InfluxDB as timeseries database.
35+
| ² MongoDB is only required when doing CSV data acquisition, so it is completely
3436
| optional for regular operations of Kotori.
35-
| ² As MongoDB - strictly speaking - stopped being free software recently (2018/2019),
36-
| it will probably be phased out gradually and replaced by PostgreSQL_.
37+
| ³ As MongoDB - strictly speaking - stopped being free software recently (2018/2019),
38+
| it will probably be phased out gradually and replaced by PostgreSQL_ or CrateDB_.
3739
3840

3941
Supported protocols

doc/source/database/cratedb.rst

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
.. include:: ../_resources.rst
2+
3+
.. _database-cratedb:
4+
5+
#######
6+
CrateDB
7+
#######
8+
9+
.. admonition::
10+
11+
.. todo:: Content on this page may need an update.
12+
13+
*****
14+
About
15+
*****
16+
17+
`CrateDB`_ is a distributed and scalable SQL database for storing and analyzing massive
18+
amounts of data in `near real-time`_. It is PostgreSQL-compatible, and based on Lucene.

doc/source/database/index.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ with Kotori. Adding more adapters is possible.
1414
:maxdepth: 1
1515
:hidden:
1616
17+
cratedb
1718
influxdb
1819
mongodb
1920
```
@@ -24,6 +25,34 @@ mongodb
2425
:padding: 0
2526

2627

28+
:::::{grid-item-card}
29+
::::{grid} 2
30+
:margin: 0
31+
:padding: 0
32+
33+
:::{grid-item}
34+
:columns: 8
35+
#### [](#database-cratedb)
36+
37+
CrateDB is a distributed and scalable SQL database for storing and analyzing massive
38+
amounts of data in near real-time. It is PostgreSQL-compatible, and based on Lucene.
39+
40+
<small>
41+
<strong>Categories:</strong> timeseries-database, multi-modal database
42+
</small>
43+
:::
44+
:::{grid-item}
45+
:columns: 4
46+
{bdg-primary-line}`eth` {bdg-primary-line}`wifi` {bdg-primary-line}`http` {bdg-primary-line}`postgresql`
47+
48+
{bdg-success-line}`sql` {bdg-success-line}`blob`
49+
50+
{bdg-secondary-line}`amd64` {bdg-secondary-line}`arm64`
51+
:::
52+
::::
53+
:::::
54+
55+
2756
:::::{grid-item-card}
2857
::::{grid} 2
2958
:margin: 0

doc/source/development/releasing/foundation.rst

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,24 @@ Download packages
3434
scp mosquitto*.deb [email protected]:/srv/packages/organizations/elmyra/foss/aptly/public/incoming
3535

3636

37+
*******
38+
CrateDB
39+
*******
40+
- https://github.com/crate/crate
41+
- https://crate.io/docs/crate/tutorials/
42+
43+
Download packages
44+
=================
45+
::
46+
47+
# Download amd64 packages
48+
wget https://cdn.crate.io/downloads/apt/stable/pool/main/c/crate/crate_5.3.2-1~buster_amd64.deb
49+
wget https://cdn.crate.io/downloads/apt/stable/pool/main/c/crate/crate_5.3.2-1~bullseye_amd64.deb
50+
51+
# Upload to "incoming" directory
52+
scp crate_*.deb [email protected]:/srv/packages/organizations/elmyra/foss/aptly/public/incoming
53+
54+
3755
********
3856
InfluxDB
3957
********
@@ -100,7 +118,7 @@ Publish packages
100118

101119
# Add packages to repository
102120
aptly repo add -config=$APTLY_CONFIG -remove-files=true $APTLY_REPOSITORY \
103-
$PACKAGES_INCOMING/influxdb*.deb $PACKAGES_INCOMING/grafana*.deb $PACKAGES_INCOMING/*mosquitto*.deb
121+
$PACKAGES_INCOMING/crate*.deb $PACKAGES_INCOMING/influxdb*.deb $PACKAGES_INCOMING/grafana*.deb $PACKAGES_INCOMING/*mosquitto*.deb
104122

105123
# Publish repository
106124
aptly publish update -config=$APTLY_CONFIG -gpg-key=2543A838 -passphrase=esp $APTLY_DISTRIBUTION

doc/source/development/releasing/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Releasing and packaging
44

55
This section describes how to cut a new release, how to build
66
and publish Kotori packages and how to add foundation packages
7-
like InfluxDB and Grafana to the same package repositories.
7+
like CrateDB, InfluxDB, and Grafana to the same package repositories.
88

99
.. toctree::
1010
:maxdepth: 1

0 commit comments

Comments
 (0)