Skip to content

Commit

Permalink
add system.vendor info (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
yocalebo authored Dec 27, 2024
1 parent dbda34b commit 2a123ac
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ixdiagnose/plugins/factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
from .sysctl import Sysctl
from .system import System
from .system_state import SystemState
from .system_vendor import SystemVendor
from .two_factor_auth import TwoFactorAuth
from .ups import UPS
from .vm import VM
Expand Down Expand Up @@ -72,6 +73,7 @@
Sysctl,
System,
SystemState,
SystemVendor,
TwoFactorAuth,
UPS,
VM,
Expand Down
12 changes: 12 additions & 0 deletions ixdiagnose/plugins/system_vendor.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from ixdiagnose.utils.middleware import MiddlewareCommand

from .base import Plugin
from .metrics import MiddlewareClientMetric


class SystemVendor(Plugin):
name = 'system_vendor'
metrics = [
MiddlewareClientMetric('is_vendored', [MiddlewareCommand('system.vendor.is_vendored')]),
MiddlewareClientMetric('vendor_name', [MiddlewareCommand('system.vendor.name')]),
]

0 comments on commit 2a123ac

Please sign in to comment.