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 <allison.karlitskaya@redhat.com>
Co-Authored-By: Tomas Matus <tomatus777@gmail.com>
  • Loading branch information
3 people committed Sep 12, 2024
1 parent 6592eda commit 9c2d13f
Show file tree
Hide file tree
Showing 7 changed files with 1,295 additions and 5 deletions.
8 changes: 8 additions & 0 deletions 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 @@ -196,10 +200,13 @@ labels =
sitepackages = True
install_command = python3 -m pip install --no-index --no-build-isolation {opts} {packages}
wheel_build_env = pkg
setenv =
NO_QUNIT=1
# 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 @@ -216,6 +223,7 @@ deps =
allowlist_externals = test/static-code
setenv =
NO_QUNIT=1
PYTEST_ADDOPTS=-k 'not pcp'
commands =
pytest: python3 -m pytest -opythonpath= {posargs}
lint: test/static-code --tap
Expand Down
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 9c2d13f

Please sign in to comment.