Comments (5)
@knackjax can you provide an example how the alert rules must be for prometheus2? Can you also provide a PR?
from puppet-prometheus.
@tuxmea https://prometheus.io/blog/2017/06/21/prometheus-20-alpha3-new-rule-format/
I'm also taking a look at this, but if someone beats me to a PR, all the better! 😉
from puppet-prometheus.
Ideally, we'd support both formats, and maybe also take the chance and fix #69 while we're at it.
from puppet-prometheus.
I have a hack for this, which basically uses promtool to update to 2.0 syntax. We are just evaluating prometheus for our needs right now if we adopt it we will try to submit a cleaner solution
exec { "promtool update ${alertfile_name}":
user => $user,
group => $group,
command => "${bin_dir}/promtool update rules ${config_dir}/${alertfile_name}",
require => [
Package[$package_name],
File["${config_dir}/${alertfile_name}"]
],
unless => "/usr/bin/test -f ${config_dir}/${alertfile_name}.yml",
subscribe => File["${config_dir}/${alertfile_name}"]
}
# ensure file was created
file { "${config_dir}/${alertfile_name}.yml":
ensure => 'file',
owner => $user,
group => $group,
validate_cmd => "${bin_dir}/promtool check rules ${config_dir}/${alertfile_name}.yml",
}
from puppet-prometheus.
thanks @jhooyberghs for providing the fix!
from puppet-prometheus.
Related Issues (20)
- node_exporter.pp does not provide direct way to override the listening port
- ipmi exporter does not support remote ipmi HOT 1
- Add support for managing kafka node exporter
- deprecation of `source_match(_re)` and `target_match(_re)`
- mongodb_exporter doesn't allow overriding service and binary name
- Trouble using prometheus::server::collect_tag. HOT 1
- node_exporter change default port 9100 HOT 2
- Support scrape_config_files option HOT 3
- Received SIGTERM, exiting gracefully HOT 3
- Remove prometheus 1.x support
- Remove support for alertmanager < 0.13.0
- Drop support for redis_exporter < 1.0.0
- "job_name: prometheus" duplication HOT 1
- replace systemd unit templates with systemd::manage_unit
- Dependency Dashboard
- Dependency Dashboard
- Drop suppoprt for apache_exporter < 1.x HOT 1
- move all exporter versions to the manifests.
- Drop support for elasticsearch_exporter < 1.1.0
- Archlinux prometheus server ui bug with version > 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from puppet-prometheus.