Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Is there a way to monitor disk IO? (diskstat)

Is there a way to monitor disk IO? (diskstat)

New Contributor

Something compariable to

diskstat_XXX_io_time 

diskstat_XXX_percent_io_time

metrics in ganglia?

It would be nice to view this in ambari-metrics

1 REPLY 1

Re: Is there a way to monitor disk IO? (diskstat)

Super Mentor

@Leonardo Apolonio

Ambari Metrics collector allows the user to send metrics to it in a particular format as described in the : https://cwiki.apache.org/confluence/display/AMBARI/Metrics+Collector+API+Specification


So you can write a custom script on every host to run regularly and provide the JSON like this:

Example:

{
    "metrics": [{
          "metricname": "test.diskstat_Metric",
          "appid": "testdiskstate",
          "hostname": "host1.example.com",
          "timestamp": 1520720082573,
          "starttime": 1520720082000,
          "metrics": {
            "1520720082573": 315
          }
    }]
}



Here you will need your custom script to produce the above kind of JSON format data and then post it to Abari Metrics Collector using http POST method.

Please review the following blog for similar implementation: AMSSMOKETESTFAKE
https://bryanbende.com/development/2015/07/31/ambari-metrics-part1-metrics-collector

.

Don't have an account?
Coming from Hortonworks? Activate your account here