Skip to content
This repository has been archived by the owner on May 31, 2023. It is now read-only.

Issues provisioning datasources on Grafana in private subnet #70

Closed
thejchap opened this issue Jul 8, 2018 · 2 comments
Closed

Issues provisioning datasources on Grafana in private subnet #70

thejchap opened this issue Jul 8, 2018 · 2 comments
Labels
enhancement New feature or request

Comments

@thejchap
Copy link
Contributor

thejchap commented Jul 8, 2018

All API calls use grafana_url as the base, however if Grafana is being provisioned on a server in a private subnet the public grafana_url may not always line up with the Grafana server DNS in the private subnet.

Example set up:

  • web-server Nginx on server in public subnet, reverse proxying https://monitoring.app.com/grafana to http://monitoring.production.app.com:3000
  • public monitoring.app.com is accessed from browser, resolved via public hosted zone
  • private monitoring.production.app.com is accessed by servers in the VPC, resolved via private hosted zone
  • grafana-server Grafana running on monitoring.production.app.com in the same VPC in a private subnet, exposing port 3000.

When running ansible-playbook, API calls get made to monitoring.app.com/grafana (configured via grafana_url) which is not correct. API calls should be made to monitoring.production.app.com

Open to solutions and also happy to open a PR after deciding how to handle this, maybe another variable grafana_api_url that can override grafana_url and is used for the API calls?

@paulfantom paulfantom added the enhancement New feature or request label Jul 8, 2018
@paulfantom
Copy link
Member

Adding grafana_api_url with default value of {{ grafana_url }} is a way to go. I don't see any other option which could work in this setup.

Could you create PR?

thejchap added a commit to thejchap/ansible-grafana that referenced this issue Jul 8, 2018
@lock
Copy link

lock bot commented Mar 24, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 24, 2019
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants