From ec7632dff14fa2af547a3163ef05c09279ea0262 Mon Sep 17 00:00:00 2001 From: alemi Date: Tue, 10 Dec 2024 11:15:34 +0100 Subject: [PATCH] chore: renamed to upp --- Cargo.lock | 2 +- Cargo.toml | 2 +- README.md | 8 ++++---- src/api.rs | 2 +- src/main.rs | 2 +- uppe-rs.toml => upp.toml | 5 +++-- web/index.html | 8 ++++---- web/{uppe.ico => upp.ico} | Bin 8 files changed, 15 insertions(+), 14 deletions(-) rename uppe-rs.toml => upp.toml (70%) rename web/{uppe.ico => upp.ico} (100%) diff --git a/Cargo.lock b/Cargo.lock index 4c5aa34..dca9bde 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1392,7 +1392,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "adb9e6ca4f869e1180728b7950e35922a7fc6397f7b641499e8f3ef06e50dc83" [[package]] -name = "uppe-rs" +name = "upp" version = "0.2.0" dependencies = [ "async-recursion", diff --git a/Cargo.toml b/Cargo.toml index 6531cb7..6f74a08 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,5 +1,5 @@ [package] -name = "uppe-rs" +name = "upp" version = "0.2.0" edition = "2021" diff --git a/README.md b/README.md index 23ce213..54dca60 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ -# uppe.rs +# upp > batteries-included uptime monitor for your infrastructure -`uppe.rs` runs off a single binary, a configuration file (in toml) and an sqlite database (can be in memory or persisted on disk), and provides a daemon that tests configured routes while also serving a tiny API and web frontend. +`upp` runs off a single binary, a configuration file (in toml) and an sqlite database (can be in memory or persisted on disk), and provides a daemon that tests configured routes while also serving a tiny API and web frontend. -it periodically makes requests to configured services, and tracks roundtrip time (or if no response was returned at all!). this data is then accessible using `uppe.rs` tiny builtin api, and can be viewed on the integrated webpage (served on service's `/`) +it periodically makes requests to configured services, and tracks roundtrip time (or if no response was returned at all!). this data is then accessible using `upp` tiny builtin api, and can be viewed on the integrated webpage (served on service's `/`) as an example, check out my instance on [up.alemi.dev](https://up.alemi.dev) @@ -21,4 +21,4 @@ future features which would be nice to add are: * multi-protocol endpoint tester ## name -honestly pretty bad, probably a mix of uptime + rust + monitors + stimulants. send me better ideas plz, contacts on my site +small but not really specific, `uprs` and `up-rs` and `up` were taken. if you have better name ideas let me know c: diff --git a/src/api.rs b/src/api.rs index 89ef12f..849572c 100644 --- a/src/api.rs +++ b/src/api.rs @@ -13,7 +13,7 @@ pub async fn serve(config: Config, db: Database, addr: &str) -> std::io::Result< let app = axum::Router::new() .route("/", axum::routing::get(|| async { Html(index) })) - .route("/favicon.ico", axum::routing::get(|| async { include_bytes!("../web/uppe.ico") })) + .route("/favicon.ico", axum::routing::get(|| async { include_bytes!("../web/upp.ico") })) .route("/api/status", axum::routing::get(api_status)) .route("/api/status/:service", axum::routing::get(api_status_service)) .with_state(db); diff --git a/src/main.rs b/src/main.rs index dbc8c85..8e51fc2 100644 --- a/src/main.rs +++ b/src/main.rs @@ -15,7 +15,7 @@ struct Cli { storage: Option, /// path to config file - #[arg(short, long, default_value = "uppe.toml")] + #[arg(short, long, default_value = "upp.toml")] config: String, /// host to bind api onto diff --git a/uppe-rs.toml b/upp.toml similarity index 70% rename from uppe-rs.toml rename to upp.toml index 2c9ccf1..b763ce5 100644 --- a/uppe-rs.toml +++ b/upp.toml @@ -1,5 +1,6 @@ interval_s = 10 -history = 600 +batchsize = 100 +description = "keeping track of your infra status" [service.moonlit] endpoint = "https://moonlit.technology" @@ -7,7 +8,7 @@ endpoint = "https://moonlit.technology" [service.site] endpoint = "https://alemi.dev" -[service.codemp] +[service."code.mp"] endpoint = "https://code.mp" [service.down] diff --git a/web/index.html b/web/index.html index 26e0317..149535d 100644 --- a/web/index.html +++ b/web/index.html @@ -4,7 +4,7 @@ - uppe.rs + up.rs