Skip to content

kea: add Kea DHCP statistics collector#202

Open
lamaral wants to merge 1 commit intomasterfrom
l_kea
Open

kea: add Kea DHCP statistics collector#202
lamaral wants to merge 1 commit intomasterfrom
l_kea

Conversation

@lamaral
Copy link
Copy Markdown
Contributor

@lamaral lamaral commented Mar 19, 2026

No description provided.

@lamaral lamaral requested a review from Copilot March 19, 2026 16:16
@lamaral lamaral self-assigned this Mar 19, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new igcollect collector script for Kea DHCP, intended to query the Kea Control Agent HTTP endpoint for all statistics and emit Graphite text-format metrics.

Changes:

  • Introduce igcollect/kea.py to fetch Kea “statistic-get-all” data over HTTP.
  • Add metric-name sanitization to make Kea statistic names Graphite-path compatible.
  • Print collected metrics with a common timestamp and configurable prefix/host/port.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread igcollect/kea.py Outdated
headers={'Content-Type': 'application/json'},
)
with urlopen(req, timeout=10) as response:
result = json.loads(response.read())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants