Module: check_mk
Branch: master
Commit: e5bc8725e1b437ff2f9940d9930f151b184c7970
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e5bc8725e1b437…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu May 2 11:28:37 2019 +0200
Move config.cmc_graphite_service_metrics processing to CEEConfigCache
CMK-2030
Change-Id: I5755184038cc774092d482a8c7fff937fd83405b
---
cmk_base/config.py | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/cmk_base/config.py b/cmk_base/config.py
index 48da6b5..9c4f97f 100644
--- a/cmk_base/config.py
+++ b/cmk_base/config.py
@@ -3711,6 +3711,13 @@ class CEEConfigCache(ConfigCache):
return entries[0]
+ def graphite_metrics_of_service(self, hostname, description):
+ # type: (str, Text) -> Optional[List[str]]
+ entries = self.service_extra_conf(hostname, description,
cmc_graphite_service_metrics)
+ if not entries:
+ return None
+ return entries[0]
+
# TODO: Find a clean way to move this to cmk_base.cee. This will be possible once the
# configuration settings are not held in cmk_base.config namespace anymore.