Skip to content

Commit

Permalink
add puppet resource exporting for all exporters
Browse files Browse the repository at this point in the history
  • Loading branch information
costela committed Apr 8, 2019
1 parent b71f222 commit 1c9220b
Show file tree
Hide file tree
Showing 20 changed files with 35 additions and 6 deletions.
2 changes: 0 additions & 2 deletions manifests/apache_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@
String[1] $config_mode = $prometheus::config_mode,
String[1] $arch = $prometheus::real_arch,
Stdlib::Absolutepath $bin_dir = $prometheus::bin_dir,
String[1] $scrape_job_name = 'apache',
) inherits prometheus {

#Please provide the download_url for versions < 0.9.0
Expand Down Expand Up @@ -136,6 +135,5 @@
manage_service => $manage_service,
export_scrape_job => true,
scrape_port => 9117,
scrape_job_name => $scrape_job_name,
}
}
2 changes: 2 additions & 0 deletions manifests/beanstalkd_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -153,5 +153,7 @@
service_ensure => $service_ensure,
service_enable => $service_enable,
manage_service => $manage_service,
export_scrape_job => true,
scrape_port => 8080,
}
}
2 changes: 2 additions & 0 deletions manifests/blackbox_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -164,5 +164,7 @@
service_ensure => $service_ensure,
service_enable => $service_enable,
manage_service => $manage_service,
export_scrape_job => true,
scrape_port => 9115,
}
}
2 changes: 2 additions & 0 deletions manifests/collectd_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -118,5 +118,7 @@
service_ensure => $service_ensure,
service_enable => $service_enable,
manage_service => $manage_service,
export_scrape_job => true,
scrape_port => 9103,
}
}
2 changes: 2 additions & 0 deletions manifests/consul_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -164,5 +164,7 @@
service_ensure => $service_ensure,
service_enable => $service_enable,
manage_service => $manage_service,
export_scrape_job => true,
scrape_port => 9107,
}
}
2 changes: 2 additions & 0 deletions manifests/elasticsearch_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -137,5 +137,7 @@
service_ensure => $service_ensure,
service_enable => $service_enable,
manage_service => $manage_service,
export_scrape_job => true,
scrape_port => 9114,
}
}
2 changes: 2 additions & 0 deletions manifests/graphite_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -118,5 +118,7 @@
service_ensure => $service_ensure,
service_enable => $service_enable,
manage_service => $manage_service,
export_scrape_job => true,
scrape_port => 9108,
}
}
2 changes: 2 additions & 0 deletions manifests/haproxy_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@
service_ensure => $service_ensure,
service_enable => $service_enable,
manage_service => $manage_service,
export_scrape_job => true,
scrape_port => 9101,
}

}
2 changes: 2 additions & 0 deletions manifests/mesos_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -132,5 +132,7 @@
service_ensure => $service_ensure,
service_enable => $service_enable,
manage_service => $manage_service,
export_scrape_job => true,
scrape_port => 9105,
}
}
2 changes: 2 additions & 0 deletions manifests/mongodb_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -130,5 +130,7 @@
service_ensure => $service_ensure,
service_enable => $service_enable,
manage_service => $manage_service,
export_scrape_job => true,
scrape_port => 9216,
}
}
2 changes: 2 additions & 0 deletions manifests/mysqld_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -165,5 +165,7 @@
service_ensure => $service_ensure,
service_enable => $service_enable,
manage_service => $manage_service,
export_scrape_job => true,
scrape_port => 9104,
}
}
2 changes: 2 additions & 0 deletions manifests/nginx_vts_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@
service_ensure => $service_ensure,
service_enable => $service_enable,
manage_service => $manage_service,
export_scrape_job => true,
scrape_port => 9913,
}

}
2 changes: 0 additions & 2 deletions manifests/node_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@
Optional[Array[String]] $collectors = undef,
Array[String] $collectors_enable = [],
Array[String] $collectors_disable = [],
String $scrape_job_name = 'node',
) inherits prometheus {

# Prometheus added a 'v' on the realease name at 0.13.0
Expand Down Expand Up @@ -169,6 +168,5 @@
manage_service => $manage_service,
export_scrape_job => true,
scrape_port => 9100,
scrape_job_name => $scrape_job_name,
}
}
2 changes: 2 additions & 0 deletions manifests/postgres_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -213,5 +213,7 @@
service_ensure => $service_ensure,
service_enable => $service_enable,
manage_service => $manage_service,
export_scrape_job => true,
scrape_port => 9187,
}
}
3 changes: 2 additions & 1 deletion manifests/process_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@
service_ensure => $service_ensure,
service_enable => $service_enable,
manage_service => $manage_service,
export_scrape_job => true,
scrape_port => 9256,
}

}
2 changes: 2 additions & 0 deletions manifests/rabbitmq_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -171,5 +171,7 @@
service_enable => $service_enable,
manage_service => $manage_service,
env_vars => $real_env_vars,
export_scrape_job => true,
scrape_port => 9090,
}
}
2 changes: 2 additions & 0 deletions manifests/redis_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -174,5 +174,7 @@
service_ensure => $service_ensure,
service_enable => $service_enable,
manage_service => $manage_service,
export_scrape_job => true,
scrape_port => 9121,
}
}
2 changes: 1 addition & 1 deletion manifests/server.pp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
Boolean $purge_config_dir = $prometheus::purge_config_dir,
Boolean $manage_user = $prometheus::manage_user,
Optional[Variant[Stdlib::HTTPurl, Stdlib::Unixpath, String[1]]] $external_url = $prometheus::external_url,
Array[Hash[String[1], Any]] $collect_scrape_jobs = [],
Array[Hash[String[1], Any]] $collect_scrape_jobs = $prometheus::collect_scrape_jobs,
) inherits prometheus {

if( versioncmp($version, '1.0.0') == -1 ){
Expand Down
2 changes: 2 additions & 0 deletions manifests/snmp_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -163,5 +163,7 @@
service_ensure => $service_ensure,
service_enable => $service_enable,
manage_service => $manage_service,
export_scrape_job => true,
scrape_port => 9116,
}
}
2 changes: 2 additions & 0 deletions manifests/varnish_exporter.pp
Original file line number Diff line number Diff line change
Expand Up @@ -125,5 +125,7 @@
service_ensure => $service_ensure,
service_enable => $service_enable,
manage_service => $manage_service,
export_scrape_job => true,
scrape_port => 9131,
}
}

0 comments on commit 1c9220b

Please sign in to comment.