Defined Type: profile::prometheus::elasticsearch_exporter
- Defined in:
- modules/profile/manifests/prometheus/elasticsearch_exporter.pp
Overview
SPDX-License-Identifier: Apache-2.0
Define: profile::prometheus::elasticsearch_exporter
Configures a prometheus elasticsearch exporter and sets up appropriate firewall rules for collection from the exporter.
Parameters
- prometheus_port
-
Port used by the exporter for the listen socket
- elasticsearch_port
-
Port to monitor elasticsearch on
14 15 16 17 18 19 20 21 22 |
# File 'modules/profile/manifests/prometheus/elasticsearch_exporter.pp', line 14
define profile::prometheus::elasticsearch_exporter(
Stdlib::Port $prometheus_port,
Stdlib::Port $elasticsearch_port,
) {
prometheus::elasticsearch_exporter { "localhost:${elasticsearch_port}":
elasticsearch_port => $elasticsearch_port,
prometheus_port => $prometheus_port,
}
}
|