mirror of
				https://github.com/ClusterCockpit/cc-metric-collector.git
				synced 2025-11-04 02:35:07 +01:00 
			
		
		
		
	Derived metrics (#57)
* Add time-based derivatived (e.g. bandwidth) to some collectors * Add documentation * Add comments * Fix: Only compute rates with a valid previous state * Only compute rates with a valid previous state * Define const values for net/dev fields * Set default config values * Add comments * Refactor: Consolidate data structures * Refactor: Consolidate data structures * Refactor: Avoid struct deep copy * Refactor: Avoid redundant tag maps * Refactor: Use int64 type for absolut values Co-authored-by: Holger Obermaier <40787752+ho-ob@users.noreply.github.com>
This commit is contained in:
		@@ -5,7 +5,8 @@
 | 
			
		||||
    "mmpmon_path": "/path/to/mmpmon",
 | 
			
		||||
    "exclude_filesystem": [
 | 
			
		||||
      "fs1"
 | 
			
		||||
    ]
 | 
			
		||||
    ],
 | 
			
		||||
    "send_bandwidths" : true
 | 
			
		||||
  }
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
@@ -18,13 +19,16 @@ in the configuration.
 | 
			
		||||
The path to the `mmpmon` command can be configured with the `mmpmon_path` option
 | 
			
		||||
in the configuration. If nothing is set, the collector searches in `$PATH` for `mmpmon`.
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Metrics:
 | 
			
		||||
* `bytes_read`
 | 
			
		||||
* `gpfs_bytes_read`
 | 
			
		||||
* `gpfs_bytes_written`
 | 
			
		||||
* `gpfs_num_opens`
 | 
			
		||||
* `gpfs_num_closes`
 | 
			
		||||
* `gpfs_num_reads`
 | 
			
		||||
* `gpfs_num_readdirs`
 | 
			
		||||
* `gpfs_num_inode_updates`
 | 
			
		||||
* `gpfs_bw_read` (if `send_bandwidths == true`)
 | 
			
		||||
* `gpfs_bw_write` (if `send_bandwidths == true`)
 | 
			
		||||
 | 
			
		||||
The collector adds a `filesystem` tag to all metrics
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user