Skip to content

Commit

Permalink
Implement PCP metrics channel
Browse files Browse the repository at this point in the history
Co-Authored-By: Allison Karlitskaya <[email protected]>
Co-Authored-By: Tomas Matus <[email protected]>
  • Loading branch information
3 people committed Jul 4, 2024
1 parent 85223d9 commit 2f49acb
Show file tree
Hide file tree
Showing 5 changed files with 918 additions and 2 deletions.
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ module = [
"libvirt_qemu",
"pika",

# run without pcp module types
"pcp",
"cpmapi",

# run without gobject-introspection (used from cockpit-client for Gtk)
"gi.*",

Expand Down Expand Up @@ -193,6 +197,7 @@ wheel_build_env = pkg
# All other environments (names like py311-lint, py36-pytest, etc) are isolated
# from the system and get their packages from PyPI, according to the specific
# test environment being requested. We build the wheel in a common environment.
# Skip PCP as the PyPi package provides no wheel, requires compilation and is outdated (5.0)
[testenv]
package = wheel
wheel_build_env = venv-pkg
Expand All @@ -208,6 +213,6 @@ deps =
pytest: pytest-xdist
allowlist_externals = test/static-code
commands =
pytest: python3 -m pytest -opythonpath= {posargs}
pytest: python3 -m pytest -k 'not pcp' -opythonpath= {posargs}
lint: test/static-code --tap
"""
2 changes: 2 additions & 0 deletions src/cockpit/channels/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
from .http import HttpChannel
from .metrics import InternalMetricsChannel
from .packages import PackagesChannel
from .pcp import PcpMetricsChannel
from .stream import SocketStreamChannel, SubprocessStreamChannel
from .trivial import EchoChannel, NullChannel

Expand All @@ -35,6 +36,7 @@
InternalMetricsChannel,
NullChannel,
PackagesChannel,
PcpMetricsChannel,
SubprocessStreamChannel,
SocketStreamChannel,
]
Loading

0 comments on commit 2f49acb

Please sign in to comment.