Update README + Lockfile

This commit is contained in:
2023-09-12 23:52:11 -03:00
parent e761f6d6c0
commit 973ba819b3
3 changed files with 36 additions and 29 deletions

52
Cargo.lock generated
View File

@@ -1544,32 +1544,6 @@ dependencies = [
"serde",
]
[[package]]
name = "server_metrics"
version = "0.1.0"
dependencies = [
"async-trait",
"axum",
"clap",
"futures",
"http",
"http-body",
"hyper",
"openssl",
"prometheus",
"reqwest",
"rust_decimal",
"rust_decimal_macros",
"serde",
"serde_json",
"slog",
"thiserror",
"tokio",
"tower",
"tower-http",
"url",
]
[[package]]
name = "sha2"
version = "0.10.7"
@@ -1694,6 +1668,32 @@ version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160"
[[package]]
name = "system-exporter"
version = "0.1.0"
dependencies = [
"async-trait",
"axum",
"clap",
"futures",
"http",
"http-body",
"hyper",
"openssl",
"prometheus",
"reqwest",
"rust_decimal",
"rust_decimal_macros",
"serde",
"serde_json",
"slog",
"thiserror",
"tokio",
"tower",
"tower-http",
"url",
]
[[package]]
name = "tap"
version = "1.0.1"

View File

@@ -1,10 +1,17 @@
# system-exporter
This repo will export useful metrics about your system and provide a nice dashboard.
This repo will export useful metrics about your system and provide a nice dashboard.
Note: currently only supports docker
## Usage
## Usage
1. Build: `docker build -t dockermonrs .`
2. Run: `cd example && docker-compose up -d`
2. Run: `cd example && docker-compose up -d`
## Troubleshooting
* If you are on OS X and using Docker Desktop, you may have to enable the docker socket. You can do this by
going to Settings -> Advanced -> Allow the default Docker socket to be used.
![docker_config.png](./img/docker_config.png)

BIN
img/docker_config.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 132 KiB