Add script to shot tempalte coverage

* Add a script to compare the defined metrics with those used in the
  Zabbix template.

* Add a Makefile target to run the above script.
This commit is contained in:
2025-10-09 02:21:17 -04:00
parent ab039dc412
commit 3ade30c04a
2 changed files with 134 additions and 0 deletions

View File

@@ -110,6 +110,11 @@ endif
query-tests:
cd tests ; ./run-tests.sh
# Compare the sample metrics with the Zabbix template
template-coverage:
$(PYTHON) zabbix_templates/coverage.py sample-config/pgmon-metrics.yml zabbix_templates/pgmon_templates.yaml
# Install the script at the specified base directory (common components)
install-common:
# Set up directories