rpsedlak / zabbix-docker

This repository contains monitoring code for Zabbix to discover and monitor Docker instances on Linux platforms.
30 stars 27 forks source link

Recalculate items with units #39

Closed svenXY closed 5 years ago

svenXY commented 5 years ago

Hi,

I refactored the split logic to split into numbers and units with Regex, then it will recalculate based on that. Refactored some repetitive code into functions.

This will resolve most of the issues with zabbix-docker-stats.py I think.