Skip to content
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

Merged
merged 1 commit into from Nov 15, 2017
Merged

add support for remote_read #109

merged 1 commit into from Nov 15, 2017

Conversation

lobeck
Copy link
Contributor

@lobeck lobeck commented Nov 15, 2017

required for prometheus 2 migration
https://prometheus.io/docs/prometheus/2.0/migration/#storage

example:

  prometheus::remote_read_configs:
    - url: 'http://somewhere:9090/api/v1/read'

@@ -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,
Copy link
Member

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') -%>
Copy link
Member

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?

Copy link
Contributor Author

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

@lobeck
Copy link
Contributor Author

lobeck commented Nov 15, 2017

the tests seem fine now, but i can't get the debian test to pass, any ideas?

@bastelfreak
Copy link
Member

Debian is our special snowflake. I've no idea why it never works on the first run, but always on the second.

@bastelfreak bastelfreak added the enhancement New feature or request label Nov 15, 2017
@bastelfreak bastelfreak merged commit 0719789 into voxpupuli:master Nov 15, 2017
Rovanion pushed a commit to Rovanion/puppet-prometheus that referenced this pull request May 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants