Skip to content

Commit

Permalink
feat(su): implement prometheus #888
Browse files Browse the repository at this point in the history
  • Loading branch information
VinceJuliano committed Jul 23, 2024
1 parent 918697c commit 87868a1
Show file tree
Hide file tree
Showing 13 changed files with 647 additions and 228 deletions.
3 changes: 2 additions & 1 deletion servers/su/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ SU_DATA_DIR=/home/rocksdb
USE_DISK=true
MIGRATION_BATCH_SIZE=10
DB_WRITE_CONNECTIONS=1
DB_READ_CONNECTIONS=40
DB_READ_CONNECTIONS=40
ENABLE_METRICS=true
124 changes: 117 additions & 7 deletions servers/su/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions servers/su/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ actix-cors = "0.6.0"
simd-json = "0.13.10"
futures = "0.3.30"
rocksdb = "0.22.0"
prometheus-client = "0.22.3"
sysinfo = "0.30.13"

[[bin]]
name = "su"
Expand Down
2 changes: 2 additions & 0 deletions servers/su/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ Create a .env file with the following variables, or set them in the OS:
- `USE_DISK` whether or not to write and read rocksdb, this is a performance enhancement for the data storage layer
- `SU_DATA_DIR` if `USE_DISK` is `true`, this is where rocksdb will be initialized
- `MIGRATION_BATCH_SIZE` when running the migration binary how many to fetch at once from postgres
- `ENABLE_METRICS` enable prometheus metrics to be available on the `/metrics` endpoint

> You can also use a `.env` file to set environment variables when running in
> development mode, See the `.env.example` for an example `.env`
Expand Down Expand Up @@ -121,6 +122,7 @@ in the container.
- `USE_DISK` whether or not to write and read rocksdb, this is a performance enhancement for the data storage layer
- `SU_DATA_DIR` if `USE_DISK` is `true`, this is where rocksdb will be initialized
- `MIGRATION_BATCH_SIZE` when running the migration binary how many to fetch at once from postgres
- `ENABLE_METRICS` enable prometheus metrics to be available on the `/metrics` endpoint



Expand Down
Loading

0 comments on commit 87868a1

Please sign in to comment.