Newer
Older
nextcloud-monitoring-dashboard / zabbix-templates / 6.0 / redis-zabbix-allenta-consulting-template.json
{
    "zabbix_export": {
        "version": "6.0",
        "date": "2024-08-19T14:49:59Z",
        "groups": [
            {
                "uuid": "7df96b18c230490a9a0a9e2307226338",
                "name": "Templates"
            }
        ],
        "templates": [
            {
                "uuid": "0985c017179b4925a39859b210f8068e",
                "template": "Template App Redis Server",
                "name": "Template App Redis Server",
                "description": "Template App Redis Server v14.0",
                "groups": [
                    {
                        "name": "Templates"
                    }
                ],
                "items": [
                    {
                        "uuid": "0dd210187c7e4086af924495bf3215b9",
                        "name": "Redis Server - $1 processes",
                        "key": "proc.num[redis-server]",
                        "delay": "{$REDIS_SERVER.ITEM_UPDATE_INTERVAL}",
                        "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                        "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}",
                        "tags": [
                            {
                                "tag": "Application",
                                "value": "Redis Server"
                            }
                        ],
                        "triggers": [
                            {
                                "uuid": "4a0ea180d9124067be6d1f4e46421773",
                                "expression": "last(/Template App Redis Server/proc.num[redis-server])<{$REDIS_SERVER.PROCESSES.MIN}",
                                "name": "Redis Server is not running",
                                "priority": "DISASTER"
                            }
                        ]
                    },
                    {
                        "uuid": "b4a345736aec44bdbde03ce96b338994",
                        "name": "Redis Server - stats",
                        "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]",
                        "delay": "{$REDIS_SERVER.ITEM_UPDATE_INTERVAL}",
                        "history": "0",
                        "trends": "0",
                        "value_type": "TEXT",
                        "preprocessing": [
                            {
                                "type": "JAVASCRIPT",
                                "parameters": [
                                    "\n                                            var exclusions = '{$REDIS_SERVER.EXCLUDED_STATS}'.trim();\n\n                                            // This check is not just a simple optimization to avoid using never matching\n                                            // regexps like '^(?!)' when filtering is not needed. JavaScript based filtering\n                                            // effectively limits precision of numeric values and it could trigger rendering\n                                            // of values using scientific notation.\n                                            if (exclusions !== '') {\n                                                exclusions = new RegExp(exclusions);\n\n                                                var stats = JSON.parse(value);\n\n                                                Object.keys(stats).forEach(function(key) {\n                                                    var name = key.replace(/^[^.]*[.]/, '');\n                                                    if (exclusions.test(name)) {\n                                                        delete stats[key];\n                                                    }\n                                                });\n\n                                                return JSON.stringify(stats);\n                                            } else {\n                                                return value;\n                                            }\n                                        "
                                ]
                            }
                        ],
                        "tags": [
                            {
                                "tag": "Application",
                                "value": "Redis Server"
                            }
                        ]
                    }
                ],
                "discovery_rules": [
                    {
                        "uuid": "2a82dc028a7e449690f7717e7f89aa3b",
                        "name": "Commandstats discovery",
                        "key": "redis_server.discovery[\"{$REDIS_SERVER.LOCATIONS}\",\"commandstats\"]",
                        "delay": "{$REDIS_SERVER.LLD_UPDATE_INTERVAL:\"commandstats\"}",
                        "filter": {
                            "conditions": [
                                {
                                    "macro": "{#SUBJECT}",
                                    "value": "{$REDIS_SERVER.LLD_EXCLUDED_SUBJECTS:\"commandstats\"}",
                                    "operator": "NOT_MATCHES_REGEX",
                                    "formulaid": "A"
                                }
                            ]
                        },
                        "lifetime": "{$REDIS_SERVER.LLD_KEEP_LOST_RESOURCES_PERIOD:\"commandstats\"}",
                        "item_prototypes": [
                            {
                                "uuid": "bcd9f65b5a5b452189b7ccf0adbd78c8",
                                "name": "Redis Server[{#LOCATION}] - commandstats:{#SUBJECT}:calls",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"commandstats:{#SUBJECT}:calls\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}",
                                "value_type": "FLOAT",
                                "units": "eps",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.commandstats:{#SUBJECT}:calls']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    },
                                    {
                                        "type": "CHANGE_PER_SECOND",
                                        "parameters": [
                                            ""
                                        ]
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            },
                            {
                                "uuid": "7b6c45697ba14f10bd7164dc27c01090",
                                "name": "Redis Server[{#LOCATION}] - commandstats:{#SUBJECT}:usec_per_call",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"commandstats:{#SUBJECT}:usec_per_call\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}",
                                "value_type": "FLOAT",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.commandstats:{#SUBJECT}:usec_per_call']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            }
                        ]
                    },
                    {
                        "uuid": "e8dd71a33888412dbbd3ff3f3307b9c6",
                        "name": "Items discovery",
                        "key": "redis_server.discovery[\"{$REDIS_SERVER.LOCATIONS}\",\"items\"]",
                        "delay": "{$REDIS_SERVER.LLD_UPDATE_INTERVAL:\"items\"}",
                        "lifetime": "{$REDIS_SERVER.LLD_KEEP_LOST_RESOURCES_PERIOD:\"items\"}",
                        "item_prototypes": [
                            {
                                "uuid": "39475ca0c1464d3e9cbe7b85d3d81085",
                                "name": "Redis Server[{#LOCATION}] - clients:blocked_clients",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"clients:blocked_clients\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.clients:blocked_clients']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            },
                            {
                                "uuid": "327f368c4eff4b68bd1b8e1f6d5e6934",
                                "name": "Redis Server[{#LOCATION}] - clients:connected_clients",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"clients:connected_clients\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.clients:connected_clients']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            },
                            {
                                "uuid": "42093af8dbca40ae8eaf342b4307e4ae",
                                "name": "Redis Server[{#LOCATION}] - cluster:cluster_known_nodes",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"cluster:cluster_known_nodes\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.cluster:cluster_known_nodes']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            },
                            {
                                "uuid": "b2cd47874a774d3c9bd8b0b071a39b38",
                                "name": "Redis Server[{#LOCATION}] - cluster:cluster_size",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"cluster:cluster_size\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.cluster:cluster_size']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            },
                            {
                                "uuid": "581ecf808c544e28a9f070c3bf74d5e4",
                                "name": "Redis Server[{#LOCATION}] - cluster:cluster_slots_assigned",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"cluster:cluster_slots_assigned\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.cluster:cluster_slots_assigned']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            },
                            {
                                "uuid": "0671752af70d4ec89e755497d7017ae1",
                                "name": "Redis Server[{#LOCATION}] - cluster:cluster_slots_fail",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"cluster:cluster_slots_fail\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.cluster:cluster_slots_fail']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            },
                            {
                                "uuid": "e08e2f608ff2439da9093a9d42fb6aea",
                                "name": "Redis Server[{#LOCATION}] - cluster:cluster_slots_ok",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"cluster:cluster_slots_ok\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.cluster:cluster_slots_ok']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            },
                            {
                                "uuid": "37457455be4f49d888ff64118a2fe5ab",
                                "name": "Redis Server[{#LOCATION}] - cluster:cluster_slots_pfail",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"cluster:cluster_slots_pfail\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.cluster:cluster_slots_pfail']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            },
                            {
                                "uuid": "5ed9c084254c487bb86ba5fefb96d4f5",
                                "name": "Redis Server[{#LOCATION}] - cluster:cluster_state",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"cluster:cluster_state\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "0",
                                "value_type": "TEXT",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.cluster:cluster_state']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            },
                            {
                                "uuid": "5921de15169a43a6952552c795c3a3af",
                                "name": "Redis Server[{#LOCATION}] - cpu:used_cpu_sys",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"cpu:used_cpu_sys\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}",
                                "value_type": "FLOAT",
                                "units": "eps",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.cpu:used_cpu_sys']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    },
                                    {
                                        "type": "CHANGE_PER_SECOND",
                                        "parameters": [
                                            ""
                                        ]
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            },
                            {
                                "uuid": "84307066f3f04a758c94e5ee01c7938e",
                                "name": "Redis Server[{#LOCATION}] - cpu:used_cpu_sys_children",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"cpu:used_cpu_sys_children\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}",
                                "value_type": "FLOAT",
                                "units": "eps",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.cpu:used_cpu_sys_children']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    },
                                    {
                                        "type": "CHANGE_PER_SECOND",
                                        "parameters": [
                                            ""
                                        ]
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            },
                            {
                                "uuid": "6c410ba56ead40858decab4c84e9b998",
                                "name": "Redis Server[{#LOCATION}] - cpu:used_cpu_user",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"cpu:used_cpu_user\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}",
                                "value_type": "FLOAT",
                                "units": "eps",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.cpu:used_cpu_user']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    },
                                    {
                                        "type": "CHANGE_PER_SECOND",
                                        "parameters": [
                                            ""
                                        ]
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            },
                            {
                                "uuid": "21254c91ddb74bfe9eee9d82607328cd",
                                "name": "Redis Server[{#LOCATION}] - cpu:used_cpu_user_children",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"cpu:used_cpu_user_children\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}",
                                "value_type": "FLOAT",
                                "units": "eps",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.cpu:used_cpu_user_children']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    },
                                    {
                                        "type": "CHANGE_PER_SECOND",
                                        "parameters": [
                                            ""
                                        ]
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            },
                            {
                                "uuid": "fac4af3cc8f1441389d386c62447af18",
                                "name": "Redis Server[{#LOCATION}] - hit_ratio",
                                "type": "CALCULATED",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"hit_ratio\"]",
                                "delay": "{$REDIS_SERVER.ITEM_UPDATE_INTERVAL}",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}",
                                "value_type": "FLOAT",
                                "units": "%",
                                "params": "100*last(//redis_server.info[\"{#LOCATION_ID}\",\"stats:keyspace_hits\"])/(last(//redis_server.info[\"{#LOCATION_ID}\",\"stats:keyspace_hits\"])+last(//redis_server.info[\"{#LOCATION_ID}\",\"stats:keyspace_misses\"])+(count(//redis_server.info[\"{#LOCATION_ID}\",\"stats:keyspace_hits\"],#1,\"eq\",0)*count(//redis_server.info[\"{#LOCATION_ID}\",\"stats:keyspace_misses\"],#1,\"eq\",0)))",
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            },
                            {
                                "uuid": "2328c03f4b444f82a9a19e7246d883ad",
                                "name": "Redis Server[{#LOCATION}] - memory:mem_fragmentation_ratio",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"memory:mem_fragmentation_ratio\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}",
                                "value_type": "FLOAT",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.memory:mem_fragmentation_ratio']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            },
                            {
                                "uuid": "421ae72f90fe46b4929112df5de1222c",
                                "name": "Redis Server[{#LOCATION}] - memory:used_memory",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"memory:used_memory\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}",
                                "units": "B",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.memory:used_memory']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            },
                            {
                                "uuid": "bfa68004441b4705a18ef68c7a6f8bb6",
                                "name": "Redis Server[{#LOCATION}] - memory:used_memory_lua",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"memory:used_memory_lua\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}",
                                "units": "B",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.memory:used_memory_lua']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            },
                            {
                                "uuid": "9edf931c27e94de1a0f029a9d5833b36",
                                "name": "Redis Server[{#LOCATION}] - memory:used_memory_rss",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"memory:used_memory_rss\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}",
                                "units": "B",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.memory:used_memory_rss']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            },
                            {
                                "uuid": "2f2b46643e504baeab282528fbc155cf",
                                "name": "Redis Server[{#LOCATION}] - persistence:aof_last_bgrewrite_status",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"persistence:aof_last_bgrewrite_status\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "0",
                                "value_type": "TEXT",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.persistence:aof_last_bgrewrite_status']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            },
                            {
                                "uuid": "91978c3c77ef489fa65c75f1a22548a6",
                                "name": "Redis Server[{#LOCATION}] - persistence:aof_last_rewrite_time_sec",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"persistence:aof_last_rewrite_time_sec\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.persistence:aof_last_rewrite_time_sec']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            },
                            {
                                "uuid": "2a55fc618e294ce3a305a8e5271d6154",
                                "name": "Redis Server[{#LOCATION}] - persistence:aof_last_write_status",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"persistence:aof_last_write_status\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "0",
                                "value_type": "TEXT",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.persistence:aof_last_write_status']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            },
                            {
                                "uuid": "a7dd0f15e8f9483e8a41d4eaeeaff532",
                                "name": "Redis Server[{#LOCATION}] - persistence:rdb_changes_since_last_save",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"persistence:rdb_changes_since_last_save\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.persistence:rdb_changes_since_last_save']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            },
                            {
                                "uuid": "488ada8c369a474da74dce54d6d85493",
                                "name": "Redis Server[{#LOCATION}] - persistence:rdb_last_bgsave_status",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"persistence:rdb_last_bgsave_status\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "0",
                                "value_type": "TEXT",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.persistence:rdb_last_bgsave_status']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            },
                            {
                                "uuid": "9968741069d74a62a2efcce2025957e5",
                                "name": "Redis Server[{#LOCATION}] - persistence:rdb_last_bgsave_time_sec",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"persistence:rdb_last_bgsave_time_sec\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.persistence:rdb_last_bgsave_time_sec']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            },
                            {
                                "uuid": "5fbca013a8ca4051b49d4f2be670dd04",
                                "name": "Redis Server[{#LOCATION}] - persistence:rdb_last_save_time",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"persistence:rdb_last_save_time\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}",
                                "units": "unixtime",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.persistence:rdb_last_save_time']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            },
                            {
                                "uuid": "64186f3afffe4c0c90fd81b56b4c58e1",
                                "name": "Redis Server[{#LOCATION}] - replication:connected_slaves",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"replication:connected_slaves\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.replication:connected_slaves']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            },
                            {
                                "uuid": "dfaa1031d4e641c9aac23efc1c2b3e84",
                                "name": "Redis Server[{#LOCATION}] - replication:role",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"replication:role\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "0",
                                "value_type": "TEXT",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.replication:role']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            },
                            {
                                "uuid": "eaaab8c393c34910930c20b1957dfd81",
                                "name": "Redis Server[{#LOCATION}] - server:uptime_in_seconds",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"server:uptime_in_seconds\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}",
                                "units": "uptime",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.server:uptime_in_seconds']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ],
                                "trigger_prototypes": [
                                    {
                                        "uuid": "e0e532c83c8b4a78aaa620a80358085d",
                                        "expression": "last(/Template App Redis Server/redis_server.info[\"{#LOCATION_ID}\",\"server:uptime_in_seconds\"])<{$REDIS_SERVER.UPTIME.MIN:\"{#LOCATION_ID}\"}",
                                        "name": "Redis Server[{#LOCATION}] has been restarted",
                                        "priority": "HIGH"
                                    }
                                ]
                            },
                            {
                                "uuid": "ac8c032105934030a2ae11ba8a4fb1f5",
                                "name": "Redis Server[{#LOCATION}] - stats:evicted_keys",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:evicted_keys\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}",
                                "value_type": "FLOAT",
                                "units": "eps",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.stats:evicted_keys']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    },
                                    {
                                        "type": "CHANGE_PER_SECOND",
                                        "parameters": [
                                            ""
                                        ]
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ],
                                "trigger_prototypes": [
                                    {
                                        "uuid": "ee545f84145049b0acef45ce5868ca5e",
                                        "expression": "{$REDIS_SERVER.EVICTED_KEYS.ENABLED:\"{#LOCATION_ID}\"} and last(/Template App Redis Server/redis_server.info[\"{#LOCATION_ID}\",\"stats:evicted_keys\"])>{$REDIS_SERVER.EVICTED_KEYS.MAX:\"{#LOCATION_ID}\"}",
                                        "name": "Redis Server[{#LOCATION}] is evicting keys",
                                        "priority": "HIGH"
                                    }
                                ]
                            },
                            {
                                "uuid": "33c508f4f12d4396a257259a642fe06f",
                                "name": "Redis Server[{#LOCATION}] - stats:expired_keys",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:expired_keys\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}",
                                "value_type": "FLOAT",
                                "units": "eps",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.stats:expired_keys']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    },
                                    {
                                        "type": "CHANGE_PER_SECOND",
                                        "parameters": [
                                            ""
                                        ]
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            },
                            {
                                "uuid": "fe11dd3f19c04aae885a5e65be84ac44",
                                "name": "Redis Server[{#LOCATION}] - stats:keyspace_hits",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:keyspace_hits\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}",
                                "value_type": "FLOAT",
                                "units": "eps",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.stats:keyspace_hits']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    },
                                    {
                                        "type": "CHANGE_PER_SECOND",
                                        "parameters": [
                                            ""
                                        ]
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            },
                            {
                                "uuid": "2ca4880622a84537afb2e152e90d9b0e",
                                "name": "Redis Server[{#LOCATION}] - stats:keyspace_misses",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:keyspace_misses\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}",
                                "value_type": "FLOAT",
                                "units": "eps",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.stats:keyspace_misses']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    },
                                    {
                                        "type": "CHANGE_PER_SECOND",
                                        "parameters": [
                                            ""
                                        ]
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            },
                            {
                                "uuid": "d3c74496265344908c67fc707c5574a0",
                                "name": "Redis Server[{#LOCATION}] - stats:pubsub_channels",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:pubsub_channels\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.stats:pubsub_channels']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            },
                            {
                                "uuid": "1da281315beb42cdb47a46bd04705279",
                                "name": "Redis Server[{#LOCATION}] - stats:pubsub_patterns",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:pubsub_patterns\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.stats:pubsub_patterns']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            },
                            {
                                "uuid": "b30b5ebbba5a4fb283d8555e4f31e6db",
                                "name": "Redis Server[{#LOCATION}] - stats:rejected_connections",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:rejected_connections\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}",
                                "value_type": "FLOAT",
                                "units": "eps",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.stats:rejected_connections']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    },
                                    {
                                        "type": "CHANGE_PER_SECOND",
                                        "parameters": [
                                            ""
                                        ]
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            },
                            {
                                "uuid": "72a93e5d77da499da6fa35a449f8bdab",
                                "name": "Redis Server[{#LOCATION}] - stats:sync_full",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:sync_full\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}",
                                "value_type": "FLOAT",
                                "units": "eps",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.stats:sync_full']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    },
                                    {
                                        "type": "CHANGE_PER_SECOND",
                                        "parameters": [
                                            ""
                                        ]
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            },
                            {
                                "uuid": "de56a2ed709442f38c7ee2b1062e71f7",
                                "name": "Redis Server[{#LOCATION}] - stats:sync_partial_err",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:sync_partial_err\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}",
                                "value_type": "FLOAT",
                                "units": "eps",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.stats:sync_partial_err']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    },
                                    {
                                        "type": "CHANGE_PER_SECOND",
                                        "parameters": [
                                            ""
                                        ]
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            },
                            {
                                "uuid": "694a8e6cbf1046908889b5f01f2fe833",
                                "name": "Redis Server[{#LOCATION}] - stats:sync_partial_ok",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:sync_partial_ok\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}",
                                "value_type": "FLOAT",
                                "units": "eps",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.stats:sync_partial_ok']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    },
                                    {
                                        "type": "CHANGE_PER_SECOND",
                                        "parameters": [
                                            ""
                                        ]
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            },
                            {
                                "uuid": "41e203934ce34e1d9c60e944f71cd157",
                                "name": "Redis Server[{#LOCATION}] - stats:total_commands_processed",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:total_commands_processed\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}",
                                "value_type": "FLOAT",
                                "units": "eps",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.stats:total_commands_processed']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    },
                                    {
                                        "type": "CHANGE_PER_SECOND",
                                        "parameters": [
                                            ""
                                        ]
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            },
                            {
                                "uuid": "6d3bbd28afea4972b04d21e2514d630a",
                                "name": "Redis Server[{#LOCATION}] - stats:total_connections_received",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:total_connections_received\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}",
                                "value_type": "FLOAT",
                                "units": "eps",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.stats:total_connections_received']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    },
                                    {
                                        "type": "CHANGE_PER_SECOND",
                                        "parameters": [
                                            ""
                                        ]
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            },
                            {
                                "uuid": "0363d2b2013e4b1e9128f4aef5ee98f9",
                                "name": "Redis Server[{#LOCATION}] - stats:total_net_input_bytes",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:total_net_input_bytes\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}",
                                "value_type": "FLOAT",
                                "units": "Bps",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.stats:total_net_input_bytes']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    },
                                    {
                                        "type": "CHANGE_PER_SECOND",
                                        "parameters": [
                                            ""
                                        ]
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            },
                            {
                                "uuid": "3353518069404f049df2323c464e827c",
                                "name": "Redis Server[{#LOCATION}] - stats:total_net_output_bytes",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"stats:total_net_output_bytes\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}",
                                "value_type": "FLOAT",
                                "units": "Bps",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.stats:total_net_output_bytes']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    },
                                    {
                                        "type": "CHANGE_PER_SECOND",
                                        "parameters": [
                                            ""
                                        ]
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            }
                        ],
                        "trigger_prototypes": [
                            {
                                "uuid": "9f2a6de254b143a0abf7e7e0d7a8f672",
                                "expression": "{$REDIS_SERVER.CONNECTED_SLAVES.ENABLED:\"{#LOCATION_ID}\"} and find(/Template App Redis Server/redis_server.info[\"{#LOCATION_ID}\",\"replication:role\"],,\"eq\",\"master\")=1 and last(/Template App Redis Server/redis_server.info[\"{#LOCATION_ID}\",\"replication:connected_slaves\"])=0",
                                "name": "Redis Server[{#LOCATION}] is a master without slaves",
                                "priority": "HIGH"
                            }
                        ]
                    },
                    {
                        "uuid": "0ab4e802e3f74f45a5e07cc7cdba333b",
                        "name": "Keyspace discovery",
                        "key": "redis_server.discovery[\"{$REDIS_SERVER.LOCATIONS}\",\"keyspace\"]",
                        "delay": "{$REDIS_SERVER.LLD_UPDATE_INTERVAL:\"keyspace\"}",
                        "filter": {
                            "conditions": [
                                {
                                    "macro": "{#SUBJECT}",
                                    "value": "{$REDIS_SERVER.LLD_EXCLUDED_SUBJECTS:\"keyspace\"}",
                                    "operator": "NOT_MATCHES_REGEX",
                                    "formulaid": "A"
                                }
                            ]
                        },
                        "lifetime": "{$REDIS_SERVER.LLD_KEEP_LOST_RESOURCES_PERIOD:\"keyspace\"}",
                        "item_prototypes": [
                            {
                                "uuid": "d0ce35df09b2476b86ca8fc486a3b0e8",
                                "name": "Redis Server[{#LOCATION}] - keyspace:{#SUBJECT}:avg_ttl",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"keyspace:{#SUBJECT_ID}:avg_ttl\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.keyspace:{#SUBJECT_ID}:avg_ttl']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            },
                            {
                                "uuid": "390d42e974e044e4bc0069b87588e6e8",
                                "name": "Redis Server[{#LOCATION}] - keyspace:{#SUBJECT}:expires",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"keyspace:{#SUBJECT_ID}:expires\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.keyspace:{#SUBJECT_ID}:expires']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            },
                            {
                                "uuid": "9d67ee3b117b479ca89876103ffddbeb",
                                "name": "Redis Server[{#LOCATION}] - keyspace:{#SUBJECT}:keys",
                                "type": "DEPENDENT",
                                "key": "redis_server.info[\"{#LOCATION_ID}\",\"keyspace:{#SUBJECT_ID}:keys\"]",
                                "delay": "0",
                                "history": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                                "trends": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}",
                                "preprocessing": [
                                    {
                                        "type": "JSONPATH",
                                        "parameters": [
                                            "$['{#LOCATION_ID}.keyspace:{#SUBJECT_ID}:keys']"
                                        ],
                                        "error_handler": "DISCARD_VALUE"
                                    }
                                ],
                                "master_item": {
                                    "key": "redis_server.stats[\"{$REDIS_SERVER.LOCATIONS}\"]"
                                },
                                "tags": [
                                    {
                                        "tag": "Application",
                                        "value": "Redis Server"
                                    }
                                ]
                            }
                        ]
                    }
                ],
                "tags": [
                    {
                        "tag": "Application",
                        "value": "Redis Server"
                    }
                ],
                "macros": [
                    {
                        "macro": "{$REDIS_SERVER.CONNECTED_SLAVES.ENABLED}",
                        "value": "1"
                    },
                    {
                        "macro": "{$REDIS_SERVER.EVICTED_KEYS.ENABLED}",
                        "value": "1"
                    },
                    {
                        "macro": "{$REDIS_SERVER.EVICTED_KEYS.MAX}",
                        "value": "0.0"
                    },
                    {
                        "macro": "{$REDIS_SERVER.EXCLUDED_STATS}"
                    },
                    {
                        "macro": "{$REDIS_SERVER.ITEM_HISTORY_STORAGE_PERIOD}",
                        "value": "30d"
                    },
                    {
                        "macro": "{$REDIS_SERVER.ITEM_TREND_STORAGE_PERIOD}",
                        "value": "365d"
                    },
                    {
                        "macro": "{$REDIS_SERVER.ITEM_UPDATE_INTERVAL}",
                        "value": "1m"
                    },
                    {
                        "macro": "{$REDIS_SERVER.LLD_EXCLUDED_SUBJECTS}",
                        "value": "^(?!)"
                    },
                    {
                        "macro": "{$REDIS_SERVER.LLD_KEEP_LOST_RESOURCES_PERIOD}",
                        "value": "30d"
                    },
                    {
                        "macro": "{$REDIS_SERVER.LLD_UPDATE_INTERVAL}",
                        "value": "1h"
                    },
                    {
                        "macro": "{$REDIS_SERVER.LOCATIONS}"
                    },
                    {
                        "macro": "{$REDIS_SERVER.PROCESSES.MIN}",
                        "value": "1"
                    },
                    {
                        "macro": "{$REDIS_SERVER.UPTIME.MIN}",
                        "value": "10m"
                    }
                ]
            }
        ]
    }
}