# Access Grafana Dashboard

**URL:** <https://forums.suse.com/t/access-grafana-dashboard/7336>\
**Category:** Rancher 1.x\
**Created:** [September 15, 2017, 9:51am UTC](https://forums.suse.com/t/access-grafana-dashboard/7336 "2017-09-15T09:51:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Parth6288](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/parth6288/32/2822_2.png) [@Parth6288](https://forums.suse.com/u/Parth6288)\
**Post date:** [September 15, 2017, 9:51am UTC](https://forums.suse.com/t/access-grafana-dashboard/7336/1 "2017-09-15T09:51:10Z")

</div>

I have set up a 3 node kubernetes host cluster using rancher. I want to use the monitoring-grafana service which is installed by default on the nodes. I change the service type of the monitoring grafana service to Nodeport to expose it to a specific port. However i am still unable to access it. Below are the config details.

[https://pastebin.com/ygZDhKP9](https://pastebin.com/ygZDhKP9)

---

<div class="post-metadata">

**Author:** ![jrosengren](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/jrosengren/32/2831_2.png) [@jrosengren](https://forums.suse.com/u/jrosengren)\
**Post date:** [September 16, 2017, 3:41pm UTC](https://forums.suse.com/t/access-grafana-dashboard/7336/2 "2017-09-16T15:41:12Z")

</div>

port-fowarding should work:

`kubectl port-forward -n kube-system "$(kubectl get -n kube-system pod --selector=k8s-app=grafana -o jsonpath='{.items..metadata.name}')" 3000`

---

<div class="post-metadata">

**Author:** ![Parth6288](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/parth6288/32/2822_2.png) [@Parth6288](https://forums.suse.com/u/Parth6288)\
**Post date:** [September 18, 2017, 7:55am UTC](https://forums.suse.com/t/access-grafana-dashboard/7336/3 "2017-09-18T07:55:21Z")

</div>

> [@jrosengren](#):
>
> kubectl port-forward -n kube-system “$(kubectl get -n kube-system pod --selector=k8s-app=grafana -o jsonpath=‘{.items…metadata.name}’)” 3000

Hi @jrosengren I ran the above command and it started listening on port 3000, however i was unable to access it using \<Rancher\_server\_IP\>:3000

---

<div class="post-metadata">

**Author:** ![Parth6288](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/parth6288/32/2822_2.png) [@Parth6288](https://forums.suse.com/u/Parth6288)\
**Post date:** [September 18, 2017, 8:14am UTC](https://forums.suse.com/t/access-grafana-dashboard/7336/4 "2017-09-18T08:14:38Z")

</div>

Below is the out put of the kubectl cluster-info command : and also the screenshot of the grafana dashboard when trying to access the mentioned url in the info:

> ubuntu@Host3:~$ kubectl cluster-info  
> Kubernetes master is running at https://\<Rancher\_IP\>:8080/r/projects/1a5/kubernetes:6443  
> Heapster is running at https://\<Rancher\_IP\>:8080/r/projects/1a5/kubernetes:6443/api/v1/namespaces/kube-system/services/heapster/proxy  
> KubeDNS is running at https://\<Rancher\_IP\>:8080/r/projects/1a5/kubernetes:6443/api/v1/namespaces/kube-system/services/kube-dns/proxy  
> kubernetes-dashboard is running at https://\<Rancher\_IP\>:8080/r/projects/1a5/kubernetes:6443/api/v1/namespaces/kube-system/services/kubernetes-dashboard/proxy  
> monitoring-grafana is running at https://\<Rancher\_IP\>:8080/r/projects/1a5/kubernetes:6443/api/v1/namespaces/kube-system/services/monitoring-grafana/proxy  
> monitoring-influxdb is running at https://\<Rancher\_IP\>:8080/r/projects/1a5/kubernetes:6443/api/v1/namespaces/kube-system/services/monitoring-influxdb/proxy  
> tiller-deploy is running at https://\<Rancher\_IP\>:8080/r/projects/1a5/kubernetes:6443/api/v1/namespaces/kube-system/services/tiller-deploy/proxy

![rancherdashboard](https://us1.discourse-cdn.com/flex022/uploads/suse/original/2X/4/4ec9e4200d9f0838b91ba227794174b29f25f8af.JPG)

---

<div class="post-metadata">

**Author:** ![jrosengren](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/jrosengren/32/2831_2.png) [@jrosengren](https://forums.suse.com/u/jrosengren)\
**Post date:** [September 18, 2017, 1:33pm UTC](https://forums.suse.com/t/access-grafana-dashboard/7336/5 "2017-09-18T13:33:01Z")

</div>

After you create the port-forward through kubectl, you would access via [http://localhost:3000](http://localhost:3000)

---

<div class="post-metadata">

**Author:** ![Parth6288](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/parth6288/32/2822_2.png) [@Parth6288](https://forums.suse.com/u/Parth6288)\
**Post date:** [September 19, 2017, 6:15am UTC](https://forums.suse.com/t/access-grafana-dashboard/7336/6 "2017-09-19T06:15:18Z")

</div>

thanks @jrosengren. I exposed the grafana service type as loadbalancer and was able to access the dashboard.
