[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Hawkular Metrics



Thanks Matt. That is good info 



-- 
Srinivas Kotaru

On 6/17/16, 12:48 PM, "Matt Wringe" <mwringe redhat com> wrote:

>----- Original Message -----
>> From: "Srinivas Naga Kotaru (skotaru)" <skotaru cisco com>
>> To: users lists openshift redhat com
>> Sent: Friday, June 17, 2016 2:30:38 PM
>> Subject: Hawkular Metrics
>> 
>> 
>> 
>> Trying to understand how an API can be crafted to get metrics and prepare
>> custom dashboard. My metrics service is up and running, and seeing nice CPU
>> and memory graphs against container metrics tab
>> 
>> 
>> 
>> Few questions around it
>> 
>> 
>> 
>> 1. If I don’t want to use console, can we use an API to get hawkular metrics
>> and prepare custom dashboards?
>
>If you want to use the Hawkular Metrics API directly to read metrics, there is some documentation here for that: https://github.com/openshift/origin-metrics/blob/master/docs/hawkular_metrics.adoc
>
>> 
>> 2. Can I feed hawkular data to any other custom systems to prepare graphs
>> automatically rather we our self create graphs? Like zabbix, cacti or any
>> other graphs generated systems?
>
>From the Hawkular Metrics API call you will get back json data. If you wish to import that into another system you can do so. But we do not provide support for bringing this data into a third party system.
>
>> 
>> 3. Am seeing cpu and memory, any other other metrics it will generate or
>> expose?
>
>Newer versions should have network metrics. We also collect node level metrics as well (but those are not displayed in the console).
>
>In the future we should have support for pods to provide their own custom metrics as well.
>
>> 
>> 4. Finally, what Is the exact API call we can use to get metrics?
>
>Please see the docs: https://github.com/openshift/origin-metrics/blob/master/docs/hawkular_metrics.adoc
>
>> 
>> 
>> 
>> Am using below call and able to see lot of data, but not sure which are
>> interesting fields or right API call
>> 
>> 
>> 
>> curl -H "Authorization: Bearer <token> -H "Hawkular-tenant: <project>" -X GET
>> https://<url> /hawkular/metrics/metrics | jq
>> 
>
>That will give you the list of all metrics for that project. From there you will need to narrow it down and select which metrics you are interested in, and over what time period.
>
>> 
>> 
>> 
>> 
>> 
>> --
>> 
>> 
>> Srinivas Kotaru
>> 
>> _______________________________________________
>> users mailing list
>> users lists openshift redhat com
>> http://lists.openshift.redhat.com/openshiftmm/listinfo/users
>> 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]