Introduce report statistics feature for ovirt hosts. In Vdsm we implement reporting mechanism directly from the hosts using statsd or hawkular python sdk implementation.
Bug tickets must have version flags set prior to targeting them to a release. Please ask maintainer to set the correct version flags and only then set the target milestone.
Please rename "reports" to "metrics" module. we renamed it in the code, so better to be aligned
Renamed
Hi, I found a problem with hawkular reporting: collector_type = hawkular Traceback (most recent call last): File "/usr/share/vdsm/vdsm", line 149, in run serve_clients(log) File "/usr/share/vdsm/vdsm", line 88, in serve_clients metrics.start() File "/usr/lib/python2.7/site-packages/vdsm/metrics/__init__.py", line 35, in start _reporter.start(config.get('metrics', 'collector_address')) File "/usr/lib/python2.7/site-packages/vdsm/metrics/hawkular.py", line 44, in start concurrent.thread(_run, name='hawkular', address=address).start() TypeError: thread() got an unexpected keyword argument 'address' Version: vdsm-4.18.11-1.el7ev.x86_64
Hi, sorry to miss that comment for few days :\ posted a fix https://gerrit.ovirt.org/62355 , lets try to push and verify it quickly ? without the fix setting hawkular provider doesn't work at all.
Hi, all right. I tried to verify with the small change in hawkular.py (I only changed relevant row) but now I get a new exception: hawkular::ERROR::2016-08-17 08:33:26,095::utils::374::root::(wrapper) Unhandled exception Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/vdsm/utils.py", line 371, in wrapper return f(*a, **kw) File "/usr/lib/python2.7/site-packages/vdsm/concurrent.py", line 177, in run return func(*args, **kwargs) File "/usr/lib/python2.7/site-packages/vdsm/metrics/hawkular.py", line 81, in _run client.put(items) File "/usr/lib/python2.7/site-packages/hawkular/metrics.py", line 273, in put self._post(self._get_metrics_raw_url(self._get_url(l)), r[l]) File "/usr/lib/python2.7/site-packages/hawkular/metrics.py", line 204, in _post self._http(url, 'POST', data) File "/usr/lib/python2.7/site-packages/hawkular/metrics.py", line 191, in _http self._handle_error(e) File "/usr/lib/python2.7/site-packages/hawkular/metrics.py", line 226, in _handle_error raise e HawkularMetricsError: HTTP Error 401: <html><head><title>Error</title></head><body>Unauthorized</body></html> I'm using hawkular in docker - I used this manual for setup: http://pilhuhn.blogspot.cz/2016/06/using-hawkular-services-via-docker.html If you want, I can lend you my environment for check.
Seems that xx.xx.xx.xx:8080/hawkular/metrics requires login & password (which are known)
I worked with https://github.com/hawkular/docker-hawkular-metrics and didn't fail on authentication issues. Maybe its related to differences between hawkular and hawkular-metrics only setups
Verifiaction steps for hawkular: 1. unpack https://github.com/hawkular/hawkular-metrics/releases/download/0.18.0/hawkular-metrics-wildfly-embedded-cassandra-0.18.0.Final.tar.gz 2. run /bin/standalone.sh -b=0.0.0.0 3. configure metrics module in /etc/vdsm.conf (and install packages for hawkular "pip install hawkular-client") 4. restart vdsmd service 5. check http://$SERVER:8080/hawkular/metrics/gauges with http header "Hawkular-Tenant: oVirt" 6. You should see metrics from host vdsm in json format 7. You can use Graphana for nicer displaying metrics Verifiaction steps for statsd: 1. Have statsd and graphite environment 2. configure metrics module in /etc/vdsm.conf (and install packages for hawkular "pip install statsd") 3. restart vdsmd service 4. Check metrics in Graphite Verified in vdsm-4.18.11-1.el7ev.x86_64 Authentication issue in hawkular case will be tracked in separated bug. https://bugzilla.redhat.com/show_bug.cgi?id=1376087