Collect metrics from Grafana MapR

Prerequisites:
1. CollectD
2. Grafana
3. OpenTSDB (+AsyncHBase)

1. CollectD:

Collectd is a daemon which collects system and application performance metrics periodically and provides mechanisms to store the values in a variety of ways
Click here  for more

2. Grafana:

Grafana is an open source metric analytics & visualization suite. It is most commonly used for visualizing time series data for infrastructure and application analytics but many use it in other domains including industrial sensors, home automation, weather, and process control.
Click here for more

3. OpenTSDB:

OpenTSDB is a scalable, distributed time series database
Click here for more

Installation:

1. Install collectd (On all nodes) and grafana (on at least one node)
yum install mapr-collectd mapr-grafana


2. Install opentsdb (On one or more nodes)
yum install mapr-collectd mapr-opentsdb


3. Run configure.sh to configure
/opt/mapr/server/configure.sh -R -OT <comma-separate list of OpenTSDB nodes>


4. To start collecting metrics for the NodeManager, ResourceManager, HBaseMaster, or HBaseRegionServer services, restart these services on each node where they are installed.


maprcli node services -name nodemanager -nodes <space separated list of hostname/IPaddresses> -action restart

maprcli node services -name resourcemanager -nodes <space separated list of hostname/IPaddresses> -action restart 

maprcli node services -name hbmaster -nodes <space separated list of hostname/IPaddresses> -action restart

maprcli node services -name hbregionserver -nodes <space separated list of hostname/IPaddresses> -action restart

5. Access the Grafana UI

You can launch the Grafana UI from the MCS or directly from a web browser.

  1. Use one of the following method to launch the Grafana UI:
    • From the MCS, select the Grafana view. After you select the Grafana view, you may also need to select the Pop-out page into a tab option.
    • From a web browser, launch the following URL: http://<IPaddressOfGrafanaNode>:3000
  2. Provide user credentials.
    • User: admin
    • Password: admin
  3. Click Log in


6. Update the OpenTSDB Data Source For Grafana

Grafana connects to a single OpenTSDB node to read metrics. In the event that Grafana is unable to read metrics due to the failure of an OpenTSDB node, configure Grafana to connect to an available OpenTSDB node.

Note: The OpenTSDB node that Grafana connects to by default is determined by the first OpenTSDB node that was specified when the cluster was configured to use MapR Monitoring

  1. Use one of the following method to launch the Grafana UI:
    • From the MCS, select the Grafana view. After you select the Grafana view, you may also need to select the Pop-out page into a tab option.
    • From a web browser, launch the following URL: http://<IPaddressOfGrafanaNode>:3000
  2. Click the Grafana icon in the upper left corner to toggle the side menu bar.
  3. Select Data Sources from the menu.
  4. Click on the MapRMonitoringOpenTSDB data source.
  5. In the Http setting section, update the Url field to point to an active OpenTSDB node.
  6. Click Save & Test.





Source: http://maprdocs.mapr.com/home/AdvancedInstallation/InstallMonitoring.html


Previous
Next Post »