]> arthur.barton.de Git - netdata.git/commitdiff
better tomcat chart naming
authorpaulfantom <paulfantom@gmail.com>
Tue, 16 Aug 2016 19:32:43 +0000 (21:32 +0200)
committerpaulfantom <paulfantom@gmail.com>
Tue, 16 Aug 2016 19:32:43 +0000 (21:32 +0200)
python.d/README.md
python.d/tomcat.chart.py

index a6092053bafa36afee37b31a99447a41f430704d..4646c78d888b3dbc737d3fc59201353798c30211 100644 (file)
@@ -1,7 +1,5 @@
 # Disclaimer
 
-**Python support is experimental and implementation may change in the future**
-
 Every module should be compatible with python2 and python3.
 All third party libraries should be installed system-wide or in `python_modules` directory.
 Module configurations are written in YAML and **pyYAML is required**.
@@ -127,6 +125,114 @@ If no configuration is given, module will attempt to read log file at `/var/log/
 
 ---
 
+# cpufreq
+
+Module shows current cpu frequency by looking at appropriate files in /sys/devices
+
+**Requirement:**
+Processor which presents data scaling frequency data
+
+It produces one chart with multiple lines (one line per core).
+
+### configuration
+
+Sample:
+
+```yaml
+sys_dir: "/sys/devices"
+```
+
+If no configuration is given, module will search for `scaling_cur_freq` files in `/sys/devices` directory.
+Directory is also prefixed with `NETDATA_HOST_PREFIX` if specified.
+
+---
+
+# dovecot
+
+This module provides statistics information from dovecot server. 
+Statistics are taken from dovecot socket by executing `EXPORT global` command.
+More information about dovecot stats can be found on [project wiki page.](http://wiki2.dovecot.org/Statistics)
+
+**Requirement:**
+Dovecot unix socket with R/W permissions for user netdata or dovecot with configured TCP/IP socket.
+Module gives information with following charts:
+
+1. **logins and sessions**
+ * logins
+ * active sessions
+
+2. **commands** - number of IMAP commands 
+ * commands
+3. **Faults**
+ * minor
+ * major
+4. **Context Switches** 
+ * volountary
+ * involountary
+5. **disk** in bytes/s
+ * read
+ * write
+6. **bytes** in bytes/s
+ * read
+ * write
+7. **number of syscalls** in syscalls/s
+ * read
+ * write
+
+8. **lookups** - number of lookups per second
+ * path
+ * attr
+
+9. **hits** - number of cache hits 
+ * hits
+
+10. **attempts** - authorization attemts
+ * success
+ * failure
+
+11. **cache** - cached authorization hits
+ * hit
+ * miss
+### configuration
+
+Sample:
+
+```yaml
+localtcpip:
+  name     : 'local'
+  host     : '127.0.0.1'
+  port     : 24242
+
+localsocket:
+  name     : 'local'
+  socket   : '/var/run/dovecot/stats'
+```
+
+If no configuration is given, module will attempt to connect to dovecot using unix socket localized in `/var/run/dovecot/stats`
+
+---
+
+# exim
+
+Simple module executing `exim -bpc` to grab exim queue. 
+This command can take a lot of time to finish its execution thus it is not recommended to run it every second.
+
+It produces only one chart:
+
+1. **Exim Queue Emails**
+ * emails
+
+Configuration is not needed.
+
+---
+
 # hddtemp
  
 Module monitors disk temperatures from one or more hddtemp daemons
@@ -150,6 +256,101 @@ If no configuration is given, module will attempt to connect to hddtemp daemon o
 
 ---
 
+# IPFS
+
+Module monitors [IPFS](https://ipfs.io) basic information.
+
+1. **Bandwidth** in kbits/s
+ * in
+ * out
+2. **Peers**
+ * peers
+### configuration
+
+Only url to IPFS server is needed. 
+
+Sample:
+
+```yaml
+localhost:
+  name : 'local'
+  url  : 'http://localhost:5001'
+```
+
+---
+
+# memcached
+
+Memcached monitoring module. Data grabbed from [stats interface](https://github.com/memcached/memcached/wiki/Commands#stats).
+
+1. **Network** in kilobytes/s
+ * read
+ * written
+2. **Connections** per second
+ * current
+ * rejected
+ * total
+3. **Items** in cluster
+ * current
+ * total
+4. **Evicted and Reclaimed** items
+ * evicted
+ * reclaimed
+5. **GET** requests/s
+ * hits
+ * misses
+
+6. **GET rate** rate in requests/s
+ * rate
+
+7. **SET rate** rate in requests/s
+ * rate
+8. **DELETE** requests/s
+ * hits
+ * misses
+
+9. **CAS** requests/s
+ * hits
+ * misses
+ * bad value
+10. **Increment** requests/s
+ * hits
+ * misses
+11. **Decrement** requests/s
+ * hits
+ * misses
+12. **Touch** requests/s
+ * hits
+ * misses
+13. **Touch rate** rate in requests/s
+ * rate
+### configuration
+
+Sample:
+
+```yaml
+localtcpip:
+  name     : 'local'
+  host     : '127.0.0.1'
+  port     : 24242
+```
+
+If no configuration is given, module will attempt to connect to memcached instance on `127.0.0.1:11211` address.
+
+---
+
 # mysql
 
 Module monitors one or more mysql servers
@@ -284,6 +485,33 @@ Without configuration, module attempts to connect to `http://localhost/stub_stat
 
 ---
 
+# nginx_log
+
+Module monitors nginx access log and produces only one chart:
+
+1. **nginx status codes** in requests/s
+ * 2xx
+ * 3xx
+ * 4xx
+ * 5xx
+
+### configuration
+
+Sample for two vhosts:
+
+```yaml
+site_A:
+  path: '/var/log/nginx/access-A.log'
+
+site_B:
+  name: 'local'
+  path: '/var/log/nginx/access-B.log'
+```
+
+When no configuration file is found, module tries to parse `/var/log/nginx/access.log` file.
+
+---
+
 # phpfpm
 
 This module will monitor one or more php-fpm instances depending on configuration. 
@@ -325,6 +553,69 @@ Without configuration, module attempts to connect to `http://localhost/status`
 
 ---
 
+# postfix
+
+Simple module executing `postfix -p` to grab postfix queue.
+
+It produces only two charts:
+
+1. **Postfix Queue Emails**
+ * emails
+2. **Postfix Queue Emails Size** in KB
+ * size
+
+Configuration is not needed.
+
+---
+
+# redis
+
+Get INFO data from redis instance.
+
+Following charts are drawn:
+
+1. **Operations** per second
+ * operations
+
+2. **Hit rate** in percent
+ * rate
+
+3. **Memory utilization** in kilobytes
+ * total
+ * lua
+
+4. **Database keys** 
+ * lines are creates dynamically based on how many databases are there
+5. **Clients**
+ * connected
+ * blocked
+6. **Slaves**
+ * connected
+### configuration
+
+```yaml
+socket:
+  name     : 'local'
+  socket   : '/var/lib/redis/redis.sock'
+
+localhost:
+  name     : 'local'
+  host     : 'localhost'
+  port     : 6379
+```
+
+When no configuration file is found, module tries to connect to TCP/IP socket: `localhost:6379`.
+
+---
+
+# sensors
+
+---
+
 # squid
 
 This module will monitor one or more squid instances depending on configuration.
@@ -362,4 +653,23 @@ local:
 
 Without any configuration module will try to autodetect where squid presents its `counters` data
  
+---
+
+# tomcat
+
+Present tomcat containers memory utilization.
+
+Charts:
+
+1. **requests** per second
+ * accesses
+
+2. **volume** in KB/s
+ * volume
+
+3. **threads**
+
+
+Without configuration, module attempts to connect to `http://localhost:8080/manager/status?XML=true`
+
 ---
\ No newline at end of file
index 266f2737648fac46bedc4d32049ff3125663d254..31f6ab2483b4f0660ad250fc1f47be394352f64f 100644 (file)
@@ -18,17 +18,17 @@ ORDER = ['accesses', 'volume', 'threads', 'jvm']
 
 CHARTS = {
     'accesses': {
-        'options': [None, "tomcat requests", "requests/s", "statistics", "tomcat.accesses", "area"],
+        'options': [None, "Requests", "requests/s", "statistics", "tomcat.accesses", "area"],
         'lines': [
             ["accesses", None, 'incremental']
         ]},
     'volume': {
-        'options': [None, "tomcat volume", "KB/s", "volume", "tomcat.volume", "area"],
+        'options': [None, "Volume", "KB/s", "volume", "tomcat.volume", "area"],
         'lines': [
             ["volume", None, 'incremental', 1, 1024]
         ]},
     'threads': {
-        'options': [None, "tomcat threads", "current threads", "statistics", "tomcat.threads", "line"],
+        'options': [None, "Threads", "current threads", "statistics", "tomcat.threads", "line"],
         'lines': [
             ["current", None, "absolute"],
             ["busy", None, "absolute"]