Skip to content
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

Collect dhcp-stats lacking "vlan" in the location #2555

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

hmpf
Copy link
Contributor

@hmpf hmpf commented Jan 10, 2023

Make fewer assumptions about what "location" looks like

@hmpf hmpf requested a review from lunkwill42 January 10, 2023 14:48
@codecov
Copy link

codecov bot commented Jan 10, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 56.69%. Comparing base (f92920c) to head (3cf58d9).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2555   +/-   ##
=======================================
  Coverage   56.69%   56.69%           
=======================================
  Files         602      602           
  Lines       43971    43971           
=======================================
  Hits        24931    24931           
  Misses      19040    19040           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-actions
Copy link

github-actions bot commented Jan 10, 2023

Test results

     12 files       12 suites   11m 24s ⏱️
3 320 tests 3 320 ✔️ 0 💤 0
9 435 runs  9 435 ✔️ 0 💤 0

Results for commit 3cf58d9.

♻️ This comment has been updated with latest results.

@hmpf hmpf force-pushed the dhcpd-stats-script branch from bd5c659 to 7a51f6a Compare January 10, 2023 15:46
Copy link
Member

@lunkwill42 lunkwill42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm reading the README and I don't fully understand the references to "location keys in dhcpd-pools".

IIRC, the script looks at the "shared networks" section of dhcpd-pools output. Each network definition from the DHCP config has a name.

The point we're trying to get across is that this script tries to interpret a VLAN tag and/or location name from this DHCP network name, to use as part of the generated Graphite metric name - with the end goal being that NAV will be able to associate the metric with one of the VLANs/broadcast domains it knows from the routers it monitors.

contrib/scripts/isc_dhpcd_graphite/isc_dhpcd_graphite.py Outdated Show resolved Hide resolved
contrib/scripts/isc_dhpcd_graphite/isc_dhpcd_graphite.py Outdated Show resolved Hide resolved
@hmpf
Copy link
Contributor Author

hmpf commented Jan 20, 2023

Dhcpd-pool never talks about DHCP network names, only about locations.

@hmpf hmpf requested a review from lunkwill42 January 20, 2023 10:59
@sonarcloud
Copy link

sonarcloud bot commented Jan 20, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link

sonarcloud bot commented Jan 3, 2024

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@hmpf hmpf force-pushed the dhcpd-stats-script branch 2 times, most recently from 605413c to c7ab553 Compare February 27, 2024 06:33
@hmpf hmpf force-pushed the dhcpd-stats-script branch 6 times, most recently from 325a8c7 to 3f2e4fb Compare March 7, 2024 09:00
Copy link

sonarcloud bot commented Mar 7, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@hmpf hmpf force-pushed the dhcpd-stats-script branch from 3f2e4fb to 3cf58d9 Compare March 7, 2024 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants