Member since
01-05-2016
1
Post
5
Kudos Received
1
Solution
My Accepted Solutions
Title | Views | Posted |
---|---|---|
2675 | 07-05-2016 07:50 PM |
07-05-2016
07:50 PM
5 Kudos
@Sunile Manjee
You can enable Grafana on the Tech Preview with these steps..
Execute the first 2 steps inside SSH Web Client (http://127.0.0.1:4200). you will need to replace "admin:admin" with the username:password you chose and then replace "ambari.server" with 127.0.0.1 (or whichever host you've installed it on) and "cluster.name" with the name of the cluster "Sandbox" by default (case-sensitive). "host.name" for step#2 would most likely be "sandbox.hortonworks.com" unless you have changed it.
Add the METRICS_GRAFANA component to Ambari:
curl -u admin:admin -H "X-Requested-By:ambari" -i -X POST
http://ambari.server:8080/api/v1/clusters/cluster.name/services/AMBARI_METRICS/components/METRICS_GRAFANA
Add METRICS_GRAFANA to a host in the cluster.
curl -u admin:admin -H "X-Requested-By:ambari" -i -X POST -d
'{"host_components":[{"HostRoles":{"component_name":"METRICS_GRAFANA"}}]}'
http://ambari.server:8080/api/v1/clusters/cluster.name/hosts?Hosts/host_name=host.name
From Ambari Web, browse to Services > Ambari Metrics and you will see Grafana is in the Install Pending… state. You need to complete the configuration of Grafana before installing and starting. To complete the configuration, click on Services > Ambari Metrics > Configs and you will need to enter the default Grafana Admin Password in the General section. Click Save. Browse to Hosts > host.name (i.e. the host.name used in the API call where you added Grafana). You will see the Grafana component is in an Install Pending… state. Use the Install Pending… action button and select Re-install. Once the install operation completes, select Start to start Grafana. To access Grafana, browse to Services > Ambari Metrics, select Quick Links and then choose Grafana. In VirtualBox, right click on your Sandbox VM > Settings > Network > Adapter 1 > Advanced > Port Forwarding Add the following 2 ports to be forwarded(top right icon with a + in it) name: grafana, protocol: TCP, HOST IP : 127.0.0.1, HOST Port: 3000, Guest Port: 3000
name: collector, protocol: TCP, HOST IP: 127.0.0.1, HOST Port: 6188, Guest Port: 6188
You should be able to access Grafana directly from http://127.0.0.1:3000/ now.
... View more