Open kai8406 opened 3 weeks ago
Moreover, figuring out how to get the database (db) is also an issue.
did i miss sth? I see the getDB method exists in the 3.3.0 package
How can we filter out these unnecessary commands globally?
two options:
drop
rule to drop commands that we don't care about
{
"type": "drop",
"expr": "command == 'QUIT'"
}
/api/datasource/schema/update
API to update the schema at runtimeI would like to prefer to the later one
How can we filter out these unnecessary commands globally?
two options:
- we can provide a configuration at the agent level for the redis plugin to filter
at the server side pipeline, we can configure
drop
rule to drop commands that we don't care about
- check src/main/resources/schema/redis-metrics.json
- add a 'drop' transformer like:
{ "type": "drop", "expr": "command == 'QUIT'" }
- use the
/api/datasource/schema/update
API to update the schema at runtimeI would like to prefer to the later one
Excellent feature, very useful. In my personal testing, this expression doesn't support 'AND', can multiple drops only be configured through array format?
Lettuce works fine, but when replaced with Jedis, the following error is thrown:
test code
spring-boot: 2.3.12.RELEASE jedis:3.30
pom.xml
Java code:
The constructor of Jedis3 BinaryJedis doesn't have a getDB() method. After commenting out the related code, the ClassCastException is fixed and the agent works normally.
However, it includes some unnecessary commands.
How can we filter out these unnecessary commands globally?