root / src / Ganeti / DataCollectors / Program.hs @ 7711f32b
History | View | Annotate | Download (2.1 kB)
1 | 332b1340 | Michele Tartara | {-| Small module holding program definitions for data collectors. |
---|---|---|---|
2 | 332b1340 | Michele Tartara | |
3 | 332b1340 | Michele Tartara | -} |
4 | 332b1340 | Michele Tartara | |
5 | 332b1340 | Michele Tartara | {- |
6 | 332b1340 | Michele Tartara | |
7 | 332b1340 | Michele Tartara | Copyright (C) 2012 Google Inc. |
8 | 332b1340 | Michele Tartara | |
9 | 332b1340 | Michele Tartara | This program is free software; you can redistribute it and/or modify |
10 | 332b1340 | Michele Tartara | it under the terms of the GNU General Public License as published by |
11 | 332b1340 | Michele Tartara | the Free Software Foundation; either version 2 of the License, or |
12 | 332b1340 | Michele Tartara | (at your option) any later version. |
13 | 332b1340 | Michele Tartara | |
14 | 332b1340 | Michele Tartara | This program is distributed in the hope that it will be useful, but |
15 | 332b1340 | Michele Tartara | WITHOUT ANY WARRANTY; without even the implied warranty of |
16 | 332b1340 | Michele Tartara | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
17 | 332b1340 | Michele Tartara | General Public License for more details. |
18 | 332b1340 | Michele Tartara | |
19 | 332b1340 | Michele Tartara | You should have received a copy of the GNU General Public License |
20 | 332b1340 | Michele Tartara | along with this program; if not, write to the Free Software |
21 | 332b1340 | Michele Tartara | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
22 | 332b1340 | Michele Tartara | 02110-1301, USA. |
23 | 332b1340 | Michele Tartara | |
24 | 332b1340 | Michele Tartara | -} |
25 | 332b1340 | Michele Tartara | |
26 | 332b1340 | Michele Tartara | module Ganeti.DataCollectors.Program (personalities) where |
27 | 332b1340 | Michele Tartara | |
28 | 2e6ef129 | Iustin Pop | import Ganeti.Common (PersonalityList) |
29 | 2e6ef129 | Iustin Pop | import Ganeti.DataCollectors.CLI (Options) |
30 | 332b1340 | Michele Tartara | |
31 | 1a99d6a2 | Michele Tartara | import qualified Ganeti.DataCollectors.Diskstats as Diskstats |
32 | 332b1340 | Michele Tartara | import qualified Ganeti.DataCollectors.Drbd as Drbd |
33 | d7e9323b | Michele Tartara | import qualified Ganeti.DataCollectors.InstStatus as InstStatus |
34 | 1a9d864c | Michele Tartara | import qualified Ganeti.DataCollectors.Lv as Lv |
35 | 332b1340 | Michele Tartara | |
36 | 332b1340 | Michele Tartara | -- | Supported binaries. |
37 | 2e6ef129 | Iustin Pop | personalities :: PersonalityList Options |
38 | 6ab6b19a | Michele Tartara | personalities = [ (Drbd.dcName, (Drbd.main, Drbd.options, Drbd.arguments, |
39 | 6ab6b19a | Michele Tartara | "gathers and displays DRBD statistics in JSON\ |
40 | 6ab6b19a | Michele Tartara | \ format")) |
41 | 6ab6b19a | Michele Tartara | , (InstStatus.dcName, (InstStatus.main, InstStatus.options, |
42 | d7e9323b | Michele Tartara | InstStatus.arguments, |
43 | d7e9323b | Michele Tartara | "gathers and displays the status of the\ |
44 | d7e9323b | Michele Tartara | \ instances in JSON format")) |
45 | 1a99d6a2 | Michele Tartara | , (Diskstats.dcName, (Diskstats.main, Diskstats.options, |
46 | 1a99d6a2 | Michele Tartara | Diskstats.arguments, |
47 | 1a99d6a2 | Michele Tartara | "gathers and displays the disk usage\ |
48 | 1a99d6a2 | Michele Tartara | \ statistics in JSON format")) |
49 | 1a9d864c | Michele Tartara | , (Lv.dcName, (Lv.main, Lv.options, Lv.arguments, "gathers and\ |
50 | 1a9d864c | Michele Tartara | \ displays info about logical volumes")) |
51 | 332b1340 | Michele Tartara | ] |