]>
git.proxmox.com Git - proxmox.git/log
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
Wolfgang Bumiller [Fri, 8 Oct 2021 09:18:22 +0000 (11:18 +0200)]
bump proxmox dependency to 0.14.0 and proxmox-http to 0.5.0
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Dietmar Maurer [Thu, 7 Oct 2021 06:50:50 +0000 (08:50 +0200)]
proxmox-rrd: use correct directory options in create_rrdb_dir
Dietmar Maurer [Thu, 7 Oct 2021 06:01:12 +0000 (08:01 +0200)]
proxmox-rrd: cleanup error handling
Dietmar Maurer [Wed, 6 Oct 2021 16:19:22 +0000 (18:19 +0200)]
proxmox-rrd: use log crate instead of eprintln, avoid duplicate logs
Dietmar Maurer [Wed, 6 Oct 2021 16:00:37 +0000 (18:00 +0200)]
proxmox-rrd: fix update (do not update) when time is in the past
Dietmar Maurer [Wed, 6 Oct 2021 10:19:54 +0000 (12:19 +0200)]
proxmox-rrd: improve developer docs
Dietmar Maurer [Wed, 6 Oct 2021 08:55:46 +0000 (10:55 +0200)]
proxmox-rrd: remove serde dependency
Dietmar Maurer [Wed, 6 Oct 2021 07:49:51 +0000 (09:49 +0200)]
split out RRD api types into proxmox-rrd-api-types crate
Dietmar Maurer [Wed, 6 Oct 2021 06:37:14 +0000 (08:37 +0200)]
proxmox-rrd: use create_path instead of std::fs::create_dir_all
To ensure correct file ownership.
Dietmar Maurer [Wed, 6 Oct 2021 05:06:17 +0000 (07:06 +0200)]
move RRD code into proxmox-rrd crate
Dietmar Maurer [Fri, 10 Sep 2021 10:25:32 +0000 (12:25 +0200)]
more api type cleanups: avoid re-exports
Dietmar Maurer [Thu, 2 Sep 2021 10:47:11 +0000 (12:47 +0200)]
start new pbs-config workspace
moved src/config/domains.rs
Fabian Grünbichler [Mon, 25 Jan 2021 13:43:00 +0000 (14:43 +0100)]
clippy: more misc fixes
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Fabian Grünbichler [Fri, 15 Jan 2021 13:10:24 +0000 (14:10 +0100)]
clippy: collapse/rework nested ifs
no semantic changes (intended).
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Wolfgang Bumiller [Wed, 14 Oct 2020 09:18:26 +0000 (11:18 +0200)]
clippy fixups
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Stefan Reiter [Thu, 1 Oct 2020 09:40:44 +0000 (11:40 +0200)]
rrd: fix integer underflow
Causes a panic if last_update is smaller than RRD_DATA_ENTRIES*reso,
which (I believe) can happen when inserting the first value for a DB.
Clamp the value to 0 in that case.
Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
Dietmar Maurer [Sat, 12 Sep 2020 13:10:47 +0000 (15:10 +0200)]
avoid chrono dependency, depend on proxmox 0.3.8
- remove chrono dependency
- depend on proxmox 0.3.8
- remove epoch_now, epoch_now_u64 and epoch_now_f64
- remove tm_editor (moved to proxmox crate)
- use new helpers from proxmox 0.3.8
* epoch_i64 and epoch_f64
* parse_rfc3339
* epoch_to_rfc3339_utc
* strftime_local
- BackupDir changes:
* store epoch and rfc3339 string instead of DateTime
* backup_time_to_string now return a Result
* remove unnecessary TryFrom<(BackupGroup, i64)> for BackupDir
- DynamicIndexHeader: change ctime to i64
- FixedIndexHeader: change ctime to i64
Dominik Csapak [Wed, 10 Jun 2020 10:02:58 +0000 (12:02 +0200)]
api2/status: use new rrd::extract_cached_data
and drop the now unused extract_lists function
this also fixes a bug, where we did not add the datastore to the list at
all when there was no rrd data
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Dominik Csapak [Wed, 10 Jun 2020 10:02:57 +0000 (12:02 +0200)]
rrd: move creation of serde value into api
there is now a 'extract_cached_data' which just returns
the data of the specified field, and an api function that converts
a list of fields to the correct serde value
this way we do not have to create a serde value in rrd/cache.rs
(makes for a better interface)
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Dominik Csapak [Wed, 10 Jun 2020 10:02:56 +0000 (12:02 +0200)]
refactor time functions to tools
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Dominik Csapak [Tue, 9 Jun 2020 08:01:11 +0000 (10:01 +0200)]
rrd: add 'extract_lists'
this is an interface to simply get the Vec<Option<f64>> out of rrd
without going through serde values
we return a list of timestamps and a HashMap with the lists we could find
(otherwise it is not in the map)
if no lists could be extracted, the time list is also empty
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
Dietmar Maurer [Fri, 29 May 2020 07:16:13 +0000 (09:16 +0200)]
rrd: reduce io by saving data only once a minute
Dietmar Maurer [Mon, 25 May 2020 08:30:04 +0000 (10:30 +0200)]
src/rrd/rrd.rs: do not wrap error and return ErrorKind::NotFound
Dietmar Maurer [Mon, 25 May 2020 08:18:53 +0000 (10:18 +0200)]
src/rrd/cache.rs: display/log error when RRD load fails
Dietmar Maurer [Mon, 25 May 2020 07:21:54 +0000 (09:21 +0200)]
src/rrd/rrd.rs: store/verify magic number
Dietmar Maurer [Mon, 25 May 2020 06:14:30 +0000 (08:14 +0200)]
src/rrd/rrd.rs: implement DST_COUNTER
Dietmar Maurer [Mon, 25 May 2020 05:02:04 +0000 (07:02 +0200)]
src/rrd/rrd.rs: correctly compute derived values
use f64 for time.
Dietmar Maurer [Sun, 24 May 2020 15:03:02 +0000 (17:03 +0200)]
src/rrd/rrd.rs: implement DST_DERIVE
Dietmar Maurer [Sun, 24 May 2020 14:51:28 +0000 (16:51 +0200)]
src/rrd/rrd.rs: restructure whole code
Dietmar Maurer [Sun, 24 May 2020 07:09:09 +0000 (09:09 +0200)]
src/rrd/rrd.rs: reduce size by using f64:NAN as UNKNOWN
Dietmar Maurer [Sun, 24 May 2020 04:44:06 +0000 (06:44 +0200)]
src/rrd/rrd.rs: simplify an fix old value deletion
Dietmar Maurer [Sat, 23 May 2020 14:03:43 +0000 (16:03 +0200)]
rrd: fix display interval, try to avoid numeric errors
Dietmar Maurer [Sat, 23 May 2020 13:37:17 +0000 (15:37 +0200)]
rrd: simplify code
Dietmar Maurer [Sat, 23 May 2020 12:03:44 +0000 (14:03 +0200)]
rrd: pack multiple rrd values into th estat list
Dietmar Maurer [Sat, 23 May 2020 09:10:02 +0000 (11:10 +0200)]
add experimental rrd api to get cpu stats
Dietmar Maurer [Sat, 23 May 2020 07:29:33 +0000 (09:29 +0200)]
add simple rrd implementation