Module: Hawkular::Metrics

Defined in:
lib/hawkular/metrics/metrics_client.rb,
lib/hawkular/metrics/types.rb,
lib/hawkular/metrics/metric_api.rb,
lib/hawkular/metrics/tenant_api.rb

Overview

Metrics module provides access to Hawkular Metrics REST API

Examples:

Create Hawkular-Metrics client and start pushing some metric data

# create client instance
client = Hawkular::Metrics::Client::new("http://server","username",
              "password",{"tenant" => "your tenant ID"})
# push gauge metric data for metric called "myGauge" (no need to create metric definition
# unless you wish to specify data retention)
client.gauges.push_data("myGauge", {:value => 3.1415925})

See Also:

Defined Under Namespace

Classes: BaseObject, Client, MetricDefinition, Tenant