blob: 0c645548a2027947fa7ce0dcddd32dcd7b377738 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
=head1 NAME
rrdrados - Creating, updating and retrieving RRD files from Ceph
=head1 SYNOPSIS
E<lt>rrdfileE<gt> = B<ceph//E<lt>nameE<gt>>
=head1 DESCRIPTION
This module adds support for creating, updating and retrieving RRD files
directly from a Ceph cluster using librados.
It adds a ceph// prefix to RRD file name which is used to instruct rrdtool to
operate on a file that is stored in Ceph.
Currently the module expects to find the Ceph configuration file in the default
location at /etc/ceph/ceph.conf. By default it uses Ceph client ID "admin" and a
Ceph pool named "rrd".
=head1 ENVIRONMENT VARIABLES
=over 4
=item B<CEPH_ID>
Sets the Ceph Client ID to use when connecting. By default the client ID "admin"
is used.
=item B<CEPH_POOL>
Sets the name of the Ceph Pool to connect to. By default, the pool "rrd" is
used.
=back
=head1 EXAMPLES
B<Creating an RRD file on Ceph>
rrdtool create ceph//temperature.rrd --step 300 \
DS:temp:GAUGE:600:-273:5000 \
RRA:AVERAGE:0.5:1:1200 \
RRA:MIN:0.5:12:2400 \
RRA:MAX:0.5:12:2400 \
RRA:AVERAGE:0.5:12:2400
B<Importing an existing RRD into Ceph>
rrdtool dump existing.rrd | rrdtool restore - ceph//new.rrd
Or you could also copy the RRD file directly into Ceph using the rados command
line utility.
B<Retrieving RRD data from Ceph>
rrdtool fetch ceph//file.rrd AVERAGE
=head1 AUTHOR
Simon Boulet E<lt>simon@nostalgeek.comE<gt>
|