Skip to content

Implement Influx V2 Handling#65

Merged
AarC10 merged 18 commits intomainfrom
feature/Aaron/InfluxV2
Apr 2, 2026
Merged

Implement Influx V2 Handling#65
AarC10 merged 18 commits intomainfrom
feature/Aaron/InfluxV2

Conversation

@AarC10
Copy link
Copy Markdown
Member

@AarC10 AarC10 commented Feb 26, 2026

Description

Support Influx V2 which will do batched HTTP requests, instead of sending UDP packets for every single measurement group that gets received, which should reduce the number of network syscalls that need to be performed. Extend the DB handling interface, to maintain compatibility with both V1 and V2. If V2 is deemed good enough for higher bandwidth applications, then it could be considered acceptable to blast the V1 implementation in favor of V2.

Also, apologizing in advance if code is screwy. Sleep deprived enough that the letters on my screen are floating around x) and I totally didnt just whip this up in the last 2 hours

How Has This Been Tested?

Set up InfluxV2 locally, connected Grafana to the Influx V2 db, ran gsw service and fsw sim. Confirmed to work
image

Checklist:

  • New functionality is documented in the necessary spots (i.e new functions documented in the header)
  • Unit tests cover any new functionality or edge cases that the PR was meant to resolve (if applicable)
  • The CI checks are passing
  • I reviewed my own code in the GitHub diff and am sure that each change is intentional

@AarC10 AarC10 requested a review from a team February 26, 2026 07:34
@AarC10
Copy link
Copy Markdown
Member Author

AarC10 commented Feb 26, 2026

(Im going to profile this tomorrow)

@AarC10
Copy link
Copy Markdown
Member Author

AarC10 commented Feb 26, 2026

(Im going to profile this tomorrow)

And by tomorrow, I mean in like hopefully 10-20 hours

@AarC10
Copy link
Copy Markdown
Member Author

AarC10 commented Feb 26, 2026

so today

Copy link
Copy Markdown
Contributor

@K3das K3das left a comment

Choose a reason for hiding this comment

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

I still want to run this locally and mess around with it, but I have a few early suggestions.

Comment thread cmd/gsw_service.go Outdated
Comment thread lib/db/db.go Outdated
Comment thread lib/db/influx_v2.go Outdated
@AarC10 AarC10 force-pushed the feature/Aaron/InfluxV2 branch from 40e7f69 to f936d5f Compare March 26, 2026 20:21
@AarC10 AarC10 force-pushed the feature/Aaron/InfluxV2 branch from b167dee to fb44ca1 Compare March 26, 2026 20:46
Copy link
Copy Markdown
Contributor

@K3das K3das left a comment

Choose a reason for hiding this comment

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

looks good to me except my one comment.

adding docker support for v2 would probably be a later pr.

Comment thread cmd/gsw_service.go Outdated
@AarC10 AarC10 merged commit 20a369a into main Apr 2, 2026
2 checks passed
@AarC10 AarC10 deleted the feature/Aaron/InfluxV2 branch April 2, 2026 23:16
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.

3 participants