aboutsummaryrefslogtreecommitdiff
path: root/filter_plugins
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2020-11-13 17:47:31 -0500
committerMitch Riedstra <mitch@riedstra.us>2020-11-13 17:47:31 -0500
commit01cda8792213340fdedcd364dedb2a73564d27f2 (patch)
tree54af9ac384b043b52a9dd752e9a41cbbe68d1a82 /filter_plugins
parent3d157fef24360238f39c44529f1b2ec3b70e411b (diff)
downloadprometheus-01cda8792213340fdedcd364dedb2a73564d27f2.tar.gz
prometheus-01cda8792213340fdedcd364dedb2a73564d27f2.tar.xz
Remove systemd support. Add alertmanager. Remove old template
Diffstat (limited to 'filter_plugins')
-rw-r--r--filter_plugins/__pycache__/forEachAppend.cpython-38.pycbin0 -> 784 bytes
-rw-r--r--filter_plugins/forEachAppend.py10
2 files changed, 10 insertions, 0 deletions
diff --git a/filter_plugins/__pycache__/forEachAppend.cpython-38.pyc b/filter_plugins/__pycache__/forEachAppend.cpython-38.pyc
new file mode 100644
index 0000000..124454c
--- /dev/null
+++ b/filter_plugins/__pycache__/forEachAppend.cpython-38.pyc
Binary files differ
diff --git a/filter_plugins/forEachAppend.py b/filter_plugins/forEachAppend.py
new file mode 100644
index 0000000..b5d676d
--- /dev/null
+++ b/filter_plugins/forEachAppend.py
@@ -0,0 +1,10 @@
+#!/usr/bin/env python
+
+class FilterModule(object):
+ def filters(self):
+ return {
+ 'forEachAppend': self.forEachAppend,
+ }
+
+ def forEachAppend(self, arr, _str):
+ return [ x +_str for x in arr ]