mirror of
				https://github.com/samuelclay/NewsBlur.git
				synced 2025-11-01 09:09:51 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			474 B
		
	
	
	
		
			Python
		
	
	
		
			Executable file
		
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			474 B
		
	
	
	
		
			Python
		
	
	
		
			Executable file
		
	
	
	
	
#!/srv/newsblur/venv/newsblur/bin/python
 | 
						|
 | 
						|
from vendor.munin.redis import MuninRedisPlugin
 | 
						|
 | 
						|
class MuninRedisUsedMemoryPlugin(MuninRedisPlugin):
 | 
						|
    title = "Redis used memory"
 | 
						|
    args = "--base 1024"
 | 
						|
    vlabel = "Memory"
 | 
						|
    info = "used memory"
 | 
						|
    fields = (
 | 
						|
        ('used_memory', dict(
 | 
						|
            label = "used memory",
 | 
						|
            info = "used memory",
 | 
						|
            type = "GAUGE",
 | 
						|
        )),
 | 
						|
    )
 | 
						|
 | 
						|
if __name__ == "__main__":
 | 
						|
    MuninRedisUsedMemoryPlugin().run()
 |