Local Check - specify correct Unit for Graph Metric

Hi,
alternatively, you can add your own metric’s definition. Giving that your site is installed under /omd/sites/yoursite, you could add a python file under /omd/sites/yoursite/local/share/check_mk/web/plugins/metrics/yourdata.py. In your case it could look like:

#!/usr/bin/env python
# -*- encoding: utf-8; py-indent-offset: 4 -*-

metric_info["allocatedsize"] = {
    "title": _("Allocated size"),
    "unit": "bytes",
    "color": "green",
}

You can add in the same file more metrics (for size and footprintonpool).

Hope it helps.
Regards
Yvan

4 Likes