Commit Graph

14 Commits

Author SHA1 Message Date
Matthias Runge ca45bbdca0 Retire panko, the code is no longer maintained.
The contents of this repository are still available in the Git source
code management system. To see the contents of this repository before it
reached its end of life, please check out the previous commit with
"git checkout HEAD^1".

For any further questions, please email
openstack-discuss@lists.openstack.org or join #openstack-telemetry on OFTC.

Change-Id: Ic8a7001e708d8da7cf8951eefd0a96762ea5fa46
2021-05-27 11:36:44 +02:00
wangzihao f95cff99e2 Remove six
Remove six Replace the following items with Python 3 style code.

- six.text_type
- six.PY3
- six.moves.urllib
- six.string_types
- six.iteritems
- six.integer_types
- six.binary_type
- six.add_metaclass
- six.moves.reprlib

Depends-on: https://review.opendev.org/c/openstack/telemetry-tempest-plugin/+/770955
Change-Id: Ia301d56d675557e81b873ddd68f1faeb051dfe93
2021-01-15 16:48:21 +00:00
Ivan Kolodyazhny ec84ed8aa7 Add max_count argument for clear_expired_data call
When thare're a lot of events in the database panko-expire
consumes a lot of memory to delete all records with a single
call. To avoid this behaviour a new config option
`events_delete_batch_size` was introduced.

Change-Id: Icf83ffe089301b3782273923f18efd4d209131c2
2020-07-02 10:31:06 +03:00
yuanrunsen e9e8be6cc0 Fix error config registration of elasticsearch
Configuration options must be registered before using them.
In impl_elasticsearch.py, using conf.database.es_index_name
or using conf.database.es_index_name are all wrong that will
lead the api server to be invalid.

Change-Id: I6b1364954c231a477d493d4a518c080f87058123
Signed-off-by: yuanrunsen <yuanrunsen@unitedstack.com>
2019-11-28 08:43:26 +00:00
Pavlo Shchelokovskyy daa08ec939 Reraise last error when getting DB connection
currently when there is a problem with configuration, the logging is
insufficient, especially when running panko-dbsync command.

Change-Id: I22ef74eb45f324fc6e374c4a3e03fbe9d7268eed
2018-08-02 14:23:49 +00:00
gord chung 52cea05031 pass empty url if missing
instead of raising AttributeError

Change-Id: I7f7ae280554c585aeca3d92b9d3ec5bea18e4ed0
2017-10-05 17:57:51 +00:00
Hanxi Liu 2220ff70a0 storage: get database url in right order
event_connection has been deprecated, so we should get connection
from connection url by default.

Change-Id: I0daf73e7163ade7ce6540199525e694b8d574fb3
2017-02-10 22:10:17 +08:00
gord chung 97742e644d remove event_* prefixes
we don't need this.

Change-Id: Ia2008bb8de5335776b58b8e5e5f69f7ec88d30b9
2017-01-13 20:50:14 +00:00
gord chung 41f345f552 remove event redundancy
- we don't need to prefix 'event/storage' because that's all panko
does. cleanup inline with aodh.
- test_hbase_table_utils is not used anywhere and last reference
was from icehouse.
- drop a few places that use 'event_*' prefix since it wastes line
space

Change-Id: I348f5a3dfb59682589b4912eaed4e4b8abb15ebb
2017-01-13 09:03:48 -05:00
“zhangshengping2012” a57db4e64a Replace all retrying with tenacity in Panko
Change-Id: I7e61fa4dad70801cdbc1f543fe18d7c1a64116b0
2016-12-08 23:08:38 +08:00
Amy Fong 272c872f2f Enable paginate query for event listing
sorting and marker options are enabled for event listing (for sqlalchemy only)
using oslob.db.

    sort -- list of sorting criteria. Each sorting option has to format
            <sort key>:<sort direction>

            Valid sort keys: message_id, generated
            Valid sort directions: asc (ascending), desc (descending)
                    This defaults to asc if unspecified

            If sort list is unspecified, this defaults to
            ['generated:asc', 'message_id:asc']

    marker -- If specified, assumed to be an integer and assumed to be the
              message id of the last object on the previous page of the results

limit is still available and supported for non sqlalchemy databases

Closes-bug: #1615699
Change-Id: I0441ca6283be5859c09c3d381ffbb52ca4a79eca
2016-10-04 14:06:01 -04:00
Julien Danjou 95abeb8b06 Stop relying on global CONF object
The conf object is now prepared on demand by panko.service.prepare_service.

Change-Id: I3526e73f8acbcb089d42850c0762305a08726db7
2016-06-27 17:03:38 +02:00
Julien Danjou 5c995c3924 storage: pass the conf object to drivers
Some storage drivers such as SQL need it.

Change-Id: I4ef122003d372976a4e401aee223e971133dd8f7
2016-06-27 17:03:38 +02:00
Julien Danjou 3009be7ee7 Rename to Panko
Change-Id: I50b5f6c7b74a4431ccb7af271c11fe9c027f83ab
Signed-off-by: Julien Danjou <julien@danjou.info>
2016-06-14 17:00:22 +02:00