diff --git a/.gitignore b/.gitignore index e9134f4..35dfe3f 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,5 @@ tests/__pycache__ .cache .vagrant tests/roles -.pytest_cache \ No newline at end of file +.pytest_cache +venv/ diff --git a/defaults/main.yml b/defaults/main.yml index 6ee7a3b..eb3bef1 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -1,6 +1,6 @@ --- ## General -prom2teams_version: 2.3.0 +prom2teams_version: 2.3.1 prom2teams_required_libs: - python3 - python3-pip diff --git a/requirements-test.txt b/requirements-test.txt new file mode 100644 index 0000000..3efbe18 --- /dev/null +++ b/requirements-test.txt @@ -0,0 +1,3 @@ +molecule<2 +ansible>=2.5,<=2.8 +python-vagrant==0.5.15 diff --git a/templates/prom2teams.ini.j2 b/templates/prom2teams.ini.j2 index 6306ca7..383418a 100644 --- a/templates/prom2teams.ini.j2 +++ b/templates/prom2teams.ini.j2 @@ -21,4 +21,9 @@ Path: {{ prom2teams_template_path }} # default: app resources template {% if prom2teams_groupalertsby is defined %} [Group Alerts] Field: {{ prom2teams_groupalertsby }} -{% endif %} \ No newline at end of file +{% endif %} + +{% if prom2teams_ignored_extra_labels is defined %} +[Labels] +Excluded: {{ prom2teams_ignored_extra_labels|join(', ') }} +{% endif %}