Available from version 2.3.0
Add the forwarder manually as follows:
npm i @sakuli/forwarder-prometheus
It is assumed that a push gateway is available in your monitoring setup. As Sakuli checks are not constantly available like e.g. a Webservice, it is required to use a Prometheus push gateway to provide a scraping endpoint for Prometheus to obtain measurements gathered by Sakuli.
Configuration is located in
sakuli.properties within the root folder of your project or respectively in
testsuite.properties in your testsuite folders for testsuite specific configuration:
||Enables forwarding to prometheus push gateway|
||Hostname of the prometheus push gateway|
||Port of the prometheus push gateway service|
||Name of the job the metrics relate to. E.g.
sakuli.forwarder.prometheus.enabled=true sakuli.forwarder.prometheus.api.host=prom.push.gateway.mydomain.com sakuli.forwarder.prometheus.api.port=9091 sakuli.forwarder.prometheus.api.job=my-app-e2e-monitoring