https://github.com/levkk/metricscat
Metrics, traces, and logs, all in a convenient self-hosted environment and a Free license.
https://github.com/levkk/metricscat
Last synced: over 1 year ago
JSON representation
Metrics, traces, and logs, all in a convenient self-hosted environment and a Free license.
- Host: GitHub
- URL: https://github.com/levkk/metricscat
- Owner: levkk
- Created: 2022-01-12T18:56:08.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-27T21:37:38.000Z (over 4 years ago)
- Last Synced: 2025-03-16T14:54:05.960Z (over 1 year ago)
- Language: Rust
- Size: 288 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://circleci.com/gh/levkk/metricscat/tree/main)
# Metrics Cat
A self-hosted metrics, logs and APM solution with a free license.
## Local development
This will help you setup Metrics Cat locally!
### Requirements
1. PostgreSQL 10 or higher,
2. [nvm](https://github.com/nvm-sh/nvm),
3. latest [Rust](https://rust-lang.org).
### Setup
1. `createdb metrics` to create the Postgres database used by the app,
2. `cargo build` to download the dependencies and build the app,
3. `cargo install sqlx-cli && sqlx migrate run --database-url=postgres:///metrics` to run migrations.
This app consists of three components:
- agent that collects the metrics,
- server that serves the API,
- frontend (React) which makes this look good.
In three different terminal tabs, run this individually:
1. `cargo run server`,
2. `cargo run agent`,
3. `cd metricscat-frontend && nvm install && nvm use && npm install && npm start`.
You should see the metrics appear in your browser!
