A few samples of Prometheus queries in Grafana dashboards.
{
"datasource": {
"type": "prometheus",
#!/usr/bin/env python3 | |
""" | |
httpd-reflector | |
A simple HTTP server reflecting HTTP requests for inspection. | |
It will print the contents of incoming HTTP requests to STDOUT | |
making it suitable for development and debugging purposes. | |
- Written by Nathan Hamiel (2010) | |
https://gist.github.com/huyng/814831 |
""" | |
About | |
===== | |
Example program to demonstrate multi-row inserts and batched inserts | |
using SQLAlchemy's "insertmanyvalues_page_size" option. | |
https://docs.sqlalchemy.org/core/connections.html#controlling-the-batch-size | |
Synopsis |
""" | |
Attempt to trip a low-memory condition in CrateDB, resulting in a weird error message | |
like `SQLParseException[ShardCollectContext for 0 already added]`. | |
This program tries to emulate the MLflow test case `test_search_runs_returns_expected_results_with_large_experiment`, | |
succeeded by a `DELETE FROM` table truncation operation. | |
Remark: It did not work out well. This program trips `OutOfMemoryError[Java heap space]` | |
right away. Please use the MLflow test case reproducer demonstrated at: | |
https://github.com/crate-workbench/mlflow-cratedb/issues/53#issuecomment-1927234463 |
""" | |
## About | |
Regression with CrateDB nightly-5.7.0-2024-01-26-00-02. | |
The assembled list of ParameterSymbols is invalid. Missing parameters. | |
-- https://github.com/crate/crate/issues/15488 | |
## Setup |
-- Demo: SQL "UPDATE ... FROM" for upsert/merge operations. | |
-- Reflecting Meltano's PostgreSQL data loader (target) adapter. | |
-- | |
-- Usage: | |
-- | |
-- psql postgresql://postgres@localhost:5432/ < update-from-merges.sql | |
-- crash --host http://crate@localhost:4200/ < update-from-merges.sql | |
-- Make a blank slate. | |
DROP TABLE IF EXISTS main; |
/** | |
* CrateDB: Exercise storing and searching by vectors using its "FLOAT_VECTOR" and "KNN_MATCH". | |
* The example uses euclidean distance for vector similarity search. | |
* | |
* Synopsis:: | |
* | |
* docker run --rm -it --publish=4200:4200 crate/crate:nightly -Cdiscovery.type=single-node | |
* crash < cratedb-vector-knn-exercise.sql | |
* | |
* Resources: |
/** | |
* PostgreSQL/pgvector: Exercise storing and searching by vectors using its operators. | |
* The example uses euclidean distance for vector similarity search. | |
* | |
* Synopsis:: | |
* | |
* docker run --rm -it --publish=5432:5432 --env "POSTGRES_HOST_AUTH_METHOD=trust" ankane/pgvector postgres -c log_statement=all | |
* psql postgresql://postgres@localhost < pgvector-vector-knn-exercise.sql | |
* | |
* Resources: |
# Cedar Grove NAU7802 FeatherWing example | |
# 2021-01-07 v01 Cedar Grove Studios | |
# https://github.com/CedarGroveStudios/NAU7802_24-bit_ADC_FeatherWing/blob/main/examples/clue_scale/clue_scale_code.py | |
# Import library | |
# https://github.com/CedarGroveStudios/NAU7802_24-bit_ADC_FeatherWing/blob/main/code/cedargrove_nau7802.py | |
import board | |
from cedargrove_nau7802 import NAU7802 | |
# Configure ADC |