]> git.basschouten.com Git - openhab-addons.git/commitdiff
[metrics] Add addoninfo for suggestion (#16091)
authorHolger Friedrich <mail@holger-friedrich.de>
Sat, 23 Dec 2023 17:21:25 +0000 (18:21 +0100)
committerGitHub <noreply@github.com>
Sat, 23 Dec 2023 17:21:25 +0000 (18:21 +0100)
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
bundles/org.openhab.io.metrics/src/main/resources/OH-INF/addon/addon.xml

index 7858c7947845a487717e1edfcade5d442f09969f..dbdeedc8d90fcf8da0a212b1bf2db378478cdaf0 100644 (file)
 
        <config-description-ref uri="io:metrics"/>
 
+       <discovery-methods>
+               <discovery-method>
+                       <service-type>process</service-type>
+                       <match-properties>
+                               <match-property>
+                                       <name>command</name>
+                                       <regex>(?i).*[/\\](prometheus)(\.exe)?$</regex>
+                               </match-property>
+                       </match-properties>
+               </discovery-method>
+       </discovery-methods>
+
 </addon:addon>