https://netmaker.org logo
Can you change the Grafana configured data sources...
# netmaker
p
Can you change the Grafana configured data sources to connect to Prometheus and Netmaker-Exporter internally within Docker? For example, PROMETHEUS_HOST: "prometheus:9090" and NETMAKER_METRICS_TARGET: "netmaker-exporter:8085". Then we would not need to expose Prometheus or Netmaker-Exporter to the internet.
b
yes we could , this was exposed because people with their own prometheus and grafana setup can point to these data sources
p
Fair enough, but the default installation using co-hosted Prometheus and Grafana should be secure by default.
b
but all the connections are secured by basic auth which will be using your
LICENSE_KEY
as password that way it is still secure
p
Not exposing the services to the internet at all would be more secure 😆 Considering that Netmaker-Exporter already connects to MQ internally within Docker, it's reasonable to make that the default option for connecting it to Prometheus too (and Prometheus to Netmaker-Exporter, and Grafana to both the others) and treating external Prometheus/Grafana as the exception
b
okay agreed make sense to provide external prom/grafana as a option
3 Views