Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added API support to add data on hawkular metrics server #69

Merged
merged 1 commit into from
Sep 14, 2016

Conversation

jkandasa
Copy link
Member

@jkandasa jkandasa commented Sep 13, 2016

With this PR we add metric data to hawkular metric service/server.

New functions:

  • add_availability_feed
  • add_availability_server
  • add_availability_deployment
  • add_gauge_server
  • add_gauge_datasource
  • add_counter_server
  • add_counter_deployment
  • add_string
  • add_gauge
  • add_counter
  • add_availability

Usage:

from mgmtsystem.hawkular import Hawkular
from mgmtsystem.hawkular import MetricEnum
from mgmtsystem.hawkular import MetricEnumGauge
from mgmtsystem.hawkular import MetricEnumCounter
hwk = Hawkular(hostname="hawkular-service-hostname", port="8080", username="jdoe", password="password")
_data = [] 
_data.append({'timestamp': 1473782555308, 'values': 21})
hwk.metric.add_counter_deployment(feed_id='ebf0ce66-0278-4d96-b9ec-4e4d42926dbe', server_id='Local', resource_id='ExampleDS', metric_enum=MetricEnumCounter.DEP_UTM_SESSIONS_CREATED, data=_data) 

@dajoRH dajoRH added the lint-ok label Sep 13, 2016
@dajoRH
Copy link
Contributor

dajoRH commented Sep 13, 2016

Lint report for commit ee92594:

Everything seems all right from lint perspective 😄 .

Commit inspection report:

No commit flaws detected.

CFME QE Bot

@psav psav merged commit 49d079a into RedHatQE:master Sep 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants