Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/edgarrmondragon/singer-metrics
Rust package for processing and converting singer.io metrics
https://github.com/edgarrmondragon/singer-metrics
metrics monitoring-scripts singer-io
Last synced: 22 days ago
JSON representation
Rust package for processing and converting singer.io metrics
- Host: GitHub
- URL: https://github.com/edgarrmondragon/singer-metrics
- Owner: edgarrmondragon
- License: apache-2.0
- Created: 2023-04-01T08:20:28.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-08-01T19:58:28.000Z (3 months ago)
- Last Synced: 2024-08-01T22:15:59.311Z (3 months ago)
- Topics: metrics, monitoring-scripts, singer-io
- Language: Rust
- Homepage:
- Size: 126 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Singer Metrics Processing
> **Warning**
> Experimental and subject to significant changes to the API and CLI.This project is a collection of utilities for processing metrics from the Singer.io specification.
## Singer Metrics
The expected format of a Singer metric line is:
```
INFO METRIC:
```## Build
```sh
cargo build
```### Python wheel
```sh
maturin build
```## InfluxDB line protocol
The `singer-metrics` CLI provides a `line-protocol` subcommand that can be used to convert Singer metrics to the [InfluxDB line protocol](https://docs.influxdata.com/influxdb/v2.6/reference/syntax/line-protocol/).
```console
$ echo 'INFO METRIC: {"metric_type": "timer", "metric": "http_request_duration", "value": 0.846369, "tags": {"my_tag": "abc"}}' \
| singer-metrics line-protocol
http_request_duration,my_tag="abc" value=0.846369 1680468150224571000
```