https://github.com/sile/magpies
Command-line tool for polling and visualizing JSON-formatted time series metrics
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (8.4%) to scientific vocabulary
Keywords
Repository
Command-line tool for polling and visualizing JSON-formatted time series metrics
Basic Info
Statistics
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 1
Topics
Metadata Files
README.md
magpies
A command-line tool for polling and visualizing JSON-formatted time series metrics.
This tool does not require any schema or query definitions, making it ideal for quickly understanding an overview of targets that provide JSON-formatted metrics.
For more detailed or complex analysis, it is recommended to use more feature-rich tools such as Prometheus and Grafana.
Examples
```console // Install. $ cargo install magpies
// Print help. $ magpies -h Command-line tool for polling and visualizing JSON-formatted time series metrics
Usage: magpies
Commands:
poll Poll the metrics of the specified targets and output the results in JSON Lines format to stdout
view Launch the TUI viewer to visualize the results of the poll command
target Generate a JSON object that defines a polling target
help Print this message or the help of the given subcommand(s)
Options: -h, --help Print help -V, --version Print version
// Collect memory metrics via sysinfojson command. $ cargo install sysinfojson $ sysinfojson system memory | jq . { "memory": { "availablememory": 38591873024, "totalmemory": 68719476736, "totalswap": 0, "usedmemory": 32941457408, "used_swap": 0 } }
$ LOCALTARGET=$(magpies target --name local -- sysinfojson system memory) $ REMOTETARGET=$(magpies target --name remote -- ssh foo@bar sysinfojson system memory)
$ magpies poll $LOCALTARGET $REMOTETARGET | tee metrics.jsonl {"target":"local","timestamp":1727066396.667561,"metrics":{"memory":{"availablememory":38727598080,"totalmemory":68719476736,"totalswap":0,"usedmemory":32796721152,"usedswap":0}}} {"target":"remote","timestamp":1727066397.19239,"metrics":{"memory":{"availablememory":3853799424,"totalmemory":11564953600,"totalswap":8589930496,"usedmemory":7711154176,"usedswap":2966417408}}} {"target":"local","timestamp":1727066397.68037,"metrics":{"memory":{"availablememory":38723633152,"totalmemory":68719476736,"totalswap":0,"usedmemory":32799850496,"usedswap":0}}} {"target":"remote","timestamp":1727066398.052064,"metrics":{"memory":{"availablememory":3853238272,"totalmemory":11564953600,"totalswap":8589930496,"usedmemory":7711715328,"usedswap":2966417408}}} ...
// Launch the TUI viewer in a separate terminal.
$ magpies view metrics.jsonl --interval 5 --portable-chart
┏Status━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓┏Help━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃Time: 120s ~ 124s (between 0s ~ 124s) ┃┃Quit: rev, ┃
┃Targets: 2 ┃┃Time:
tart, Viewer Terms
Aggregated Metrics table:
Name column:Value column:Delta/s column:({{ CURRENT_VALUE }} - {{ PREVIOUS_VALUE }}) / {{ INTERVAL_SECONDS }} is displayed.Metrics of "{{ METRIC_NAME }}" table:
Target column:Value column:
Delta/s column:({{ CURRENT_VALUE }} - {{ PREVIOUS_VALUE }}) / {{ INTERVAL_SECONDS }} is displayed.
Owner
- Name: Takeru Ohta
- Login: sile
- Kind: user
- Location: Tokyo, Japan
- Repositories: 289
- Profile: https://github.com/sile
GitHub Events
Total
Last Year
Issues and Pull Requests
Last synced: 6 months ago
All Time
- Total issues: 0
- Total pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Total issue authors: 0
- Total pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 0
- Average time to close issues: N/A
- Average time to close pull requests: N/A
- Issue authors: 0
- Pull request authors: 0
- Average comments per issue: 0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels
Packages
- Total packages: 1
-
Total downloads:
- cargo 988 total
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 1
- Total maintainers: 1
crates.io: magpies
Command-line tool for polling and visualizing JSON-formatted time series metrics
- Homepage: https://github.com/sile/magpies
- Documentation: https://docs.rs/magpies/
- License: MIT
-
Latest release: 0.1.0
published over 1 year ago
Rankings
Maintainers (1)
Dependencies
- actions-rs/cargo v1 composite
- actions-rs/toolchain v1 composite
- actions/checkout v4 composite
- ahash 0.8.11
- aho-corasick 1.1.3
- allocator-api2 0.2.18
- anstream 0.6.15
- anstyle 1.0.8
- anstyle-parse 0.2.5
- anstyle-query 1.1.1
- anstyle-wincon 3.0.4
- autocfg 1.3.0
- bitflags 2.6.0
- cassowary 0.3.0
- castaway 0.2.3
- cfg-if 1.0.0
- clap 4.5.18
- clap_builder 4.5.18
- clap_derive 4.5.18
- clap_lex 0.7.2
- colorchoice 1.0.2
- compact_str 0.8.0
- crossterm 0.28.1
- crossterm_winapi 0.9.1
- either 1.13.0
- errno 0.3.9
- hashbrown 0.14.5
- heck 0.5.0
- hermit-abi 0.3.9
- instability 0.3.2
- is_terminal_polyfill 1.70.1
- itertools 0.13.0
- itoa 1.0.11
- libc 0.2.158
- linux-raw-sys 0.4.14
- lock_api 0.4.12
- log 0.4.22
- lru 0.12.4
- memchr 2.7.4
- mio 1.0.2
- once_cell 1.19.0
- orfail 1.1.0
- parking_lot 0.12.3
- parking_lot_core 0.9.10
- paste 1.0.15
- proc-macro2 1.0.86
- quote 1.0.37
- ratatui 0.28.1
- redox_syscall 0.5.4
- regex 1.10.6
- regex-automata 0.4.7
- regex-syntax 0.8.4
- rustix 0.38.37
- rustversion 1.0.17
- ryu 1.0.18
- scopeguard 1.2.0
- serde 1.0.210
- serde_derive 1.0.210
- serde_json 1.0.128
- signal-hook 0.3.17
- signal-hook-mio 0.2.4
- signal-hook-registry 1.4.2
- smallvec 1.13.2
- static_assertions 1.1.0
- strsim 0.11.1
- strum 0.26.3
- strum_macros 0.26.4
- syn 2.0.77
- unicode-ident 1.0.13
- unicode-segmentation 1.12.0
- unicode-truncate 1.1.0
- unicode-width 0.1.14
- utf8parse 0.2.2
- version_check 0.9.5
- wasi 0.11.0+wasi-snapshot-preview1
- winapi 0.3.9
- winapi-i686-pc-windows-gnu 0.4.0
- winapi-x86_64-pc-windows-gnu 0.4.0
- windows-sys 0.52.0
- windows-targets 0.52.6
- windows_aarch64_gnullvm 0.52.6
- windows_aarch64_msvc 0.52.6
- windows_i686_gnu 0.52.6
- windows_i686_gnullvm 0.52.6
- windows_i686_msvc 0.52.6
- windows_x86_64_gnu 0.52.6
- windows_x86_64_gnullvm 0.52.6
- windows_x86_64_msvc 0.52.6
- zerocopy 0.7.35
- zerocopy-derive 0.7.35