-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[NDM] Add cyberpower-pdu profile #15158
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM once conflicts are resolved and checks pass + a small change
snmp/tests/test_e2e_core_profiles/test_profile_cyberpower_pdu.py
Outdated
Show resolved
Hide resolved
4817a09
to
1e808d9
Compare
1e808d9
to
712bc46
Compare
fix style resort metadata.csv metadata metadata
c5b75da
to
79831fc
Compare
Codecov Report
Flags with carried forward coverage won't be shown. Click here to find out more. |
snmp/datadog_checks/snmp/data/default_profiles/cyberpower-pdu.yaml
Outdated
Show resolved
Hide resolved
snmp/datadog_checks/snmp/data/default_profiles/cyberpower-pdu.yaml
Outdated
Show resolved
Hide resolved
# 1: all_available_power_supplies_ok | ||
# 2: power_supply_one_failed | ||
# 3: power_supply_two_failed | ||
# 4: power_supply_oneand_two_failed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm unclear on what makes the commented-out block above different from the block below - why do we have to exclude the outlet bank table but not the status bank table?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh right, this comment seems wrong.
I don't remember the details that might be a mistake indeed
@@ -510,6 +510,34 @@ snmp.cwoTfoStatsReservedConn,gauge,,,,"[CISCO-WAN-OPTIMIZATION-MIB] This object | |||
snmp.cwoTfoStatsResetConn,count,,,,"[CISCO-WAN-OPTIMIZATION-MIB] This object contains total number of optimized TCP connections, which are reset since TFO was started or its statistics were last reset.",0,snmp,, | |||
snmp.cwoTfoStatsTotalNormalClosedConn,count,,,,"[CISCO-WAN-OPTIMIZATION-MIB] This object contains total number of optimized TCP connections which were closed normally since TFO was started or its statistics were last reset.",0,snmp,, | |||
snmp.cwoTfoStatsTotalOptConn,count,,,,"[CISCO-WAN-OPTIMIZATION-MIB] This object contains total number of TCP connections optimized since TFO was started or its statistics were last reset.",0,snmp,, | |||
snmp.cyberpower.ePDU2BankStatusLoad,gauge,,,,"[CPS-MIB] Indicates the current draw, in tenths of Amps, of the load on the Rack PDU bank being queried.",0,snmp,, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it matter that this description is formatted differently from the others? The others are just e.g. "The peak current..." or "The power consumption..." instead of "Indicates the peak current..." or "Indicates the power consumption..."
I guess it's written that way in the MIB as well, so maybe we don't care.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah IMO we can stick to the MIB description here
snmp.cyberpower.ePDUStatusOutlet,gauge,,,,"[CPS-MIB] Allows for getting of status of each Outlet of an Outlet Monitored Rack PDU. (Make 'sum by {X}' queries to count elements with the tag X.)",0,snmp,, | ||
snmp.cyberpower.ePDUStatusPhase,gauge,,,,"[CPS-MIB] Allows for getting of status of each Rack PDU Phase (Make 'sum by {X}' queries to count elements with the tag X.)",0,snmp,, | ||
snmp.cyberpower.envirHumidity,gauge,,,,"",0,snmp,, | ||
snmp.cyberpower.envir_temperature,gauge,,,,"",0,snmp,, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These two entries are missing descriptions - the MIB descriptions are "The environment relative humidity expressed in percentage." and "The environment temperature expressed in 1/10 Fahrenheit."
- MIB: CPS-MIB | ||
symbol: | ||
OID: 1.3.6.1.4.1.3808.1.1.4.2.1.0 | ||
name: cyberpower.envir_temperature |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of curiosity, is there a reason we expose the fahrenheit but not the celsius? Does our UI handle unit switching?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call out, our UI can handle the unit switching but only if the metadata csv is configured with the right unit or if the user configures it. Otherwise the value is shown without transformation.
It could make sense to submit only the celsius one, or both the celsius + the fahrenheit one.
* fix mapping for apc-netbotz #15136 * for mapping for aruba-wireless-controller #15128 * fix mapping #15482 * fix mapping #15158 * fix mapping #15414 * fix mapping #15312 * fix mapping #15343 * fix mapping #15374 * fix mapping #15354 * fix mapping #15370 * fix mapping #15464 * fix mapping #15326 * fix mapping #15368 * fix mapping #15368 * fix mapping #15396 * fix mapping #15386 * fix mapping #15469 * fix mappings #15265 * fix mapping #15349 * fix mapping #15356 * fix mapping #15371 * fix mapping #15322 * fix mapping #15397 * fix mappings #15466 * fix mapping #15153 * fix mapping cisco * fix mapping * fix mapping hp * fix mapping poweredge * fix mapping f5 * update servertech: metricnames + metadata +tests * update apc netbotz tests * update aruba wlc tests * update citrix netscaler sdx test * update dell os10 tests * update test hpe nimble * update tests huawei * update infinera coriant groove tests * update tests infoblox * update tests kyocera * update tests raritan * update tests sinetica * update tests sophos * update test zyxel * update tests avaya * update tests cisco ucs * update tests huawei routers * update tests ibm datapower * update tests tripplite ups * update test avaya cajun * update test barracuda cloudgen * update test _cisco_generic * update test cisco nexus * update test assert_extend_cisco_generic * update test dell * update test hp compaq health * update test f5-big-ip * update metrics names * address reviews * add changelog * lint * update changelog * fix mib name * address reviews * revert to readynasos mib mapping * address review * remove tag * add spacing * Fix changelog * update changelog * fix changelog * remove unnecessary ip_address formatting --------- Co-authored-by: Alexandre Yang <alexandre.yang@datadoghq.com>
* fix mapping for apc-netbotz #15136 * for mapping for aruba-wireless-controller #15128 * fix mapping #15482 * fix mapping #15158 * fix mapping #15414 * fix mapping #15312 * fix mapping #15343 * fix mapping #15374 * fix mapping #15354 * fix mapping #15370 * fix mapping #15464 * fix mapping #15326 * fix mapping #15368 * fix mapping #15368 * fix mapping #15396 * fix mapping #15386 * fix mapping #15469 * fix mappings #15265 * fix mapping #15349 * fix mapping #15356 * fix mapping #15371 * fix mapping #15322 * fix mapping #15397 * fix mappings #15466 * fix mapping #15153 * fix mapping cisco * fix mapping * fix mapping hp * fix mapping poweredge * fix mapping f5 * update servertech: metricnames + metadata +tests * update apc netbotz tests * update aruba wlc tests * update citrix netscaler sdx test * update dell os10 tests * update test hpe nimble * update tests huawei * update infinera coriant groove tests * update tests infoblox * update tests kyocera * update tests raritan * update tests sinetica * update tests sophos * update test zyxel * update tests avaya * update tests cisco ucs * update tests huawei routers * update tests ibm datapower * update tests tripplite ups * update test avaya cajun * update test barracuda cloudgen * update test _cisco_generic * update test cisco nexus * update test assert_extend_cisco_generic * update test dell * update test hp compaq health * update test f5-big-ip * update metrics names * address reviews * add changelog * lint * update changelog * fix mib name * address reviews * revert to readynasos mib mapping * address review * remove tag * add spacing * Fix changelog * update changelog * fix changelog * remove unnecessary ip_address formatting --------- Co-authored-by: Alexandre Yang <alexandre.yang@datadoghq.com> a50ecaa
* fix mapping for apc-netbotz #15136 * for mapping for aruba-wireless-controller #15128 * fix mapping #15482 * fix mapping #15158 * fix mapping #15414 * fix mapping #15312 * fix mapping #15343 * fix mapping #15374 * fix mapping #15354 * fix mapping #15370 * fix mapping #15464 * fix mapping #15326 * fix mapping #15368 * fix mapping #15368 * fix mapping #15396 * fix mapping #15386 * fix mapping #15469 * fix mappings #15265 * fix mapping #15349 * fix mapping #15356 * fix mapping #15371 * fix mapping #15322 * fix mapping #15397 * fix mappings #15466 * fix mapping #15153 * fix mapping cisco * fix mapping * fix mapping hp * fix mapping poweredge * fix mapping f5 * update servertech: metricnames + metadata +tests * update apc netbotz tests * update aruba wlc tests * update citrix netscaler sdx test * update dell os10 tests * update test hpe nimble * update tests huawei * update infinera coriant groove tests * update tests infoblox * update tests kyocera * update tests raritan * update tests sinetica * update tests sophos * update test zyxel * update tests avaya * update tests cisco ucs * update tests huawei routers * update tests ibm datapower * update tests tripplite ups * update test avaya cajun * update test barracuda cloudgen * update test _cisco_generic * update test cisco nexus * update test assert_extend_cisco_generic * update test dell * update test hp compaq health * update test f5-big-ip * update metrics names * address reviews * add changelog * lint * update changelog * fix mib name * address reviews * revert to readynasos mib mapping * address review * remove tag * add spacing * Fix changelog * update changelog * fix changelog * remove unnecessary ip_address formatting --------- Co-authored-by: Alexandre Yang <alexandre.yang@datadoghq.com>
…files (#15720) * fix mapping for apc-netbotz #15136 * for mapping for aruba-wireless-controller #15128 * fix mapping #15482 * fix mapping #15158 * fix mapping #15414 * fix mapping #15312 * fix mapping #15343 * fix mapping #15374 * fix mapping #15354 * fix mapping #15370 * fix mapping #15464 * fix mapping #15326 * fix mapping #15368 * fix mapping #15368 * fix mapping #15396 * fix mapping #15386 * fix mapping #15469 * fix mappings #15265 * fix mapping #15349 * fix mapping #15356 * fix mapping #15371 * fix mapping #15322 * fix mapping #15397 * fix mappings #15466 * fix mapping #15153 * fix mapping cisco * fix mapping * fix mapping hp * fix mapping poweredge * fix mapping f5 * update servertech: metricnames + metadata +tests * update apc netbotz tests * update aruba wlc tests * update citrix netscaler sdx test * update dell os10 tests * update test hpe nimble * update tests huawei * update infinera coriant groove tests * update tests infoblox * update tests kyocera * update tests raritan * update tests sinetica * update tests sophos * update test zyxel * update tests avaya * update tests cisco ucs * update tests huawei routers * update tests ibm datapower * update tests tripplite ups * update test avaya cajun * update test barracuda cloudgen * update test _cisco_generic * update test cisco nexus * update test assert_extend_cisco_generic * update test dell * update test hp compaq health * update test f5-big-ip * update metrics names * address reviews * add changelog * lint * update changelog * fix mib name * address reviews * revert to readynasos mib mapping * address review * remove tag * add spacing * Fix changelog * update changelog * fix changelog * remove unnecessary ip_address formatting * Add assert_all_profile_metrics_and_tags_covered * fix empty space * Add assert_all_profile_metrics_and_tags_covered * Add to test_profile__checkpoint_firewall_cpu_memory.py * Add assertions * better msg * format * not use f string * not use f string * Add ASSERT_ALL_PROFILE_EXCLUDED_TAGS * fix cisco profiles tags & snmprec & test * fix dell-rac snmprec (tag) & test * fix _generic-entity-sensor snmprec (tags + mapping) & test * fix alcatel-lucent-ent snmprec (tags + mapping) & test * fix alcatel-lucent-ind (tags + mapping) & test * rename anue-packet-broker snmprec to anue * better test output * fix aruba-clearpass tags & snmprec & test * fix aruba-wc snmprec & test * fix bluecat-server snmprec & test * fix checkpoint snmprec & test * fix eaton-epdu profile & test * fix hp-h3c-switch snmprec & test * fix huawei-routers snmprec & test * fix infinera-coriant-groove snmprec & test * fix juniper-variation test * fix juniper-pulse-secure tags & snmprec & test * fix nasuni-filer tags & snmprec & test * fix meraki-cloud-controller device tag name * fix netgear-readynas tag & snmprec & test * fix riverbed-interceptor (comment scalar metric) * fix servertech-pdu4 snmprec & test * fix sinetica-eagle-i snmprec & test * fix western-digital snmprec & test * revert netgear-readynas & resolve conflict * Update western-digital-mycloud-ex2-ultra.snmprec fix type in snmprec for western-digital * Update infinera-coriant-groove.snmprec fix type in snmprec for infinera-coriant * Update netgear-readynas.snmprec fix type in snmprec for netgear-readynas * update test_profiles.py * update core tests * let arista-switch test pass & fix it separately * minor changes to profiles * update _cisco-generic with the tooling * update alcatel-lucent-ent with the tooling * update alcatel-lucent-ind with the tooling * update alcatel-lucent-omni-access-wlc with the tooling * update aruba-wireless-controller with the tooling * fix tests for cisco profiles * update test for arista after fixing extends in profiles * add changelog * (turns out we cannot fix previous changelogs) * fix mapping #15322 * rebase on master * update test barracuda cloudgen * address reviews * address reviews * revert to readynasos mib mapping * remove tag * Add assert_all_profile_metrics_and_tags_covered * fix empty space * Add assert_all_profile_metrics_and_tags_covered * Add to test_profile__checkpoint_firewall_cpu_memory.py * Add assertions * better msg * format * not use f string * not use f string * Add ASSERT_ALL_PROFILE_EXCLUDED_TAGS * fix cisco profiles tags & snmprec & test * fix dell-rac snmprec (tag) & test * fix _generic-entity-sensor snmprec (tags + mapping) & test * fix alcatel-lucent-ent snmprec (tags + mapping) & test * fix alcatel-lucent-ind (tags + mapping) & test * rename anue-packet-broker snmprec to anue * better test output * fix aruba-clearpass tags & snmprec & test * fix aruba-wc snmprec & test * fix bluecat-server snmprec & test * fix checkpoint snmprec & test * fix eaton-epdu profile & test * fix hp-h3c-switch snmprec & test * fix huawei-routers snmprec & test * fix infinera-coriant-groove snmprec & test * fix juniper-variation test * fix juniper-pulse-secure tags & snmprec & test * fix nasuni-filer tags & snmprec & test * fix meraki-cloud-controller device tag name * rebase * fix servertech-pdu4 snmprec & test * fix sinetica-eagle-i snmprec & test * fix western-digital snmprec & test * rebase * Update western-digital-mycloud-ex2-ultra.snmprec fix type in snmprec for western-digital * Update infinera-coriant-groove.snmprec fix type in snmprec for infinera-coriant * rebase * update test_profiles.py * update core tests * let arista-switch test pass & fix it separately * minor changes to profiles * update _cisco-generic with the tooling * update alcatel-lucent-ent with the tooling * update alcatel-lucent-ind with the tooling * update alcatel-lucent-omni-access-wlc with the tooling * fix tests for cisco profiles * update test for arista after fixing extends in profiles * add changelog * (turns out we cannot fix previous changelogs) * fix mapping #15322 * address reviews * address reviews * fix nasuni-filer tags & snmprec & test * rebase * rebase * let arista-switch test pass & fix it separately * minor changes to profiles * update test for arista after fixing extends in profiles * fix cisco_nexus mapping & test for netgear * delete jupiter-variation.yaml * Update changelog Co-authored-by: jhgilbert <jen.gilbert@datadoghq.com> * fix netgear-readynas * unexpected failure due to diagnoses metadata * diagnoses metadata * diagnoses metadata --------- Co-authored-by: NouhaManai <nouha.manai@yahoo.fr> Co-authored-by: lizaerem <elizaveta.eremina@datadoghq.com> Co-authored-by: Elizaveta Eremina <70374721+lizaerem@users.noreply.github.com> Co-authored-by: jhgilbert <jen.gilbert@datadoghq.com>
Add profile for cyberpower-pdu