Skip to content

Commit 32f385a

Browse files
authored
Fix redisdb check on Redis 8 (#20227)
1 parent d829678 commit 32f385a

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

redisdb/changelog.d/20227.added

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add support of Redis 8

redisdb/datadog_checks/redisdb/redisdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424

2525
class Redis(AgentCheck):
26-
db_key_pattern = re.compile(r'^db\d+')
26+
db_key_pattern = re.compile(r'^db\d+$')
2727
slave_key_pattern = re.compile(r'^slave\d+')
2828
subkeys = ['keys', 'expires']
2929

redisdb/hatch.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
[[envs.default.matrix]]
44
python = ["3.12"]
5-
version = ["5.0", "6.0", "7.0", "cloud"]
5+
version = ["5.0", "6.0", "7.0", "8.0", "cloud"]
66

77
[envs.default.overrides]
88
matrix.version.env-vars = [
9-
{ key = "REDIS_VERSION", if = ["5.0", "6.0", "7.0"] },
10-
{ key = "CLOUD_ENV", value = "false", if = ["5.0", "6.0", "7.0"] },
9+
{ key = "REDIS_VERSION", if = ["5.0", "6.0", "7.0", "8.0"] },
10+
{ key = "CLOUD_ENV", value = "false", if = ["5.0", "6.0", "7.0", "8.0"] },
1111
{ key = "REDIS_VERSION", value="7.0", if = ["cloud"] },
1212
{ key = "CLOUD_ENV", value = "true", if = ["cloud"] },
1313
]

0 commit comments

Comments
 (0)