Projet

Général

Profil

Paste
Télécharger au format
Statistiques
| Branche: | Révision:

root / plugins / openstack_swift / openstack_swift_stats_.pod @ 099d7821

Historique | Voir | Annoter | Télécharger (2,4 ko)

1
=cut
2

    
3
=head1 NAME
4

    
5
openstack_swift_stats_ -- Plugin to monitor size of OpenStack Swift containers
6

    
7
=head1 ABOUT
8

    
9
Multigraph plugin. Graphs the following statistics about an OpenStack Swift container:
10
- Size in bytes
11
- Growth in size per graph period (hour by default)
12

    
13
- Number of objects
14
- Growth in objects per graph period (hour by default)
15

    
16
=head1 CONFIGURATION
17

    
18
Configuration values are mandatory. Names are identical to the environment values used by the Swift commands and passed directly to it.
19
They can be copied from the openrc.sh file provided by your OpenStack hosting provider, along with the password.
20

    
21
OS_AUTH_URL
22
OS_IDENTITY_API_VERSION
23
OS_REGION_NAME
24
OS_USER_DOMAIN_NAME
25
OS_PROJECT_DOMAIN_NAME
26
OS_TENANT_ID
27
OS_TENANT_NAME
28
OS_USERNAME
29
OS_PASSWORD
30

    
31
Configuration example for OVH:
32

    
33
[openstack_swift_size_*]
34
  env.OS_AUTH_URL https://auth.cloud.ovh.net/v3/
35
  env.OS_IDENTITY_API_VERSION 3
36
  env.OS_REGION_NAME SYD
37
  env.OS_USER_DOMAIN_NAME Default
38
  env.OS_PROJECT_DOMAIN_NAME Default
39
  
40
  env.OS_TENANT_ID {{Redacted}}
41
  env.OS_TENANT_NAME {{Redacted}}
42
  env.OS_USERNAME user-{{Redacted}}
43
  env.OS_PASSWORD {{Redacted}}
44

    
45
=head1 USAGE
46
 
47
- Place the plugin in your plugins storage directory (/usr/share/munin/plugins)
48
- Symlink it into the active plugins directory (/etc/munin/plugins) with the name of your container after the last underscore
49
  (e.g. ln -s /usr/share/munin/plugins/openstack_swift_stats_ /etc/munin/plugins/openstack_swift_stats_mycontainer)
50
- Copy the OpenStack login environment variables from the openrc.sh file provided by your hosting provider to your plugin config file as shown in the configuration section.
51
- Add the OS_PASSWORD value for the chosen user.
52

    
53
=head1 AUTHOR
54

    
55
Copyright (C) 2020 Sophie Parker (dev@cortices.me)
56

    
57
=head1 LICENSE
58

    
59
This program is free software; you can redistribute it and/or
60
modify it under the terms of the GNU General Public License
61
as published by the Free Software Foundation; version 2 dated June,
62
1991.
63

    
64
This program is distributed in the hope that it will be useful,
65
but WITHOUT ANY WARRANTY; without even the implied warranty of
66
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
67
GNU General Public License for more details.
68

    
69
You should have received a copy of the GNU General Public License
70
along with this program; if not, write to the Free Software
71
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
72

    
73
=head1 MAGIC MARKERS
74

    
75
#%# family=manual
76

    
77
=cut