*** sandywalsh has quit IRC | 01:31 | |
*** tkuhlman has quit IRC | 04:00 | |
*** krtaylor has joined #openstack-monasca | 04:11 | |
*** kuhlmant has joined #openstack-monasca | 04:21 | |
*** sandywalsh has joined #openstack-monasca | 12:56 | |
openstackgerrit | litong01 proposed a change to stackforge/monasca-api: initial python implementation https://review.openstack.org/120788 | 13:45 |
---|---|---|
*** tongli has joined #openstack-monasca | 14:08 | |
*** dschroeder has joined #openstack-monasca | 14:56 | |
*** garyh has joined #openstack-monasca | 15:01 | |
*** cindyo has joined #openstack-monasca | 15:01 | |
*** rbak has joined #openstack-monasca | 15:10 | |
openstackgerrit | Deklan Dieterly proposed a change to stackforge/monasca-api: Refactor serie name decoder https://review.openstack.org/120812 | 15:24 |
openstackgerrit | Deklan Dieterly proposed a change to stackforge/monasca-api: Refactor serie name decoder https://review.openstack.org/120812 | 15:57 |
*** rhochmuth has joined #openstack-monasca | 15:58 | |
openstackgerrit | A change was merged to stackforge/monasca-ui: Pass threshold to drilldown script in grafana https://review.openstack.org/120268 | 16:30 |
cindyo | @tongli I’m trying to run your code that hasn’t been checked in - I think it is older than the review code. Is this the right syntax to use for gunicorn? I get a connection error. | 16:51 |
cindyo | DEBUG (http:113) curl -i -X POST -H 'X-Auth-User: mini-mon' -H 'X-Auth-Token: 2f490a76cef9431ea1a747b2a8011278' -H 'X-Auth-Key: password' -H 'Accept: application/json' -H 'User-Agent: python-monascaclient' -H 'Content-Type: application/json' -d '{"timestamp": 1410454025.554345, "name": "tong1", "value": 1.2}' http://localhost:9090/v2.0/metrics | 16:51 |
cindyo | INFO (connectionpool:180) Starting new HTTP connection (1): localhost | 16:51 |
cindyo | Traceback (most recent call last): | 16:51 |
cindyo | File "/Library/Frameworks/Python.framework/Versions/2.7/bin/monasca", line 10, in <module> | 16:51 |
cindyo | sys.exit(main()) | 16:51 |
cindyo | File "/Users/cindy/stackforge/python-monascaclient/monascaclient/shell.py", line 426, in main | 16:51 |
cindyo | MonascaShell().main(args) | 16:52 |
cindyo | File "/Users/cindy/stackforge/python-monascaclient/monascaclient/shell.py", line 381, in main | 16:52 |
cindyo | args.func(client, args) | 16:52 |
cindyo | File "/Users/cindy/stackforge/python-monascaclient/monascaclient/v2_0/shell.py", line 61, in do_metric_create | 16:52 |
cindyo | mc.metrics.create(**fields) | 16:52 |
cindyo | File "/Users/cindy/stackforge/python-monascaclient/monascaclient/v2_0/metrics.py", line 45, in create | 16:52 |
cindyo | headers=newheaders) | 16:52 |
cindyo | File "/Users/cindy/stackforge/python-monascaclient/monascaclient/common/http.py", line 232, in json_request | 16:52 |
cindyo | resp = self._http_request(url, method, **kwargs) | 16:52 |
cindyo | File "/Users/cindy/stackforge/python-monascaclient/monascaclient/common/http.py", line 171, in _http_request | 16:52 |
cindyo | **kwargs) | 16:52 |
cindyo | File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/api.py", line 44, in request | 16:52 |
cindyo | return session.request(method=method, url=url, **kwargs) | 16:52 |
cindyo | File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/sessions.py", line 456, in request | 16:52 |
cindyo | resp = self.send(prep, **send_kwargs) | 16:52 |
cindyo | File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/sessions.py", line 559, in send | 16:52 |
cindyo | r = adapter.send(request, **kwargs) | 16:52 |
cindyo | File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/requests/adapters.py", line 375, in send | 16:52 |
cindyo | raise ConnectionError(e, request=request) | 16:52 |
cindyo | requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=9090): Max retries exceeded with url: /v2.0/metrics (Caused by <class 'socket.error'>: [Errno 61] Connection refused) | 16:52 |
cindyo | looks like gunicorn is not starting with the command that you recommend, it exits right away without an error | 17:16 |
openstackgerrit | Rob Raymond proposed a change to stackforge/monasca-ui: Change detail panel to take over screen https://review.openstack.org/120853 | 17:40 |
*** openstackgerrit has quit IRC | 17:46 | |
*** openstackgerrit has joined #openstack-monasca | 17:47 | |
*** mikedillion has joined #openstack-monasca | 18:27 | |
*** mikedillion has quit IRC | 18:30 | |
tongli | @cindyo, sorry, did not see your message. | 19:01 |
tongli | are you still trying it or you have moved on? | 19:02 |
cindyo | tongli: I wasn’t able to get the gunicorn to startup correctly. using your code and readme from here: https://github.com/litong01/python-monasca-api | 19:06 |
tongli | possibly errors might be, you are using a mismatch falcon. | 19:06 |
tongli | probably use the latest code from the monasca-api repository? | 19:07 |
tongli | that code requires falcon 0.1.8, I think that the latest is 0.1.9 which I have made changes in the latest code. | 19:07 |
cindyo | I don’t think that code is merged yet into monasca-api, I’ll wait for that, I think Roland is reviewing, but I was hoping to test and see that I can start it up | 19:09 |
*** rhochmuth has quit IRC | 19:18 | |
cindyo | tongli: i can fetch your changes with git! I’ll try the latest | 19:24 |
tongli | @cindyo, even if it is not merged, you can still get it and run it. | 19:25 |
cindyo | yep just got it | 19:25 |
*** rhochmuth has joined #openstack-monasca | 19:31 | |
rhochmuth | I was running the python monasca-api. Currently, the message format that is used for publishing metrics to the Kafka queue doesn't match what we've done for the java api. | 19:32 |
rhochmuth | So, none of the messages are processed by the rest of the MOnasca pipeline | 19:32 |
rhochmuth | The python api just publishes the JSON request body to Kafka as is. FOr example, | 19:33 |
rhochmuth | { | 19:33 |
rhochmuth | "name": "name1", | 19:33 |
rhochmuth | "dimensions": { | 19:33 |
rhochmuth | "key1": "value1", | 19:33 |
rhochmuth | "key2": "value2" | 19:33 |
rhochmuth | }, | 19:33 |
rhochmuth | "timestamp": 1405647317, | 19:33 |
rhochmuth | "value": 1.0 | 19:33 |
rhochmuth | } | 19:33 |
rhochmuth | What is expected right now is the following: | 19:33 |
rhochmuth | "metric":{"name":"cpu.system_perc","dimensions":{"service":"monitoring","hostname":"mini-mon"},"timestamp":1410459127,"value":2.56},"meta":{"tenantId":"3c1f6223f44d42c0b88623e75ed3c996","region":"useast"},"creation_time":1410459131} | 19:33 |
rhochmuth | One of the bigger design issues is that I was expecting to see the major resources, such as metrics, measurements, statistics, alarms and notification-methods to be in separate class files, simlar to what we've done in the Java implementation. | 19:36 |
rhochmuth | For example, the code for processing POST metrics is in …/monasca/dispatcher/kafka_queue.py. THis seems like a pretty strange place to be putting that. | 19:37 |
rhochmuth | We should have a class MetricsResource that accepts the KafkaDispatcher in the constructor. | 19:42 |
cindyo | tongli: ^^ | 19:44 |
cindyo | rhochmuth: to track this you better put it in the review comments | 19:44 |
cindyo | i agree on the desire for separate resource classes | 19:45 |
cindyo | and passing the kafka dispatcher into them | 19:45 |
rhochmuth | agree. | 19:46 |
rhochmuth | I imagine that there could be a base class called DIspatcher so that other dispatchers could be easily substituted, such as RabbitMQ | 19:46 |
cindyo | tongli: ugh a stevedore problem multiple drivers found. RuntimeError: Multiple 'monasca.dispatcher' drivers found: monasca.dispatcher.kafka_queue:KafkaDispatcher,monasca.dispatcher.kafka_queue:KafkaDispatcher | 20:00 |
cindyo | this worked, the old one had the same driver name: sudo pip uninstall monasca-api-server | 20:13 |
cindyo | tongli: the kafka driver wasn’t working for me, so I did a sudo pip uninstall monasca-api and then another sudo python setup.py install. Now I have the multiple driver error again. How do you cleanup stevedore drivers? | 20:42 |
*** tongli has quit IRC | 21:12 | |
openstackgerrit | Deklan Dieterly proposed a change to stackforge/monasca-api: Refactor serie name decoder https://review.openstack.org/120812 | 22:32 |
*** openstackgerrit has quit IRC | 22:38 | |
*** openstackgerrit_ has joined #openstack-monasca | 22:38 | |
*** openstackgerrit_ is now known as openstackgerrit | 22:40 | |
openstackgerrit | Deklan Dieterly proposed a change to stackforge/monasca-api: Refactor serie name decoder https://review.openstack.org/120812 | 22:47 |
*** rhochmuth has quit IRC | 22:48 | |
openstackgerrit | A change was merged to stackforge/monasca-api: Refactor serie name decoder https://review.openstack.org/120812 | 22:55 |
*** dschroeder has quit IRC | 23:05 | |
*** rbak has quit IRC | 23:06 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!