-
-
Notifications
You must be signed in to change notification settings - Fork 242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add support for remote_read #109
Conversation
@@ -144,6 +147,7 @@ | |||
Hash $global_config = $::prometheus::params::global_config, | |||
Array $rule_files = $::prometheus::params::rule_files, | |||
Array $scrape_configs = $::prometheus::params::scrape_configs, | |||
Array $remote_read_configs = $::prometheus::params::remote_read_configs, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Datatypes \o/
@@ -2,13 +2,15 @@ | |||
<% global_config = scope.lookupvar('::prometheus::global_config') -%> | |||
<% rule_files = scope.lookupvar('::prometheus::rule_files') -%> | |||
<% scrape_configs = scope.lookupvar('::prometheus::scrape_configs') -%> | |||
<% remote_read_configs = scope.lookupvar('::prometheus::remote_read_configs') -%> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what happens when we get an empty array here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it ends up in the config as "remote_read": []
and prometheus just ignores it
required for prometheus 2 migration https://prometheus.io/docs/prometheus/2.0/migration/#storage
the tests seem fine now, but i can't get the debian test to pass, any ideas? |
Debian is our special snowflake. I've no idea why it never works on the first run, but always on the second. |
add support for remote_read
required for prometheus 2 migration
https://prometheus.io/docs/prometheus/2.0/migration/#storage
example: