Skip to content

Commit

Permalink
Merge pull request #128 from lindig/1.33-lcm
Browse files Browse the repository at this point in the history
CP-42182 Add CLI tool on xe and rrd-cli to enable saving of rrds to local host
  • Loading branch information
lindig authored Sep 25, 2023
2 parents a5d8828 + c393041 commit 065744d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rrdd/rrdd_bindings.ml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ module type RRDD_IMPLEMENTATION = sig

val backup_rrds : string option -> unit -> unit

val save_rrds : unit -> unit

val archive_rrd : string -> string option -> unit

val archive_sr_rrd : string -> string
Expand Down Expand Up @@ -111,6 +113,7 @@ module Make (Impl : RRDD_IMPLEMENTATION) = struct
Server.migrate_rrd Impl.migrate_rrd ;
Server.send_host_rrd_to_master Impl.send_host_rrd_to_master ;
Server.backup_rrds Impl.backup_rrds ;
Server.save_rrds Impl.save_rrds ;
Server.archive_rrd Impl.archive_rrd ;
Server.archive_sr_rrd Impl.archive_sr_rrd ;
Server.push_sr_rrd Impl.push_sr_rrd ;
Expand Down
2 changes: 2 additions & 0 deletions rrdd/rrdd_server.ml
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,8 @@ module Deprecated = struct
with _ -> ()
end

let save_rrds = backup_rrds None

let get_rrd ~vm_uuid =
let path = Filename.concat Rrdd_libs.Constants.rrd_location vm_uuid in
rrd_of_gzip path
Expand Down

0 comments on commit 065744d

Please sign in to comment.