klen / klen/graphite-beacon

When parsing interval 1min is interpreted as 1second rather than quitting with a parse error

Open
#52 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
450
Forks
117
PR merge metrics
No merged PRs in 30d

Description

It would be nice if graphite-beacon quit with a parse error like the JSON parse error when it encountered time units it didn't understand.

When I pass in:
"interval": "1min",
by mistake instead of "1minute" it will actually poll every second.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the configuration interval parser and the handling for JSON parse errors. Add coverage for the invalid value "1min" and verify that graphite-beacon exits with a parse error instead of treating it as one second.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
observability-sre
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.