-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
308 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,5 @@ venv | |
src/sasquatch.egg-info | ||
.tox | ||
.DS_Store | ||
docs/user-guide/phalanx.code-workspace | ||
src/sasquatch/__pycache__ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
############### | ||
Developer guide | ||
############### | ||
|
||
This part of Sasquatch documentation contains information primarily of interest to developers of Sasquatch itself. | ||
|
||
|
||
Architecture overview | ||
===================== | ||
|
||
.. toctree:: | ||
:caption: Architecture overview | ||
|
||
|
||
.. figure:: /_static/sasquatch_architecture_single.png | ||
:name: Sasquatch architecture overviewpng | ||
|
||
Kafka | ||
----- | ||
|
||
In Sasquatch, `Kafka`_ is used as a message queue to InfluxDB and for data replication between Sasquatch :ref:`environments`. | ||
|
||
Kafka is managed by `Strimzi`_. | ||
In addition to the Strimzi components, Sasquatch uses the Confluent Schema Registry and the Confluent Kafka REST proxy to connect HTTP-based clients with Kafka. | ||
|
||
.. _Kafka: https://kafka.apache.org | ||
.. _Strimzi: https://strimzi.io | ||
|
||
Kafka Connect | ||
------------- | ||
|
||
In Sasquatch, Kafka connectors are managed by the `kafka-connect-manager`_ tool. | ||
|
||
The InfluxDB Sink connector consumes Kafka topics, converts the records to the InfluxDB line protocol, and writes them to an InfluxDB database. | ||
Sasquatch :ref:`namespaces` map to InfluxDB databases. | ||
|
||
The MirrorMaker 2 source connector is used for data replication. | ||
|
||
|
||
InfluxDB Enterprise | ||
------------------- | ||
|
||
InfluxDB is a `time series database`_ optimized for efficient storage and analysis of time series data. | ||
|
||
InfluxDB organizes the data in measurements, fields, and tags. | ||
In Sasquatch, Kafka topics (telemetry topics and metrics) map to InfluxDB measurements. | ||
|
||
InfluxDB provides an SQL-like query language called `InfluxQL`_ and a more powerful data scripting language called `Flux`_. | ||
Both languages can be used in Chronograf for data exploration and visualization. | ||
|
||
Read more about the Sasquatch architecture in `SQR-068`_. | ||
|
||
.. _kafka-connect-manager: https://kafka-connect-manager.lsst.io/ | ||
.. _time series database: https://www.influxdata.com/time-series-database/ | ||
.. _InfluxQL: https://docs.influxdata.com/influxdb/v1.8/query_language/ | ||
.. _Flux: https://docs.influxdata.com/influxdb/v1.8/flux/ | ||
.. _SQR-068: https://sqr-068.lsst.io | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
.. _analysis-tools: | ||
|
||
######## | ||
Overview | ||
######## | ||
|
||
The `Analysis Tools`_ package is used to create QA metrics from the `LSST Pipelines`_ outputs. | ||
|
||
Currently, the Analysis Tools metrics are dispatched to the ``usdfdev_efd`` Sasquatch environment under the ``lsst.dm`` namespace. | ||
|
||
The EFD Python client can be used to query these metrics. | ||
|
||
For example, to get the list of analysis tools in the ``lsst.dm`` namespace, you can use: | ||
|
||
.. code:: python | ||
from lsst_efd_client import EfdClient | ||
client = EfdClient("usdfdev_efd", db_name="lsst.dm") | ||
await client.get_topics() | ||
Example notebooks | ||
================= | ||
|
||
.. grid:: 3 | ||
|
||
.. grid-item-card:: Analysis Tools metrics | ||
:link: https://github.com/lsst-sqre/sasquatch/blob/main/docs/user-guide/notebooks/AnalysisTools.ipynb | ||
:link-type: url | ||
|
||
Learn how to query Analysis Tools metrics using the EFD Python client and InfluxQL. | ||
|
||
|
||
.. _LSST Pipelines: https://pipelines.lsst.io | ||
.. _Analysis Tools: https://pipelines.lsst.io/v/daily/modules/lsst.analysis.tools/index.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.