Bug/core metrics db #1582
No reviewers
Labels
No labels
1week
2weeks
Failed compliance check
IP cameras
NATS
Possible security concern
Review effort 1/5
Review effort 2/5
Review effort 3/5
Review effort 4/5
Review effort 5/5
UI
aardvark
accessibility
amd64
api
arm64
auth
back-end
bgp
blog
bug
build
checkers
ci-cd
cleanup
cnpg
codex
core
dependencies
device-management
documentation
duplicate
dusk
ebpf
enhancement
eta 1d
eta 1hr
eta 3d
eta 3hr
feature
fieldsurvey
github_actions
go
good first issue
help wanted
invalid
javascript
k8s
log-collector
mapper
mtr
needs-triage
netflow
network-sweep
observability
oracle
otel
plug-in
proton
python
question
reddit
redhat
research
rperf
rperf-checker
rust
sdk
security
serviceradar-agent
serviceradar-agent-gateway
serviceradar-web
serviceradar-web-ng
siem
snmp
sysmon
topology
ubiquiti
wasm
wontfix
zen-engine
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
carverauto/serviceradar!1582
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refs/pull/1582/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from GitHub pull request.
Original GitHub pull request: #708
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/708
Original created: 2025-05-02T06:34:24Z
Original updated: 2025-05-02T18:50:37Z
Original head: carverauto/serviceradar:bug/core_metrics_db
Original base: main
Original merged: 2025-05-02T18:50:20Z by @mfreeman451
No description provided.
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/708#discussion_r2071838932
Original created: 2025-05-02T16:08:03Z
Original path: pkg/core/server.go
Original line: 1030
not clear we need to be doing this, might come back and revisit it
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/708#discussion_r2071851044
Original created: 2025-05-02T16:18:07Z
Original path: pkg/db/db.go
Original line: 337
this looks dumb.. why are we inserting the same data into two different places?
Imported GitHub PR review comment.
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/708#discussion_r2072015019
Original created: 2025-05-02T18:45:20Z
Original path: pkg/db/db.go
Original line: 337
addressed, we are going to keep writing to the
pollerstable since it doesnt actually store a lot of data, and the performance hit from the pollers table is around .2 ms compared to 1-2ms to get it out of thepollers_historytable, so 10-20x difference. we modified the updatepollers function so that it only updates the table when the status has changed as well