Cookbook to install and configure various Prometheus exporters on systems to be monitored by Prometheus.
Currently supported exporters are node, postgres, redis, mysqld, haproxy, process, apache, blackbox, snmp, statsd, and wmi. More may be added in the future. Please contact the author if you have specific requests.
All of the exporters are available as chef custom resources that can be instantiated from other cookbooks.
- Ubuntu 16.04
- Ubuntu 18.04
- Fedora 31
- Fedora 30
- Debian 4
- Debian 9
- CentOS 7
- Amazon Linux
And probably other RHEL or Debian based distributions.
- Windows Server 2012 & 2016 (wmi_exporter recipe only)
Tests are made using last available Chef 15 along with latest Chef 14.
- apache_exporter
- blackbox_exporter
- consul_exporter
- elasticsearch_exporter
- haproxy_exporter
- mongodb_exporter
- mysqld_exporter
- node_exporter
- postgres_exporter
- process_exporter
- rabbitmq_exporter
- redis_exporter
- snmp_exporter
- statsd_exporter
- varnish_exporter
- wmi_exporter
- nginx_exporter
insecureIgnore server certificate if using https. (default false)log_formatOutput format of log messages. e.g. "logger:syslog?appname=bob&local=7" or "logger:stdout?json=true" (default: "logger:stdout")log_levelThe logging level. (default: "info")scrape_uriURI to apache stub status page. (default "http://localhost/server-status/?auto")telemetry_addressAddress on which to expose metrics. (default ":9117")telemetry_endpointPath under which to expose metrics. (default "/metrics")userUser under whom to start apache exporter. (default: "root")
apache_exporter 'main' do
scrape_uri "http://localhost:8090/server-status/?auto"
telemetry_address ":9118"
telemetry_endpoint "/_metrics"
endThis exporter requires a config file. Read more here. For basic usage the default blackbox.yml should be sufficient.
config_filedefault:/opt/blackbox_exporter-#{node['prometheus_exporters']['blackbox']['version']}.linux-amd64/blackbox.ymllog_levelOnly log messages with the given severity or above. Valid levels: [debug, info, warn, error]timeout_offsetdefault: 0.5 Offset to subtract from timeout in seconds.userUser under whom to start blackbox exporter. (default: "root")web_listen_addressAddress to listen on for web interface and telemetry. (default: ":9115")
blackbox_exporter 'main'consul_allow_staleAllows any Consul server (non-leader) to service a read. (default: false)consul_ca_fileFile path to a PEM-encoded certificate authority used to validate the authenticity of a server certificate.consul_cert_fileFile path to a PEM-encoded certificate used with the private key to verify the exporter's authenticity.consul_health_summaryCollects and exports information about each registered service. (default: false)consul_insecureDisable TLS host verification. (default: false)consul_key_fileFile path to a PEM-encoded private key used with the certificate to verify the exporter's authenticity.consul_require_consistentEnforce fully consistency on Consul reads. (default: false)consul_server_nameOverride the hostname for the TLS certificate. It can be used to ensure that the certificate name matches the decalred hostname.consul_serverAddress of the Consul instance to connect to. (default: "http://localhost:8500")consul_timeoutTimeout on HTTP requests to consul. (default: "500ms")kv_prefixPrefix from which to expose key/value pairs.kv_filterRegex that determines which keys to expose. (default: ".*")log_formatOutput format of log messages. One of: [logfmt, json]. (default: "logfmt")log_levelThe logging level. (default: "info")userUser under whom to start elasticsearch exporter. (default: "root")web_listen_addressAddress to listen on for web interface and telemetry. (default: ":9107")web_telemetry_pathPath under which to expose metrics. (default: "/metrics")
consul_exporter 'main' do
action %i[install enable start]
endes_allIf true, query stats for all nodes in the cluster, rather than just the node we connect to. (default: false)es_caPath to PEM file that contains trusted Certificate Authorities for the Elasticsearch connection.es_client_certPath to PEM file that contains the corresponding cert for the private key to connect to Elasticsearch.es_client_private_keyPath to PEM file that contains the private key for client auth when connecting to Elasticsearch.es_cluster_settingsIf true, query stats for cluster settings. (default: false)es_clusterinfo_intervalCluster info update interval for the cluster label. (default: 5m)es_indices_settingsIf true, query settings stats for all indices in the cluster. (default: false)es_indicesIf true, query stats for all indices in the cluster. (default: false)es_shardsIf true, query stats for all indices in the cluster, including shard-level stats (implies es.indices=true). (default: false)es_snapshotsIf true, query stats for the cluster snapshots. (default: false)es_ssl_skip_verifySkip SSL verification when connecting to Elasticsearch. (default: false)es_timeoutTimeout for trying to get stats from Elasticsearch. (ex: 20s) (default: 5s)es_uriAddress (host and port) of the Elasticsearch node we should connect to. (default: "http://localhost:9200")log_formatSet the log target and format. Valid values are: [json, logfmt]log_levelOnly log messages with the given severity or above. Valid levels: [debug, info, warn, error, fatal]userUser under whom to start elasticsearch exporter. (default: "root")web_listen_addressAddress to listen on for web interface and telemetry. (default: ":9114")web_telemetry_pathPath under which to expose metrics. (default: "/metrics")
elasticsearch_exporter 'main' do
action %i[install enable start]
endMonitor HAProxy metrics and stats. Read more here.
haproxy_pid_filePath to HAProxy pid file.haproxy_scrape_uriURI on which to scrape HAProxy.haproxy_server_metric_fieldsComma-separated list of exported server metrics.haproxy_ssl_verifyFlag that enables SSL certificate verification for the scrape URI.haproxy_timeoutTimeout for trying to get stats from HAProxy.log_formatWhere to send log files. (default: "logger:stdout")log_levelOnly log messages with the given severity or above. Valid levels: [debug, info, warn, error, fatal]. (default: "info")userUser under whom to start haproxy exporter. (default: "root")web_listen_addressAddress to listen on for web interface and telemetry. (default: "0.0.0.0:9116")web_telemetry_pathPath under which to expose metrics. (default: "/metrics")
haproxy_exporter 'main' do
haproxy_scrape_uri 'http://user:[email protected]/haproxy?stats;csv'
end
haproxy_exporter 'main' do
haproxy_scrape_uri 'unix:/run/haproxy/admin.sock'
user 'haproxy'
endUse the given defaults or set the attributes...
node['prometheus_exporters']['listen_interface']node['prometheus_exporters']['haproxy']['port']node['prometheus_exporters']['haproxy']['scrape_uri']node['prometheus_exporters']['haproxy']['ssl_verify']node['prometheus_exporters']['haproxy']['user']
and add recipe['prometheus_exporters::haproxy] to your run_list.
collect_collectionEnable collection of Collection metricscollect_connpoolstatsCollect MongoDB connpoolstatscollect_databaseEnable collection of Database metricscollect_indexusageEnable collection of per index usage statscollect_topmetricsEnable collection of table top metricslog_formatSet the log target and format. Example: "logger:syslog?appname=bob&local=7" or "logger:stdout?json=true"log_levelOnly log messages with the given severity or above. Valid levels: [debug, info, warn, error, fatal]mongodb_authentication_databaseSpecifies the database in which the user is createdmongodb_max_connectionsMax number of pooled connections to the database. (default: 1)mongodb_socket_timeoutAmount of time to wait for a non-responding socket to the database before it is forcefully closed. Valid time units are 'ns', 'us' (or 'µs'), 'ms', 's', 'm', 'h'. (default: 3s)mongodb_sync_timeoutAmount of time an operation with this session will wait before returning an error in case a connection to a usable server can't be established. (default: 1m)mongodb_uriMongoDB URI, format ([mongodb://][user:pass@]host1[:port1][,host2[:port2],...][/database][?options])userUser under whom to start mongodb exporter. (default: "root")web_auth_filePath to YAML file with server_user, server_password keys for HTTP Basic authentication (overrides HTTP_AUTH environment variable).web_listen_addressAddress to listen on for web interface and telemetry. (default: ":9216")web_ssl_cert_filePath to SSL certificate file.web_ssl_key_filePath to SSL key file.web_telemetry_pathPath under which to expose metrics. (default: "/metrics")
mongodb_exporter 'main' do
action %i[install enable start]
endThe mysqld_exporter resource supports running multiple copies of the MySQL exporter on the same system.
collector_flagsSpecify which collector flags you wish to use. default: see beloconfig_my_cnfPath to .my.cnf file to read MySQL credentials from. (default: ~/.my.cnf)data_source_nameMySQL connection stringinstance_namename of MySQL exporter instance. (name attribute)log_formatIf set use a syslog logger or JSON logging. Example: logger:syslog?appname=bob&local=7 or logger:stdout?json=true. Defaults to stderr.log_levelOnly log messages with the given severity or above. Valid levels: [debug, info, warn, error, fatal].userSystem user to run exporter as. (default "mysql")web_listen_addressAddress to listen on for web interface and telemetry. (default "127.0.0.1:9104")web_telemetry_pathPath under which to expose metrics. (default "/metrics")
(default collector flags)
'\
-collect.global_status \
-collect.engine_innodb_status \
-collect.global_variables \
-collect.info_schema.clientstats \
-collect.info_schema.innodb_metrics \
-collect.info_schema.processlist \
-collect.info_schema.tables.databases \
-collect.info_schema.tablestats \
-collect.slave_status \
-collect.binlog_size \
-collect.perf_schema.tableiowaits \
-collect.perf_schema.indexiowaits \
-collect.perf_schema.tablelocks'
mysqld_exporter 'main' do
data_source_name '/'
config_my_cnf '~/.my/cnf'
user 'mysql'
endcollector_diskstats_ignored_devicesRegexp of devices to ignore for diskstats. (default: "^(ram|loop|fd|(h|s|v|xv)d[a-z]|nvme\d+n\d+p)\d+$")collector_filesystem_ignored_fs_typesRegexp of filesystem types to ignore for filesystem collector. (default: "^(sys|proc|auto)fs$")collector_filesystem_ignored_mount_pointsRegexp of mount points to ignore for filesystem collector. (default: "^/(sys|proc|dev)($|/)")collector_netclass_ignored_devicesRegexp of net devices to blacklist (mutually exclusive to device-whitelist) (default: "^$")collector_netdev_device_blacklistRegexp of net devices to ignore for netdev collector. (default: "^$")collector_netdev_device_whitelistRegexp of net devices to whitelist (mutually exclusive to device-blacklist) (default: "^$")collector_ntp_ip_ttlIP TTL to use while sending NTP query. (default: "1")collector_ntp_local_offset_toleranceOffset between local clock and local ntpd time to tolerate. (default: "1ms")collector_ntp_max_distanceMax accumulated distance to the root. (default: "3.46608s")collector_ntp_protocol_versionNTP protocol version. (default: "4")collector_ntp_server_is_localCertify that collector.ntp.server address is the same local host as this collector.collector_ntp_serverNTP server to use for ntp collector. (default: "127.0.0.1")collector_qdisc_fixturesTest fixtures to use for qdisc collector end-to-end testing.collector_perf_cpusspecify a list of alternate CPUs.collector_runit_servicedirPath to runit service directory.collector_supervisord_urlXML RPC endpoint. (default: "http://localhost:9001/RPC2")collector_systemd_enable_restarts_metricsEnables service unit metric service_restart_totalcollector_systemd_enable_start_time_metricsEnables service unit metric unit_start_time_secondscollector_systemd_enable_task_metricsEnables service unit tasks metrics unit_tasks_current and unit_tasks_maxcollector_systemd_privateEstablish a private, direct connection to systemd without dbus.collector_systemd_unit_blacklistRegexp of systemd units to blacklist. Units must both match whitelist and not match blacklist to be included. (default: ".+\.(automount|device|mount|scope|slice)")collector_systemd_unit_whitelistRegexp of systemd units to whitelist. Units must both match whitelist and not match blacklist to be included. (defaut: ".+")collector_textfile_directoryDirectory to read text files with metrics from. (default: "")collector_vmstat_fieldsRegexp of fields to return for vmstat collector. (default: "^(oom_kill|pgpg|pswp|pg.fault).")collector_wifi_fixturesTest fixtures to use for wifi collector metrics.collectors_disabledAn array of explicitly disabled collectors.collectors_enabledAn array of explicitly enabled collectors.custom_optionsUse for your configuration if defined proterties are not satisfying your needs.log_formatWhere to send log files. (default: "logger:stdout")log_levelOnly log messages with the given severity or above. Valid levels: [debug, info, warn, error, fatal]path_procfsprocfs mountpoint. (default: "/proc")path_rootfsrootfs mountpoint. (default: "/")path_sysfssysfs mountpoint. (default: "/sys")userSystem user to run node exporter as. (default "root") change this to a non-root user if possibleweb_disable_exporter_metricsExclude metrics about the exporter itself. (promhttp_, process_, go_*)web_listen_addressAddress to listen on for web interface and telemetry. (default: ":9100")web_max_requestsMaximum number of parallel scrape requests. Use 0 to disable. (default: "40")web_telemetry_pathPath under which to expose metrics. (default: "/metrics")
listen_ip = '127.0.0.1'
node_exporter 'main' do
web_listen_address "#{listen_ip}:9100"
action [:enable, :start]
endor just set
node['prometheus_exporters']['listen_interface']node['prometheus_exporters']['node']['collectors']node['prometheus_exporters']['node']['textfile_directory']node['prometheus_exporters']['node']['ignored_net_devs']node['prometheus_exporters']['node']['user']
and add recipe['prometheus_exporters::node] to your run_list.
The postgres_exporter resource supports running multiple copies of PostgreSQL exporter the same system. This is useful if you have multiple copies of PostgreSQL running on the same system (eg. different versions) or you are connecting to multiple remote PostgreSQL servers across the network.
constant_labelsA list of label=value separated by comma(,).data_source_namePostgreSQL connection string. E.g.postgresql://login:password@hostname:port/dbnamedata_source_pass_fileThe same as above but reads the password from a file.data_source_passWhen usingdata_source_uri, this option is used to specify the password to connect with.data_source_uriAn alternative todata_source_namewhich exclusively accepts the raw URI without a username and password component.data_source_user_fileThe same, but reads the username from a file.data_source_userWhen usingdata_source_uri, this option is used to specify the username.disable_default_metricsUse only metrics supplied fromqueries.yamlvia--extend.query-path.extend_query_pathPath to a YAML file containing custom queries to run.instance_namename of PostgreSQL exporter instance. (name attribute)log_formatIf set use a syslog logger or JSON logging. Example: logger:syslog?appname=bob&local=7 or logger:stdout?json=true. Defaults to stderr.log_levelOnly log messages with the given severity or above. Valid levels: [debug, info, warn, error, fatal].userSystem user to run exporter as. (default "postgres")web_listen_addressAddress to listen on for web interface and telemetry. (default "127.0.0.1:9187")web_telemetry_pathPath under which to expose metrics. (default "/metrics")
postgres_exporter '9.5_main' do
data_source_name 'postgresql://localhost:5432/example'
user 'postgres'
endMonitor resource usage of processes or process groups. Read more here.
childrenIf a proc is tracked, track with it any children that aren't part of their own group (default: true)config_pathOptional config file for configuring which processes to monitor. The example below monitors all processes on the system. Alternately specific process names and groups may be specified using theproc_namesandname_mappingpropertiescustom_optionsUse for your configuration if defined properties are not satisfying your needs.debugPrint debug information to the log. default: falsenamemappingComma-separated list of alternatingname,regexpvalues. It allows assigning a name to a process based on a combination of the process name and command lineprocfsprocfs mountpoint. Default: "/proc"procnamesComma separated list of process names to monitorrecheckOn each scrape the process names are re-evaluated. This is disabled by default as an optimization, but since processes can choose to change their names, this may result in a process falling into the wrong group if we happen to see it for the first time before it's assumed its proper name. Default: falsethreadsreport on per-threadname metrics as welluserUser under whom to start process exporter. (default: "root")web_listen_addressAddress to listen on for web interface and telemetry. Default: ":9256"web_telemetry_pathPath for the metrics endpoint. Default: '/metrics'
process_exporter 'main' do
config_path "/opt/process-exporter-#{node['prometheus_exporters']['process']['version']}.linux-amd64/all.yml"
action %i[install enable]
end
file "/opt/process-exporter-#{node['prometheus_exporters']['process']['version']}.linux-amd64/all.yml" do
content <<HERE
process_names:
- name: "{{.comm}}"
cmdline:
- '.+'
here
notifies :start, 'process_exporter[main]'
end
cafilePath to root certificate for access management plugin. Just needed if self signed certificate is used. Will be ignored if the file does not existcertfilePath to client certificate used to verify the exporter's authenticity. Will be ignored if the file does not existexclude_metricsMetric names to exclude from export. Comma-seperated string or an array. e.g. "recv_oct,recv_cnt". See exporter_*.go for namesinclude_queuesRegex queue filter. Just matching names are exportedinclude_vhostRegex vhost filter. Only queues in matching vhosts are exportedkeyfilePath to private key used with certificate to verify the exporter's authenticity. Will be ignored if the file does not existlog_levelLog level. Possible values: "debug", "info", "warning", "error", "fatal", or "panic"max_queuesMax number of queues before we drop metrics (disabled if set to 0)output_formatLog ouput format. TTY and JSON are suportedpublish_addrListening host/IP for the exporterpublish_portListening port for the exporterrabbit_capabilitiesComma-separated list or an array of extended scraping capabilities supported by the target RabbitMQ serverrabbit_exportersList of enabled modules. "connections" and shovel are disabled by defaultrabbit_passwordPassword for rabbitMQ management pluginrabbit_timeoutTimeout in seconds for retrieving data from management pluginrabbit_urlUrl to rabbitMQ management plugin (must start with http(s)://)rabbit_userUsername for rabbitMQ management plugin. User needs monitoring tag!skip_queuesRegex, matching queue names are not exported (useful for short-lived rpc queues). First performed INCLUDE, after SKIPskip_vhostRegex, matching vhost names are not exported. First performs INCLUDE_VHOST, then SKIP_VHOSTskiverifyWill ignore certificate errors of the management plugin if true (default: "false")userUser under whom to start rabbitmq exporter. (default: "root")
rabbitmq_exporter 'main' do
rabbit_user 'Roger'
rabbit_exporters %w[exchange node]
endImportant: For redis exporter version equal or lower than 0.34.1 use version 0.13.1 of this cookbook.
check_keysComma separated list of keys to export value and length/size, eg:db3=user_countwill export keyuser_countfrom db3. db defaults to0if omitted. (default: "")check_single_keysComma separated list of single keys to export value and length/size.config_commandWhat to use for the CONFIG command (default: "CONFIG")connection_timeoutTimeout for connection to Redis instance (default: "15s")debugEnable or disable debug output. (default: false)include_system_metricsWhether to include system metrics like e.g. redis_total_system_memory_bytesis_tile38Whether to scrape Tile38 specific metrics.log_formatIn what format should logs be shown. (default: "txt")namespaceNamespace for the metrics. (default: "redis")redis_addrAddress of one or more redis nodes, comma separated. (default: "redis://localhost:6379")redis_only_metricsWhether to export go runtime metrics also.redis_passwordPassword to use when authenticating to Redis. (default: "")scriptPath to Lua Redis script for collecting extra metrics.skip_tls_versificationWhether to to skip TLS verification.userUser under whom to start redis exporter. (default: "root")web_listen_addressaddress to listen on for web interface and telemetry. (default: "0.0.0.0:9121")web_telemetry_pathPath under which to expose metrics. (default: "/metrics")
redis_exporter 'main' do
redis_addr 'redis://db01.example.com:6379,redis://10.0.0.1:6379'
redis_password 'password_one,password_two'
redis_alias 'example_production,example_staging'
endThis exporter needs a custom generated config file. Read more here and here. For test purposes and the most basic usage you can grab a default snmp.yml which is located here: /opt/snmp_exporter-PASTE_CURRENT_VERSION.linux-amd64/snmp.yml
config_filedefault: '/etc/snmp_exporter/snmp.yaml'custom_optionsAny other raw options for your configuration if defined proterties are not satisfying your needs.log_formatWhere to send log files. (default: "logger:stdout")log_levelOnly log messages with the given severity or above. Valid levels: [debug, info, warn, error, fatal]snmp_wrap_large_countersWrap 64-bit counters to avoid floating point rounding.userUser under whom to start snmp exporter. (default: "root")web_listen_addressAddress to listen on for web interface and telemetry. (default: ":9116")
snmp_exporter 'main' do
config_file "/opt/snmp_exporter-#{node['prometheus_exporters']['snmp']['version']}.linux-amd64/snmp.yml"
endMonitor statsd metrics and stats. Read more here.
log_formatWhere to send log files. (default: "logger:stdout")log_levelOnly log messages with the given severity or above. Valid levels: [debug, info, warn, error, fatal]. (default: "info")statsd_listen_mapping_configMetric mapping configuration file namestatsd_listen_read_bufferSize (in bytes) of the operating system's transmit read buffer associated with the UDP or Unixgram connectionstatsd_listen_tcpTCP address on which to receive statsd metric linesstatsd_listen_udpUDP address on which to receive statsd metric linesstatsd_listen_unixgram_modeUnixgram socket permission modestatsd_listen_unixgramUnixgram socket path on which to receive statsd metric linesuserUser under whom to start the exporter. (default: "root")web_listen_addressAddress to listen on for web interface and telemetry. (default: "0.0.0.0:9102")web_telemetry_pathPath under which to expose metrics. (default: "/metrics")
statsd_exporter 'main' do
statsd_listen_udp "9125"
user 'statsd'
endUse the given defaults or set the attributes...
node['prometheus_exporters']['listen_interface']node['prometheus_exporters']['statsd']['port']node['prometheus_exporters']['statsd']['listen_udp']node['prometheus_exporters']['statsd']['listen_tcp']node['prometheus_exporters']['statsd']['listen_unixgram']node['prometheus_exporters']['statsd']['listen_unixgram_mode']node['prometheus_exporters']['statsd']['mapping_config']node['prometheus_exporters']['statsd']['read_buffer']node['prometheus_exporters']['statsd']['user']
and add recipe['prometheus_exporters::statsd] to your run_list.
docker_container_nameDocker container name to exec varnishstat in.exit_on_errorsExit process on scrape errors. (default: "false")nvarnishstat -n value.Nvarnishstat -N value.userUser under whom to start varnish exporter. (default: "root")varnishstat_pathPath to varnishstat. (default: "varnishstat")verboseVerbose logging. (default: "false")web_listen_addressAddress on which to expose metrics. (default: ":9131")web_telemetry_pathPath under which to expose metrics. (default: "/metrics")with_go_metricsExport go runtime and http handler metrics. (default: "false")
varnish_exporter 'main' do
varnishstat_path "/my/own/varnishstat"
web_listen_address "1.2.3.4:9132"
web_telemetry_path "/_metrics"
user "my_user"
endUse the given defaults or set the attributes...
node['prometheus_exporters']['listen_interface']node['prometheus_exporters']['varnish']['varnishstat_path']node['prometheus_exporters']['varnish']['telemetry_path']node['prometheus_exporters']['varnish']['N']node['prometheus_exporters']['varnish']['docker_container_name']node['prometheus_exporters']['varnish']['exit_on_errors']node['prometheus_exporters']['varnish']['n']node['prometheus_exporters']['varnish']['verbose']node['prometheus_exporters']['varnish']['with_go_metrics']node['prometheus_exporters']['varnish']['user']
and add recipe['prometheus_exporters::varnish] to your run_list.
Expects the Chocolatey package manager to already be installed. This is up to individuals to provide by including the Chocolatey cookbook in their own wrapper cookbooks.
enabled_collectors, String, default: 'cpu,cs,logical_disk,net,os,service,system'listen_address, String, default: '0.0.0.0'listen_port, String, default: '9182'metrics_path, Strin, default: '/metrics'version, String, default: '0.2.7'
Use the given defaults or set the attributes...
node['prometheus_exporters']['wmi']['version']['listen_interface']node['prometheus_exporters']['wmi']['listen_address']node['prometheus_exporters']['wmi']['listen_port']node['prometheus_exporters']['wmi']['metrics_path']
and add recipe['prometheus_exporters::wmi] to your run_list.
nginx_retries, String, default: 5nginx_retry_interval, String, default: 5snginx_scrape_uri, String, default: 'http://127.0.0.1:83/nginx_status'nginx_ssl_ca_cert, Stringnginx_ssl_client_cert, Stringnginx_ssl_client_key, Stringnginx_ssl_verify, [true, false], default: falsenginx_timeout, String, default: 5sprometheus_const_labels, String, default: ""web_listen_address, String, default: ':9113'web_telemetry_path, String, default: '/metrics'
nginx_exporter 'main' do
action %i(install enable start)
endEach exporter will set an attribute when it's enabled, in the form of node['prometheus_exporters'][exporter_name]['enabled']. This makes it possible to search for
exporters within your environment using knife search or from within other cookbooks using a query such as:
knife search node 'prometheus_exporters_node_enabled:true'
This query will return all nodes with configured node exporters which can be used for automatically configuring Prometheus servers.
- The snmp_exporter requires a configuration file that is usually created by a config generator. Currently this functionality must be provided by a wrapper cookbook.