Commit Graph

59 Commits

Author SHA1 Message Date
Sahid Orentino Ferdjaoui 3c5feadda2 profiler: add python requests profile
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@industrialdiscipline.com>
Change-Id: I00e9f5661a3bd54acc846e8c326896d21e70be36
2023-06-01 08:44:08 +02:00
Sahid Orentino Ferdjaoui 908e740232 add support of otlp exporter
Depends-On: Idcff5d79b4884dd1cc7ed1ab42c9e4ce89d4a6d2
Signed-off-by: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@industrialdiscipline.com>
Change-Id: I74cdcb2aa99b0162ba1c14059111f09d0bb534e3
2023-05-10 10:18:48 +02:00
Zuul be6aa856a5 Merge "tox: Add functional-py38, functional-py39 envs" 2023-02-08 10:47:52 +00:00
Stephen Finucane fa830926b5 tox: Add functional-py38, functional-py39 envs
While here, we also clean up some style issues in this file.

Fix CI issue to generated changelog with tox v4

Co-Authored-By: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@industrialdiscipline.com>
Change-Id: If6de005dd8229fe6f21dc103f50db083a415d7e4
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2023-02-06 14:13:57 +01:00
niuke 0b1bfadebd remove unicode prefix from code
Change-Id: I28bfa2a34222dae4ede0dad527f264eee4d5d0c4
2022-08-08 15:27:45 +08:00
zhaolei.lc 32863011fe Make some revisions in the document
Make some revisions about the example of the
implementation of nested trace points and fix
some typos.

Change-Id: I26a791e1073a2d62bd0f1c79bc26cd898d4e2c55
2022-03-31 12:00:53 +08:00
Michael Johnson b9206a5349 Fix api index and module index
This patch fixes the index and module index for the osprofiler documentation
home page.
It also updates the documents tox environments to use a docs requirements.txt

Change-Id: I880f1c28232a299f50ea9ccc2178f1444efb9a41
2022-02-17 22:35:09 +00:00
wangzihao adc39e86ac Remove six
Remove six Replace the following items with Python 3 style code.
- six.moves
- six.StringIO
- six.add_metaclass
- six.string_types
- six.binary_type
- six.text_type
- six.integer_types
- six.PY3
- six.PY2
- six.iterkeys

Change-Id: Id9f2076be1a6a2d99db5acb682df8bebe893de36
2020-12-17 17:51:56 +08:00
Hervé Beraud 2794b9828c Adding pre-commit
Introduced changes:
- pre-commit config and rules
- Add pre-commit to pep8 gate, Flake8 is covered in the pre-commit hooks.
- Applying fixes for pre-commit compliance in all code.

Also commit hash will be used instead of version tags in pre-commit to
prevend arbitrary code from running in developer's machines.

pre-commit will be used to:
- trailing whitespace;
- Replaces or checks mixed line ending (mixed-line-ending);
- Forbid files which have a UTF-8 byte-order marker (check-byte-order-marker);
- Checks that non-binary executables have a proper
  shebang (check-executables-have-shebangs);
- Check for files that contain merge conflict strings (check-merge-conflict);
- Check for debugger imports and py37+ breakpoint()
  calls in python source (debug-statements);
- Attempts to load all yaml files to verify syntax (check-yaml);
- Run flake8 checks (flake8) (local)

For further details about tests please refer to:
https://github.com/pre-commit/pre-commit-hooks

Change-Id: If4bd505d6bf73d06ce2f6080cedb3b5576c881d9
Signed-off-by: Moisés Guimarães de Medeiros <moguimar@redhat.com>
2020-10-09 11:07:15 +02:00
Andreas Jaeger c568c9f769 Switch to newer openstackdocstheme and reno versions
Switch to openstackdocstheme 2.2.1 and reno 3.1.0 versions. Using
these versions will allow especially:
* Linking from HTML to PDF document
* Allow parallel building of documents
* Fix some rendering problems

Update Sphinx version as well.

Disable openstackdocs_auto_name to use 'project' variable as name.

Change pygments_style to 'native' since old theme version always used
'native' and the theme now respects the setting and using 'sphinx' can
lead to some strange rendering.

openstackdocstheme renames some variables, so follow the renames
before the next release removes them. A couple of variables are also
not needed anymore, remove them.

See also
http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014971.html

Change-Id: Ia700e656b4c2616ccbff32707eb4297a1dafbe3b
2020-06-02 15:17:57 +02:00
caoyuan b0189254b1 Replace git.openstack.org URLs with opendev.org URLs
Change-Id: Id2b126d0b66a24a099fb7f52aa819b4b0ac0f7c7
2019-04-29 06:48:18 +00:00
Radoslaw Smigielski 9847b8984a Minimum versions of databases with JSON data type support
SQLAlchemy collector requires database JSON data type support
which is fairly new feature and missing in versions older than:

    - MariaDB 10.2
    - MySQL 5.7.8

Let's document that SQLAlchemy collector requirement.

Change-Id: Ifb379a40d90d252d56d4f830e75bbfa08bf66a01
Closes-Bug: #1825693
2019-04-21 06:27:34 +02:00
Thomas Bechtold 032a218618 Add sqlalchemy collector
Beside the already available collectors, add a sqlalchemy based
collector. This is useful if you don't want to maintain another DB
solution and just use the (usually) already available database.
The driver currently implements the notify() and get_report() methods
so it is possible to store trace points and to get a single trace.

Change-Id: If91b35d4b97862c0ecf6677f4c6b95a09d411195
2019-02-14 11:34:05 +01:00
Tovin Seven f2ed61fe72 Update documentation & usage for redis driver
Add password (AUTH) support to redis driver.

Change-Id: I5e3af4848ecce7b0a8a469faa587f54689358d3b
2018-06-01 10:32:34 +07:00
Einst Crazy e1ba98e13a Fix typo
Change-Id: Iec80acb770c7833bb48794263a1db4be7dad5090
2018-05-22 03:22:24 +00:00
Tovin Seven 1c6f66c028 Trivial: Update pypi url to new url
Pypi url changed from [1] to [2]

[1] https://pypi.python.org/pypi/<package>
[2] https://pypi.org/project/<package>

Change-Id: Ibc980c462ddb00036d35d49bf629092550973c30
2018-04-20 16:57:28 +07:00
Ilya Shakhat 0bb909c7a0 Remove Ceilometer support
Our current Ceilometer driver relies on old version of ceilometer client,
which is in deprecated state and not compatible with the latest Telemetry
projects (Panko, Gnocchi). The functionality of the driver is not tested
automatically and most probably broken. So it's time to let it go and
clean the code.

This patch leaves "messaging" driver as default for notification and
makes "connection-string" a required parameter in CLI. In the future
we may consider to change default notification driver, though it
requires proper release note handling in all affected projects.

Change-Id: Id8442c4ff13c5cc33fd909b4757757cc5f396f50
2018-01-18 12:01:09 +01:00
sunyandi 6647bf2ae3 update sphinx-doc links
Change-Id: Icb8c54e30163109be703da8bc313a603114ad73f
2018-01-17 16:44:17 +08:00
shangxiaobj ea1e11b68f Update the invalid doc links to the right ones in osprofiler docs
1) Fix the invalid doc links according to the lastest OpenStack Website.
2) Replace them with the right ones.

Change-Id: I8d768802e25944a9761263cb2c80f5aaca317e96
2018-01-01 22:57:13 -08:00
Akihiro Motoki b0d66a5904 doc: Fix formatting
openstackdocstheme shows vertical lines for quote blocks.
This commit removes unnecessary leading spaces.

Change-Id: Ie5651f0510550eb3910e68e433a41e99bf2bfa8a
2017-07-06 21:50:47 +00:00
Akihiro Motoki 5d11d7bf5d rearrange existing documentation to fit the new standard layout
Change-Id: Ie4bdcc2034d0648a078e17b327df99f652887857
2017-07-06 21:38:51 +00:00
Akihiro Motoki ef86e88f9f Switch from oslosphinx to openstackdocstheme
Change-Id: Ic6d11356de62f9779f96fbe15160ee1004c45245
2017-07-06 21:38:42 +00:00
Akihiro Motoki 4b20438a1f Enable warning-is-error in doc build
- Update sphinx version
- Fix sphinx warning

Change-Id: Ibf3361af30cec3c291cfdf50438cf49dd72427f8
2017-07-06 21:38:41 +00:00
Tovin Seven 8d5111465a Add Jaeger to list of similar projects
Reference:
    - Homepage: https://uber.github.io/jaeger/
    - Github: https://github.com/uber/jaeger
    - Blog post: https://eng.uber.com/distributed-tracing/

Change-Id: I158cf1220309c51c5276221d9bf7fbc18befd619
2017-03-03 14:22:42 +07:00
Adam Spiers 323fc37cca fix an outdated link for zipkin
Change-Id: Ic75d432bf7b9daff9a6595461167a7f4a655ac98
2017-03-02 10:37:18 +00:00
Tovin Seven 224e9218cb Move implemeted specs to implemented directory
Just to avoid confusion for new contributors

Change-Id: I4d5525face984dae96e0069b9f2ecd38d1d0ba0e
2017-01-24 15:53:06 +07:00
BENJAMIN VANHAVERMAET 1c6f8b60b2 Add a redis driver
Change-Id: I64768e282d5f3f32d9d79d15f59413d42df95037
2016-11-07 06:35:52 -06:00
Dina Belova ce9679a58f Update documentation to the latest state
+ fix several typos

Change-Id: I66d1acb9124a8c65876d2fa3a7fd94a6e350b8b8
2016-10-21 11:02:21 +00:00
wangxiyuan 2e4588140b Update the driver path in th doc
The driver path is changed, we should update the doc as well.

Change-Id: Ia70adaea7052e112e8784f1f2c67a5e25bff74fb
2016-10-11 10:25:18 +08:00
wangxiyuan caff6c6fa2 Fix a doc typo
Change-Id: Ibf7d86b21f2709e968b85b6f5fb16c596c3d0c6d
2016-10-10 11:34:05 +08:00
Atsushi SAKAI c2878797a7 [doc]Add description for multi-backend URI
Add description for multi-backend URI

Change-Id: Ifc3687739cd65bdfbca015ab27f2187ad0b1a60b
2016-09-07 16:46:46 +00:00
Alexey Yelistratov b57ebf9a2a Add connection string usage to osprofiler-cli
Change-Id: I90c6bf701667f9dddb880151047d24253000a7e6
2016-08-05 18:09:19 +03:00
Atsushi SAKAI fa5bccb50a Fix typos on spec directory
Celiometer => Ceilometer
compatiblity => compatibility
osprofier  => osprofiler

Change-Id: I14d34876ab6254dfcf92f396137c1e17f0f00f42
2016-08-04 15:55:04 +09:00
Oleksii Chuprykov fa4045367d Fix title of index page
Remove repetition of word 'library'.

Change-Id: Ibd7376a5542c4742c3471290c988320fca27402e
2016-07-19 15:24:50 +03:00
Jenkins 10f48b9cc8 Merge "Add backward compatible drivers structure" 2016-07-12 19:34:13 +00:00
Alexey Yelistratov 676a239bef Add backward compatible drivers structure
Change-Id: I3e904d0e456aa6999cd9a02a268f54e6d8b729de
Spec: Multi backend support
2016-07-04 18:47:01 +03:00
Jenkins 4f69ea4f9e Merge "Don't set html_last_updated_fmt without git" 2016-06-02 16:17:48 +00:00
Moshe Levi 16d639d32c Fix typo: 'Olso' to 'Oslo'
Change-Id: I5933560201e645fa37dddf92e2df6a63d3a2544c
2016-06-02 05:48:25 +03:00
Thomas Bechtold e8079b2ec3 Don't set html_last_updated_fmt without git
Using a timestamp as value for "html_last_updated_fmt" isn't good
for the reproducible builds initiative from different downstream
distributions because the build result always differs due to the
timestamp in the documentation.
Also when not setting "html_last_updated_fmt", the value can be set
via command line when running "sphinx-build -D".

Change-Id: Ia23451e6b53f6f83dd22e069ef42a4a067ec5881
2016-06-01 11:08:15 +02:00
ChangBo Guo(gcb) 5b3086eef5 doc: Log warning when can't get informaiton from git
Add warning to indicate something is wrong when getting last updated
information from git repository.

Change-Id: Ie1ff9d77c30e4d5601443ece992968593fc1b8c1
2016-04-11 14:53:46 +08:00
Joshua Harlow 832c9d5aa0 Add a similar link with reference to similar projects/libraries
Change-Id: I365096b66eef9961cbe5144668ca9d146b53304f
2016-03-25 00:14:12 -07:00
Joshua Harlow e391c61a3e Continue work on standardizing osprofiler docs
Add actual sections and files and remove the main
index.rst just being a symlink of the README.rst file
and have that README.rst file now be formatted like the
other oslo projects.

Change-Id: I7ec12eef59bfbc2434a9905fe6e1ee4b9e3736e5
2016-03-24 21:35:30 -07:00
Joshua Harlow 4dd3f3d2fb Updates to doc conf.py to look the same as other projects
Change-Id: I9a08b6c3484345a5332db6e98e2bd159055da218
2016-03-24 10:34:37 -07:00
Jenkins a9425a9dc4 Merge "Dont claim copyright for future years" 2016-03-16 08:01:16 +00:00
ChangBo Guo(gcb) 46c3dd52b4 Remove outdated version
* We bump osporfiler to 0.3.1, but don't update this in README.rst,
  just remove the version to avoid inconsistent.

* We get last updated time from git history, so don't set it
  with specific version for document.

Change-Id: I7292cfb1f9c74ca5a8387fc4e5fff076679835a7
2016-03-14 12:38:05 +08:00
ChangBo Guo(gcb) ecdd57c5d4 Dont claim copyright for future years
otherwise, when building from unchanged source in 2018,
it would claim Copyright 2018 which is not true .

Change-Id: I80d466b0e1273a50c0e8f0c4850314afd4def389
2016-03-14 11:15:58 +08:00
Davanum Srinivas 5f8d6def01 Fallback if git is absent
When building packages if git is absent, then we should
fall back to a safe default.

Closes-Bug: #1552251
Change-Id: I9b21700f942f5d1f9302b3af04d6d24e1afba1b3
2016-03-02 16:28:45 -05:00
Jenkins 780d04098c Merge "Replace deprecated library function os.popen() with subprocess" 2016-01-20 09:26:38 +00:00
Harshada Mangesh Kakad 57a07454fc Replace deprecated library function os.popen() with subprocess
os.popen() is deprecated since version 2.6. Resolved with use of
subprocess module.

Change-Id: I5e8a3cb1d2a50656025ca0fec5f95b581f0af7b4
Closes-Bug: #1529836
2016-01-14 04:36:40 -08:00
Boris Pavlovic a6cb3c08cc Add DevStack plugin
This allows us to automate enabling OSProfiler in OpenStack

Just add to DevStack localrc file:

enable_plugin ceilometer https://github.com/openstack/ceilometer
enable_plugin osprofiler https://github.com/openstack/osprofiler

Change-Id: I3607407dd506723c1aad6696ec98eaed8a8ddd9e
2016-01-14 01:41:39 -08:00