formatting and whitespace
[Imported from Trac: page Munin_Stats-Gatherer_Readme, version 3]
parent
bc3f5c5b0b
commit
c23137565b
|
@ -1,109 +1,145 @@
|
||||||
(Draft)<br>
|
# Tahoe-LAFS Stats-Gatherer Plugins
|
||||||
It's the README file for munin stats-gatherer plugins<br>
|
|
||||||
Please see ticket #966
|
|
||||||
|
|
||||||
```
|
|
||||||
= Tahoe-LAFS Stats-Gatherer plugins =
|
|
||||||
|
|
||||||
1. Overview
|
1. Overview
|
||||||
2. Plugins details
|
2. Plugins Details
|
||||||
2.1. Helper plugins
|
1. Helper Plugins
|
||||||
2.2. Traffic plugins
|
2. Traffic Plugins
|
||||||
2.3. Storage plugins
|
3. Storage Plugins
|
||||||
2.4. Load plugins
|
4. Load Plugins
|
||||||
3. Plugins Installation
|
3. Plugins Installation
|
||||||
4. Plugins testing
|
4. Plugins Testing
|
||||||
|
|
||||||
== Overview ==
|
# Overview
|
||||||
|
|
||||||
For running these plugins you need to have a Tahoe-LAFS stats-gatherer node.
|
This is the README for the munin stats-gatherer plugins (see ticket #966).
|
||||||
You can find more information in file docs/stats.txt
|
|
||||||
|
|
||||||
For plugins configuration please read tahoe-stats_conf
|
For running these plugins you need to have a Tahoe-LAFS stats-gatherer node.
|
||||||
|
|
||||||
= Plugins details =
|
You can find more information in the file docs/stats.txt.
|
||||||
|
|
||||||
== Helper plugins ==
|
For plugins configuration please read tahoe-stats_conf.
|
||||||
|
|
||||||
These plugins need a Tahoe-LAFS Helper
|
# Plugins Details
|
||||||
|
|
||||||
tahoe_stats_helper_active_uploads: Shows the number of files actively being processed by the helper
|
## Helper Plugins
|
||||||
tahoe_stats_helper_encoded_bytes: Shows the number of bytes encoded by the helper
|
|
||||||
tahoe_stats_helper_encoding_files: Shows the number of encoding files
|
|
||||||
tahoe_stats_helper_encoding_filesize: Shows total size of encoding files
|
|
||||||
tahoe_stats_helper_encoding_files_old: Shows total size of old encoding files
|
|
||||||
tahoe_stats_helper_fetched_bytes: Shows the number of bytes fetched by the helper
|
|
||||||
tahoe_stats_helper_incoming_files: Shows the number of incoming files
|
|
||||||
tahoe_stats_helper_incoming_filesize: Shows total size of incoming files
|
|
||||||
tahoe_stats_helper_incoming_files_old: Shows total size of old incoming files
|
|
||||||
tahoe_stats_helper_upload_already_present: Shows the number of uploads whose files are already present in the grid
|
|
||||||
tahoe_stats_helper_upload_need_upload: Shows the number of uploads whose files are not already present in the grid
|
|
||||||
tahoe_stats_helper_upload_requests: Shows the number of upload requests arriving at the helper
|
|
||||||
|
|
||||||
== Traffic plugins ==
|
> These plugins need a Tahoe-LAFS Helper:
|
||||||
|
|
||||||
tahoe_stats_mutable_files_published: Shows the number of mutable files published
|
| | |
|
||||||
tahoe_stats_mutable_files_retrieved: Shows the number of files retrieved
|
|---|---|
|
||||||
tahoe_stats_uploader_bytes_uploaded: Shows the number of bytes uploaded
|
| tahoe_stats_helper_active_uploads | Shows the number of files actively being processed by the helper |
|
||||||
tahoe_stats_uploader_files_uploaded: Shows the number of files uploaded
|
| tahoe_stats_helper_encoded_bytes | Shows the number of bytes encoded by the helper |
|
||||||
|
|
||||||
== Storage plugins ==
|
| | |
|
||||||
|
|---|---|
|
||||||
|
| tahoe_stats_helper_encoding_files | Shows the number of encoding files |
|
||||||
|
| tahoe_stats_helper_encoding_filesize | Shows total size of encoding files |
|
||||||
|
|
||||||
tahoe_stats_storage_allocated: Shows space allocated
|
| | |
|
||||||
tahoe_stats_storage_bytes_added: Shows cumulative bytes added
|
|---|---|
|
||||||
tahoe_stats_storage_bytes_freed: Shows cumulative bytes removed
|
| tahoe_stats_helper_encoding_files_old | Shows total size of old encoding files |
|
||||||
tahoe_stats_storage_disk_used: Shows space consumed
|
| tahoe_stats_helper_fetched_bytes | Shows the number of bytes fetched by the helper |
|
||||||
tahoe_stats_storage_operations_allocate: Shows how many allocate_buckets operations occurred per second.
|
|
||||||
Each immutable file upload causes one such operation per server
|
|
||||||
|
|
||||||
tahoe_stats_storage_operations_get: This graph shows how many get_bucket operations occurred per second.
|
| | |
|
||||||
Each immutable file download/check causes one such operation per server
|
|---|---|
|
||||||
|
| tahoe_stats_helper_incoming_files | Shows the number of incoming files |
|
||||||
|
| tahoe_stats_helper_incoming_filesize | Shows total size of incoming files |
|
||||||
|
|
||||||
tahoe_stats_storage_bytes_added: Shows how many readv operations occurred per second.
|
| | |
|
||||||
Each dirnode read causes one such operation per server.
|
|---|---|
|
||||||
|
| tahoe_stats_helper_incoming_files_old | Shows total size of old incoming files |
|
||||||
|
| tahoe_stats_helper_upload_already_present | Shows the number of uploads whose files are already present in the grid |
|
||||||
|
|
||||||
tahoe_stats_storage_operations_writev: Shows how many writev operations occurred per second.
|
| | |
|
||||||
Each mutable file/dirnode write causes one such operation per server
|
|---|---|
|
||||||
|
| tahoe_stats_helper_upload_need_upload | Shows the number of uploads whose files are not already present in the grid |
|
||||||
|
| tahoe_stats_helper_upload_requests | Shows the number of upload requests arriving at the helper |
|
||||||
|
|
||||||
== Load plugins ==
|
## Traffic Plugins
|
||||||
|
|
||||||
tahoe_stats_runtime_load_peak: Shows peak reactor delay
|
| | |
|
||||||
tahoe_stats_runtime_load_avg: Shows average reactor delay
|
|---|---|
|
||||||
tahoe_stats_cpu_monitor_15min_avg: Estimate of what percentage of system CPU time was consumed by the node process, 15min average
|
| tahoe_stats_mutable_files_published | Shows the number of mutable files published |
|
||||||
tahoe_stats_cpu_monitor_5min_avg: Estimate of what percentage of system CPU time was consumed by the node process, 5min average
|
| tahoe_stats_mutable_files_retrieved | Shows the number of files retrieved |
|
||||||
|
|
||||||
= Plugins Installation =
|
| | |
|
||||||
|
|---|---|
|
||||||
|
| tahoe_stats_uploader_bytes_uploaded | Shows the number of bytes uploaded |
|
||||||
|
| tahoe_stats_uploader_files_uploaded | Shows the number of files uploaded |
|
||||||
|
|
||||||
tahoe_stats need to be renamed/copied/linked to the plugin name you want.
|
## Storage Plugins
|
||||||
you need to do this for each graph you want.
|
|
||||||
|
|
||||||
For example:
|
| | |
|
||||||
If you want to show the "Tahoe-LAFS Runtime Load Average Graph":
|
|---|---|
|
||||||
Just copy tahoe_stats to '/etc/munin/plugins/tahoe_stats_runtime_load_avg'
|
| tahoe_stats_storage_allocated | Shows space allocated |
|
||||||
|
| tahoe_stats_storage_bytes_added | Shows cumulative bytes added |
|
||||||
|
|
||||||
If you want all graphs you can run these commands:
|
| | |
|
||||||
|
|---|---|
|
||||||
|
| tahoe_stats_storage_bytes_freed | Shows cumulative bytes removed |
|
||||||
|
| tahoe_stats_storage_disk_used | Shows space consumed |
|
||||||
|
|
||||||
|
| | |
|
||||||
|
|---|---|
|
||||||
|
| tahoe_stats_storage_operations_allocate | Shows how many allocate_buckets operations occurred per second. Each immutable file upload causes one such operation per server. |
|
||||||
|
| tahoe_stats_storage_operations_get | Shows how many get_bucket operations occurred per second. Each immutable file download/check causes one such operation per server. |
|
||||||
|
|
||||||
|
| | |
|
||||||
|
|---|---|
|
||||||
|
| tahoe_stats_storage_bytes_added | Shows how many readv operations occurred per second. Each dirnode read causes one such operation per server. |
|
||||||
|
| tahoe_stats_storage_operations_writev | Shows how many writev operations occurred per second. Each mutable file/dirnode write causes one such operation per server. |
|
||||||
|
|
||||||
|
## Load Plugins
|
||||||
|
|
||||||
|
| | |
|
||||||
|
|---|---|
|
||||||
|
| tahoe_stats_runtime_load_peak | Shows peak reactor delay |
|
||||||
|
| tahoe_stats_runtime_load_avg | Shows average reactor delay |
|
||||||
|
|
||||||
|
| | |
|
||||||
|
|---|---|
|
||||||
|
| tahoe_stats_cpu_monitor_15min_avg | Estimate of what percentage of system CPU time was consumed by the node process, 15min average |
|
||||||
|
| tahoe_stats_cpu_monitor_5min_avg | Estimate of what percentage of system CPU time was consumed by the node process, 5min average |
|
||||||
|
|
||||||
|
# Plugins Installation
|
||||||
|
|
||||||
|
tahoe_stats need to be renamed/copied/linked to the plugin name you want. You need to do this for each graph you want.
|
||||||
|
|
||||||
|
For example:
|
||||||
|
|
||||||
|
If you want to show the "Tahoe-LAFS Runtime Load Average Graph":
|
||||||
|
|
||||||
|
Just copy tahoe_stats to '/etc/munin/plugins/tahoe_stats_runtime_load_avg'
|
||||||
|
|
||||||
|
If you want all graphs you can run these commands:
|
||||||
|
|
||||||
|
```
|
||||||
cp tahoe_stats /etc/munin/plugins/tahoe_stats.bak
|
cp tahoe_stats /etc/munin/plugins/tahoe_stats.bak
|
||||||
# the .bak extension is needed, otherwise Munin-Node will try to run it.
|
# the .bak extension is needed, otherwise Munin-Node will try to run it.
|
||||||
cd /etc/munin/plugins/
|
cd /etc/munin/plugins/
|
||||||
chmod +x tahoe_stats.bak
|
chmod +x tahoe_stats.bak
|
||||||
for FILE in `grep "'tahoe_" tahoe_stats.bak | cut -d\' -f2`; do ln -s tahoe_stats.bak $FILE;done;
|
for FILE in `grep "'tahoe_" tahoe_stats.bak | cut -d\' -f2`; do ln -s tahoe_stats.bak $FILE;done;
|
||||||
|
```
|
||||||
|
|
||||||
After, edit the configuration file "tahoe-stats_conf" and copy it to /etc/munin/plugin-conf.d/
|
Edit the configuration file "tahoe-stats_conf" and copy it to /etc/munin/plugin-conf.d/
|
||||||
Reload the Munin-Node process: /etc/init.d/munin-node reload
|
|
||||||
|
|
||||||
|
Reload the Munin-Node process: /etc/init.d/munin-node reload
|
||||||
|
|
||||||
Note:
|
Note: You need to wait 5 minutes before Munin-Node creates any graphs
|
||||||
You need to wait 5min before Munin-Node creates any graphs
|
|
||||||
|
|
||||||
= Plugins testing =
|
# Plugins Testing
|
||||||
|
|
||||||
To test plugin you can run: munin-run 'plugin file'
|
To test a plugin you can run: munin-run <plugin_file>
|
||||||
For example:
|
|
||||||
|
For example:
|
||||||
|
```
|
||||||
# munin-run tahoe_stats_storage_disk_used
|
# munin-run tahoe_stats_storage_disk_used
|
||||||
RM1X_gfsd.value 28093239296
|
RM1X_gfsd.value 28093239296
|
||||||
[..]
|
[..]
|
||||||
|
```
|
||||||
|
|
||||||
To display graph configuration add 'config' at the end of command line:
|
To display graph configuration add 'config' at the end of command line:
|
||||||
|
```
|
||||||
#munin-run tahoe_stats_storage_disk_used config
|
#munin-run tahoe_stats_storage_disk_used config
|
||||||
graph_title Tahoe-LAFS Storage Server Disk Used
|
graph_title Tahoe-LAFS Storage Server Disk Used
|
||||||
graph_vlabel bytes
|
graph_vlabel bytes
|
||||||
|
|
Loading…
Reference in a new issue