mirror of
https://git.proxmox.com/git/proxmox
synced 2025-04-28 13:35:19 +00:00

influxdb (udp + http(s)) only for now general architecture looks as follows: the helper functions influxdb_http/udp start a tokio task and return a Metrics struct, that can be used to send data and wait for the tokio task. if the struct is dropped, the task is canceled. so it would look like this: let metrics = influxdb_http(..params..)?; metrics.send_data(...).await?; metrics.send_data(...).await?; metrics.join?; on join, the sending part of the channel will be dropped and thus flushing the remaining data to the server Signed-off-by: Dominik Csapak <d.csapak@proxmox.com> [renamed proxmox_async::io::udp -> proxmox_async::net::udp] Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
22 lines
566 B
TOML
22 lines
566 B
TOML
[package]
|
|
name = "proxmox-metrics"
|
|
version = "0.1.0"
|
|
authors = ["Proxmox Support Team <support@proxmox.com>"]
|
|
edition = "2018"
|
|
license = "AGPL-3"
|
|
description = "Metrics Server export utilitites"
|
|
|
|
exclude = [ "debian" ]
|
|
|
|
[dependencies]
|
|
anyhow = "1.0"
|
|
tokio = { version = "1.0", features = [ "net", "sync" ] }
|
|
futures = "0.3"
|
|
serde = "1.0"
|
|
serde_json = "1.0"
|
|
http = "0.2"
|
|
hyper = "0.14"
|
|
openssl = "0.10"
|
|
proxmox-http = { path = "../proxmox-http", features = [ "client" ], version = "0.6" }
|
|
proxmox-async = { path = "../proxmox-async", features = [], version = "0.3" }
|