Change:
After starting kubernetes cluster on GCE with ./kube-, I cannot connect to grafana dashboard.
It might be related to
How are you trying to access the dashboard - via the proxy or using the nodeIP ?
I'm trying to access grafana via host ip of the node. This is the address written by kube- ``Grafana dashboard will be available at http://XXX.'' Is there a proxy for grafana? AFAIK, we have services with forwarding rules only for elasticsearch and kibana.
We also tried to connect using api proxy (http://localhost:8001/api/v1beta1/proxy/services/monitoring-grafana) and we see sth weird like "{{}}".
That looks like angular crashed part way through. What does the javascript console in your browser show? Brendan On Feb 24, 2015 5:18 AM, "Piotr Szczesniak" wrote:
monitoring-grafana:8 GET http://localhost:8001/api/v1beta1/proxy/ns/default/services/monitoring- monitoring-grafana:11 GET http://localhost:8001/api/v1beta1/proxy/ns/default/services/monitoring- monitoring-grafana:13 Uncaught ReferenceError: require is not definedmonitoring-grafana:13 (anonymous function) monitoring-grafana:19 GET http://localhost:8001/api/v1beta1/proxy/ns/default/services/monitoring-
is it still possible to connect to grafa using nodeIP?
Yes. It should still be possible. The firewall rules are setup on GCE by default to access Grafana. I assume you are running on GCE. , Piotr Szczesniak wrote:
Can you check if firewall rules are setup to access Grafana? , Vishnu Kannan wrote:
I set up cluster using hack/dev-build-and- In Google Developer Console under Compute-Network Load Balancing-Forwarding Rules I can see only the following entries: elasticsearch-logging us-central1 104.154.82.11 TCP/9200 elasticsearch-logging kibana-logging us-central1 104.154.82.224 TCP/5601 kibana-logging
Can you look at "Firewall rules"? , Piotr Szczesniak
OK. Seems that grafana is working fine, it is available at: https://<masterIP/api/v1beta1/proxy/services/monitoring-grafana/ Message printed by kube- is bit incorrect, I'll fix it.
Thanks for the fix Closing this issue!

Discussion:
gcloud compute firewall-rules create "${INSTANCE_PREFIX}-monitoring-heapster" --project "${PROJECT}"  --allow tcp:80 tcp:8083 tcp:8086 --target-tags="${MINION_TAG}" --network="${NETWORK}" <del> local kubectl="${KUBE_ROOT}/cluster/kubectl.sh" local grafana_host="" echo "waiting for monitoring pods to be scheduled." for i in `seq 1 10`; do grafana_host=$("${kubectl}" get pods -l name=influxGrafana -o template -t {{range.items}}{{.currentState.hostIP}}:{{end}} | sed s/://g) if [[ ${grafana_host} != *"<"* ]]; then break fi sleep 10 done if [[ ${grafana_host} != *"<"* ]]; then echo echo -e "${color_green}Grafana dashboard will be available at ${color_yellow}http://${grafana_host}${color_green}. Wait for the monitoring dashboard to be online.${color_norm}" echo else echo -e "${color_red}Monitoring pods failed to be scheduled!${color_norm}" fi </del> <ins> echo echo -e "${color_green}Grafana dashboard will be available at ${color_yellow}https://${KUBE_MASTER_IP}/api/v1beta1/proxy/services/monitoring-grafana/${color_green}. Wait for the monitoring dashboard to be online.${color_norm}" echo </ins> } function teardown-monitoring-firewall {