12 Commits

Author SHA1 Message Date
c745125f20 check if checks are needed or needs is enough
All checks were successful
Rust Cross-Platform Build / Detect Rust Project (push) Successful in 4s
Rust Cross-Platform Build / Set Tag Name (push) Successful in 5s
Rust Cross-Platform Build / Run Tests (push) Successful in 1m4s
Rust Cross-Platform Build / Build (x86_64-unknown-linux-gnu) (push) Successful in 2m47s
Rust Cross-Platform Build / Build (x86_64-pc-windows-gnu) (push) Successful in 3m30s
Rust Cross-Platform Build / Build and Push Docker Image (push) Successful in 2m20s
Rust Cross-Platform Build / Workflow Summary (push) Successful in 2s
Rust Cross-Platform Build / Create Tag (push) Successful in 5s
2025-10-03 13:47:00 +02:00
758fa7608f added toolcache
All checks were successful
Rust Cross-Platform Build / Detect Rust Project (push) Successful in 5s
Rust Cross-Platform Build / Set Tag Name (push) Successful in 4s
Rust Cross-Platform Build / Run Tests (push) Successful in 1m10s
Rust Cross-Platform Build / Build (x86_64-unknown-linux-gnu) (push) Successful in 3m1s
Rust Cross-Platform Build / Build (x86_64-pc-windows-gnu) (push) Successful in 3m47s
Rust Cross-Platform Build / Build and Push Docker Image (push) Successful in 2m8s
Rust Cross-Platform Build / Workflow Summary (push) Successful in 2s
Rust Cross-Platform Build / Create Tag (push) Successful in 5s
2025-10-03 13:17:48 +02:00
ee6b947f29 update
All checks were successful
Rust Cross-Platform Build / Detect Rust Project (push) Successful in 4s
Rust Cross-Platform Build / Set Tag Name (push) Successful in 5s
Rust Cross-Platform Build / Run Tests (push) Successful in 1m23s
Rust Cross-Platform Build / Build (x86_64-unknown-linux-gnu) (push) Successful in 2m54s
Rust Cross-Platform Build / Build (x86_64-pc-windows-gnu) (push) Successful in 3m35s
Rust Cross-Platform Build / Build and Push Docker Image (push) Successful in 2m4s
Rust Cross-Platform Build / Workflow Summary (push) Successful in 2s
Rust Cross-Platform Build / Create Tag (push) Successful in 4s
2025-10-03 12:22:12 +02:00
18dd1ef528 keine verdreckte doc 2025-10-02 00:38:23 +02:00
8fa7866cc2 creating directory for doc
All checks were successful
Rust Cross-Platform Build / Detect Rust Project (push) Successful in 5s
Rust Cross-Platform Build / Set Tag Name (push) Successful in 4s
Rust Cross-Platform Build / Run Tests (push) Successful in 1m3s
Rust Cross-Platform Build / Build (x86_64-unknown-linux-gnu) (push) Successful in 3m42s
Rust Cross-Platform Build / Build (x86_64-pc-windows-gnu) (push) Successful in 4m22s
Rust Cross-Platform Build / Build and Push Docker Image (push) Successful in 2m8s
Rust Cross-Platform Build / Workflow Summary (push) Successful in 1s
Rust Cross-Platform Build / Create Tag (push) Successful in 5s
2025-10-01 22:57:06 +02:00
238ad87119 replaced documentation post with seperate step
All checks were successful
Rust Cross-Platform Build / Detect Rust Project (push) Successful in 4s
Rust Cross-Platform Build / Set Tag Name (push) Successful in 4s
Rust Cross-Platform Build / Run Tests (push) Successful in 1m5s
Rust Cross-Platform Build / Build (x86_64-unknown-linux-gnu) (push) Successful in 3m47s
Rust Cross-Platform Build / Build (x86_64-pc-windows-gnu) (push) Successful in 4m20s
Rust Cross-Platform Build / Build and Push Docker Image (push) Successful in 2m4s
Rust Cross-Platform Build / Workflow Summary (push) Successful in 2s
Rust Cross-Platform Build / Create Tag (push) Successful in 5s
2025-10-01 22:42:35 +02:00
d584e21fd9 replaced documentation post with seperate step 2025-10-01 22:33:00 +02:00
ac79a2e0b7 added right path for cargo doc push 2025-10-01 22:21:59 +02:00
1798c1270b added right path for cargo doc push 2025-10-01 22:21:44 +02:00
97d1019b69 added right path for cargo doc push
Some checks failed
Rust Cross-Platform Build / Detect Rust Project (push) Successful in 5s
Rust Cross-Platform Build / Set Tag Name (push) Successful in 4s
Rust Cross-Platform Build / Run Tests (push) Successful in 1m5s
Rust Cross-Platform Build / Build (x86_64-unknown-linux-gnu) (push) Failing after 2m50s
Rust Cross-Platform Build / Build (x86_64-pc-windows-gnu) (push) Failing after 3m31s
Rust Cross-Platform Build / Build and Push Docker Image (push) Has been skipped
Rust Cross-Platform Build / Create Tag (push) Has been skipped
Rust Cross-Platform Build / Workflow Summary (push) Successful in 1s
2025-10-01 21:49:02 +02:00
e30ceb75d9 added cargo doc push
Some checks failed
Rust Cross-Platform Build / Detect Rust Project (push) Successful in 4s
Rust Cross-Platform Build / Set Tag Name (push) Successful in 4s
Rust Cross-Platform Build / Run Tests (push) Successful in 1m6s
Rust Cross-Platform Build / Build (x86_64-unknown-linux-gnu) (push) Failing after 3m2s
Rust Cross-Platform Build / Build (x86_64-pc-windows-gnu) (push) Failing after 3m39s
Rust Cross-Platform Build / Build and Push Docker Image (push) Has been skipped
Rust Cross-Platform Build / Create Tag (push) Has been skipped
Rust Cross-Platform Build / Workflow Summary (push) Successful in 1s
2025-10-01 19:49:48 +02:00
4681e0c694 fixed id type
All checks were successful
Rust Cross-Platform Build / Detect Rust Project (push) Successful in 5s
Rust Cross-Platform Build / Set Tag Name (push) Successful in 4s
Rust Cross-Platform Build / Run Tests (push) Successful in 1m7s
Rust Cross-Platform Build / Build (x86_64-unknown-linux-gnu) (push) Successful in 2m56s
Rust Cross-Platform Build / Build (x86_64-pc-windows-gnu) (push) Successful in 3m40s
Rust Cross-Platform Build / Build and Push Docker Image (push) Successful in 2m11s
Rust Cross-Platform Build / Workflow Summary (push) Successful in 2s
Rust Cross-Platform Build / Create Tag (push) Successful in 5s
2025-10-01 19:00:34 +02:00
5 changed files with 23 additions and 11 deletions

View File

@@ -20,6 +20,8 @@ jobs:
detect-project: detect-project:
name: Detect Rust Project name: Detect Rust Project
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
RUNNER_TOOL_CACHE: /toolcache
outputs: outputs:
project-dir: ${{ steps.detect.outputs.project-dir }} project-dir: ${{ steps.detect.outputs.project-dir }}
project-name: ${{ steps.detect.outputs.project-name }} project-name: ${{ steps.detect.outputs.project-name }}
@@ -56,6 +58,8 @@ jobs:
needs: [detect-project] needs: [detect-project]
if: ${{ !failure() && !cancelled() }} if: ${{ !failure() && !cancelled() }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
RUNNER_TOOL_CACHE: /toolcache
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@@ -79,6 +83,8 @@ jobs:
set-tag: set-tag:
name: Set Tag Name name: Set Tag Name
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
RUNNER_TOOL_CACHE: /toolcache
outputs: outputs:
tag_name: ${{ steps.set_tag.outputs.tag_name }} tag_name: ${{ steps.set_tag.outputs.tag_name }}
steps: steps:
@@ -139,6 +145,8 @@ jobs:
needs: [detect-project, test] needs: [detect-project, test]
if: ${{ !failure() && !cancelled() }} if: ${{ !failure() && !cancelled() }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
RUNNER_TOOL_CACHE: /toolcache
strategy: strategy:
matrix: matrix:
include: include:
@@ -198,6 +206,8 @@ jobs:
needs.build.result == 'success' && needs.build.result == 'success' &&
github.event_name != 'pull_request' github.event_name != 'pull_request'
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
RUNNER_TOOL_CACHE: /toolcache
environment: production environment: production
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@@ -233,10 +243,12 @@ jobs:
tag: tag:
name: Create Tag name: Create Tag
needs: [docker-build, build, set-tag] needs: [docker-build, build, set-tag]
if: | #if: |
github.event_name == 'push' && # github.event_name == 'push' &&
needs.docker-build.result == 'success' # needs.docker-build.result == 'success'
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
RUNNER_TOOL_CACHE: /toolcache
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
@@ -257,7 +269,7 @@ jobs:
summary: summary:
name: Workflow Summary name: Workflow Summary
needs: [test, audit, build, docker-build] needs: [test, build, docker-build]
if: always() if: always()
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:

View File

@@ -34,8 +34,8 @@ pub async fn get_available_container(docker: &Docker) -> Vec<DockerContainer> {
container.id.as_ref()?; // Skip if no ID container.id.as_ref()?; // Skip if no ID
let id = container.id?; let id = container.id?;
let short_string_id = if id.len() > 12 { &id[..12] } else { &id }; let short_id = if id.len() > 12 { &id[..12] } else { &id };
let short_id: u32 = short_string_id.trim().parse().unwrap(); //let short_id: u32 = short_string_id.trim().parse().unwrap();
let name = container.names let name = container.names
.and_then(|names| names.into_iter().next()) .and_then(|names| names.into_iter().next())
@@ -56,10 +56,10 @@ pub async fn get_available_container(docker: &Docker) -> Vec<DockerContainer> {
}) })
.unwrap_or_else(|| "unknown".to_string()); .unwrap_or_else(|| "unknown".to_string());
println!(" - ID: {}, Image: {:?}, Name: {}", short_id, container.image, name); println!(" - ID: {}, Image: {}, Name: {}", short_id, container.image.unwrap(), name);
Some(DockerContainer { Some(DockerContainer {
ID: short_id, ID: short_id.to_string(),
image, image,
Name: name, Name: name,
Status: status, Status: status,

View File

@@ -63,7 +63,7 @@ impl DockerContainer {
/// ///
/// # Returns /// # Returns
/// * `Result<u32, Box<dyn Error + Send + Sync>>` - Container ID as integer. /// * `Result<u32, Box<dyn Error + Send + Sync>>` - Container ID as integer.
pub async fn get_docker_container_id(container: DockerContainer) -> Result<u32, Box<dyn Error + Send + Sync>> { pub async fn get_docker_container_id(container: DockerContainer) -> Result<String, Box<dyn Error + Send + Sync>> {
Ok(container.ID) Ok(container.ID)
} }

View File

@@ -109,7 +109,7 @@ impl Collector {
ram_load: hardware.memory.current_load.unwrap_or_default(), ram_load: hardware.memory.current_load.unwrap_or_default(),
ram_size: hardware.memory.total_size.unwrap_or_default(), ram_size: hardware.memory.total_size.unwrap_or_default(),
disk_size: hardware.disk.total_size.unwrap_or_default(), disk_size: hardware.disk.total_size.unwrap_or_default(),
disk_usage: hardware.disk.total_used.unwrap_or_default(), disk_usage: hardware.disk.total_usage.unwrap_or_default(),
disk_temp: 0.0, // not supported disk_temp: 0.0, // not supported
net_rx: hardware.network.rx_rate.unwrap_or_default(), net_rx: hardware.network.rx_rate.unwrap_or_default(),
net_tx: hardware.network.tx_rate.unwrap_or_default(), net_tx: hardware.network.tx_rate.unwrap_or_default(),

View File

@@ -187,7 +187,7 @@ pub struct Acknowledgment {
/// - `_cpu_load`: CPU usage as a percentage (**0.0100.0**) /// - `_cpu_load`: CPU usage as a percentage (**0.0100.0**)
#[derive(Debug, Serialize, Clone)] #[derive(Debug, Serialize, Clone)]
pub struct DockerContainer { pub struct DockerContainer {
pub ID: u32, pub ID: String,
pub image: String, pub image: String,
pub Name: String, pub Name: String,
pub Status: String, // "running";"stopped";others pub Status: String, // "running";"stopped";others