1.4 KiB
1.4 KiB
Migration
This cookbook has been migrated from recipes and attributes to custom resources.
Removed Entry Points
The recipes/ and attributes/ directories were removed. Wrapper cookbooks should call the resources directly and pass property values instead of overriding node['prometheus'] attributes.
Legacy runit, upstart, and SysV init behavior was removed. Services are managed with Chef's systemd_unit resource.
Resource Mapping
Use these resources in place of the old recipes:
prometheus_installreplacesprometheus::binary,prometheus::shell_binary, andprometheus::source.prometheus_configreplaces the Prometheus configuration portion ofprometheus::default.prometheus_servicereplacesprometheus::service.prometheus_alertmanager_installreplacesprometheus::alertmanager_binaryandprometheus::alertmanager_source.prometheus_alertmanager_configreplaces the Alertmanager configuration portion ofprometheus::alertmanager.prometheus_alertmanager_servicereplaces the Alertmanager service portion ofprometheus::alertmanager.prometheus_jobremains available and now uses explicit properties instead of node attributes.
Example
prometheus_install 'prometheus'
prometheus_config 'prometheus'
prometheus_job 'prometheus' do
scrape_interval '15s'
target 'localhost:9090'
end
prometheus_service 'prometheus'