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

grafana_datasource does not retry HTTP requests #95

Open
gdhbashton opened this issue Jun 2, 2016 · 0 comments
Open

grafana_datasource does not retry HTTP requests #95

gdhbashton opened this issue Jun 2, 2016 · 0 comments

Comments

@gdhbashton
Copy link

From a blank machine (CentOS 7) everything provisions OK until datasources:

Notice: /Stage[main]/Grafana::Service/Service[grafana-server]/ensure: ensure changed 'stopped' to 'running'
Info: /Stage[main]/Grafana::Service/Service[grafana-server]: Unscheduling refresh on Service[grafana-server]
Error: /Stage[main]/Profile_grafana/Grafana_datasource[elasticsearch]: Could not evaluate: Network is unreachable - connect(2)
Error: /Stage[main]/Profile_grafana/Grafana_datasource[graphite]: Could not evaluate: Network is unreachable - connect(2)

There's not enough time for the service to actually be ready to accept connections. Executing the same 'Puppet run' again succeeds as expected. The send_request would ideally have some 'try once per second for five seconds' logic to make it more robust.

simonpasquier pushed a commit to simonpasquier/puppet-grafana that referenced this issue Jun 9, 2016
This fix for the issue bfraser#95 adds a fixed number of retries (5 attempts
with a 1 second interval between each) in case the Grafana server isn't
ready to serve the requests immediately.
bastelfreak pushed a commit to bastelfreak/puppet-grafana that referenced this issue Aug 15, 2022
cegeka-jenkins pushed a commit to cegeka/puppet-grafana that referenced this issue Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant