- ๐ง Backend Developer at Batch
- ๐ Lyon, France
- ๐ง 25 years old
- โจ๏ธ Keyboard junkie
wazazaby / vimebu Goto Github PK
View Code? Open in Web Editor NEWSmall and efficient metric builder for VictoriaMetrics.
License: MIT License
Small and efficient metric builder for VictoriaMetrics.
License: MIT License
The following test fails:
func TestParallel(t *testing.T) {
var wg sync.WaitGroup
wg.Add(200)
for i := 0; i < 200; i++ {
i := i
go func() {
defer wg.Done()
Metric(fmt.Sprintf("foobar%d", i)).
Label("host", "foobar").
Label("compressed", "false").
GetOrCreateCounter().
Add(300)
}()
}
wg.Wait()
}
with this panic:
=== RUN TestParallel
panic: BUG: invalid metric name "foobar117{host=\"foobar\",compressed=\"false\"": missing closing curly brace at the end of "foobar117"
goroutine 101 [running]:
github.com/VictoriaMetrics/metrics.(*Set).GetOrCreateCounter(0x105162a20, {0xc0000a80c0, 0x2a})
/Users/vincent/go/pkg/mod/github.com/!victoria!metrics/[email protected]/set.go:167 +0x4d0
github.com/VictoriaMetrics/metrics.GetOrCreateCounter(...)
/Users/vincent/go/pkg/mod/github.com/!victoria!metrics/[email protected]/counter.go:85
github.com/wazazaby/vimebu.(*Builder).GetOrCreateCounter(0xc000315f90)
/Users/vincent/dev/devtools/vimebu/victoria_metrics.go:11 +0x54
github.com/wazazaby/vimebu.TestParallel.func1()
/Users/vincent/dev/devtools/vimebu/vimebu_test.go:404 +0x178
created by github.com/wazazaby/vimebu.TestParallel in goroutine 38
/Users/vincent/dev/devtools/vimebu/vimebu_test.go:398 +0x70
FAIL github.com/wazazaby/vimebu 0.139s
FAIL
It works fine with vimebu v1.2.1 but fails with v1.3.0
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.