added default caching for exporters

This commit is contained in:
gezimbll
2025-02-13 17:04:57 +01:00
committed by Dan Christian Bogos
parent 594dc745b8
commit 322afc585f
8 changed files with 541 additions and 93 deletions

View File

@@ -319,12 +319,12 @@ func benchmarkCall(b *testing.B) {
}
}
func BenchmarkcapsWithLimit(b *testing.B) {
benchmarkInit(b, "caps_queue_bench")
benchmarkCall(b)
}
// func BenchmarkcapsWithLimit(b *testing.B) {
// benchmarkInit(b, "caps_queue_bench")
// benchmarkCall(b)
// }
func BenchmarkcapsWithoutLimit(b *testing.B) {
benchmarkInit(b, "tutmysql")
benchmarkCall(b)
}
// func BenchmarkcapsWithoutLimit(b *testing.B) {
// benchmarkInit(b, "tutmysql")
// benchmarkCall(b)
// }

View File

@@ -399,8 +399,18 @@ func testConfigSSetConfigEEs(t *testing.T) {
exp := map[string]any{
"enabled": true,
"attributes_conns": []any{},
"cache": map[string]any{"*file_csv": map[string]any{"limit": -1., "precache": false, "replicate": false, "static_ttl": false, "remote": false, "ttl": "5s"}},
"exporters": []any{eporter},
"cache": map[string]any{
"*file_csv": map[string]any{"limit": -1., "precache": false, "replicate": false, "static_ttl": false, "remote": false},
"*amqp_json_map": map[string]any{"limit": -1., "precache": false, "replicate": false, "static_ttl": false, "remote": false},
"*amqpv1_json_map": map[string]any{"limit": -1., "precache": false, "replicate": false, "static_ttl": false, "remote": false},
"*els": map[string]any{"limit": -1., "precache": false, "replicate": false, "static_ttl": false, "remote": false},
"*kafka_json_map": map[string]any{"limit": -1., "precache": false, "replicate": false, "static_ttl": false, "remote": false},
"*nats_json_map": map[string]any{"limit": -1., "precache": false, "replicate": false, "static_ttl": false, "remote": false},
"*s3_json_map": map[string]any{"limit": -1., "precache": false, "replicate": false, "static_ttl": false, "remote": false},
"*sql": map[string]any{"limit": -1., "precache": false, "replicate": false, "static_ttl": false, "remote": false},
"*sqs_json_map": map[string]any{"limit": -1., "precache": false, "replicate": false, "static_ttl": false, "remote": false},
},
"exporters": []any{eporter},
}
exp = map[string]any{
config.EEsJson: exp,