influxdb/pkg
WeblWabl 879e34a0c2
feat: Adds statistics measurement for compact-throughput (#26754)
This PR adds the following as an available `/debug/vars` field. 
```
"stats" : { "compact-throughput-usage-percentage" : <percentage used> }
```

This will show the current compaction throughput usage WRT the available limiter tokens as defined by the golang rate limiter. 

https://pkg.go.dev/golang.org/x/time/rate#Limiter.Limit
https://pkg.go.dev/golang.org/x/time/rate#Limiter.Tokens

The algorithm for finding our usage is the following 

```
percentage = 100 * (1 - (tokens) / limit)
```
2025-10-01 11:49:18 -05:00
..
binaryutil Partition series file. 2018-01-10 08:33:25 -07:00
bloom fix(influxd): update xxhash, avoid stringtoslicebyte in cache (#578) (#25622) (#25624) 2024-12-06 16:05:03 -06:00
bytesutil Cleanup pkg package 2018-01-21 12:08:25 -08:00
data fix: switch MeasurementFields from atomic.Value to sync.Map (#26022) 2025-02-13 16:53:25 -08:00
deep build: upgrade to go1.18 (#23250) 2022-03-31 16:17:57 -05:00
encoding/simple8b chore: upgrade Go to v1.19.3 (1.x) (#23941) 2022-11-28 12:15:47 -05:00
errors chore: upgrade Go to v1.19.3 (1.x) (#23941) 2022-11-28 12:15:47 -05:00
escape pkg/escape: Add benchmarks for all bytes escape/unescape funcs 2018-01-16 11:12:47 +13:00
estimator fix(influxd): update xxhash, avoid stringtoslicebyte in cache (#578) (#25622) (#25624) 2024-12-06 16:05:03 -06:00
file fix: add tests for file rename across volumes (#23787) 2022-10-13 09:26:59 -07:00
limiter feat: Adds statistics measurement for compact-throughput (#26754) 2025-10-01 11:49:18 -05:00
metrics feat: file store merge metrics (#26615) 2025-07-18 12:18:37 -07:00
mmap fix: fully clean up partially opened TSI (#23430) 2022-06-10 11:31:29 -07:00
pool Cleanup pkg package 2018-01-21 12:08:25 -08:00
pprofutil Fix retain/release hang issues. 2017-12-06 09:09:41 -07:00
radix inmem: use radix sort for series ids 2018-07-17 12:31:12 -06:00
reporthelper chore: run goimports -w ./ 2021-01-29 11:40:02 -05:00
rhh fix(influxd): update xxhash, avoid stringtoslicebyte in cache (#578) (#25622) (#25624) 2024-12-06 16:05:03 -06:00
slices refactor: Change ToLower comparisons to EqualFold (#18147) 2020-05-18 19:46:59 -04:00
snowflake pkg/snowflake: be more robust against sequence rollover 2018-08-16 11:18:06 -06:00
tar chore: upgrade Go to v1.19.3 (1.x) (#23941) 2022-11-28 12:15:47 -05:00
testing/assert storage service 2017-10-25 13:38:07 -07:00
testttp chore: Add kit (#21086) 2021-03-30 13:09:04 -04:00
tlsconfig fix(tls): Enable configuration of TLS 1.3 (#20939) 2021-03-12 16:35:28 -05:00
tracing feat: Upgrade flux to v0.196.1 (#26041) 2025-02-20 13:46:06 -06:00
README.md Correctly name pkg README 2015-12-17 11:24:58 -08:00

README.md

pkg/ is a collection of utility packages used by the InfluxDB project without being specific to its internals.

Utility packages are kept separate from the InfluxDB core codebase to keep it as small and concise as possible. If some utilities grow larger and their APIs stabilize, they may be moved to their own repository under the InfluxDB organization, to facilitate re-use by other projects. However that is not the priority.

Because utility packages are small and neatly separated from the rest of the codebase, they are a good place to start for aspiring maintainers and contributors. Get in touch if you want to help maintain them!