Skip to content

Commit 0c24805

Browse files
committed
[collectd/redis] remove plugin
1 parent 4ce7dfb commit 0c24805

File tree

16 files changed

+38
-610
lines changed

16 files changed

+38
-610
lines changed

.chloggen/remove_redis.yaml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
2+
change_type: breaking
3+
4+
# The name of the component, or a single word describing the area of concern, (e.g. crosslink)
5+
component: collectd/redis
6+
7+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
8+
note: This plugin is removed at the end of its deprecation period.
9+
10+
# One or more tracking issues related to the change
11+
issues: [7079]
12+
13+
# (Optional) One or more lines of additional information to render under the primary note.
14+
# These lines will be padded with 2 spaces and then inserted directly into the document.
15+
# Use pipe (|) for multiline entries.
16+
subtext: |
17+
The collectd/redis smart agent monitor is removed. Please follow [this documentation](https://help.splunk.com/en/splunk-observability-cloud/manage-data/available-data-sources/supported-integrations-in-splunk-observability-cloud/opentelemetry-receivers/redis-receiver) to set up the Redis receiver.

internal/confmapprovider/discovery/config_test.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -262,14 +262,13 @@ var expectedConfig = Config{
262262
},
263263
},
264264
},
265-
component.MustNewIDWithName("smartagent", "collectd/redis"): {
265+
component.MustNewID("redis"): {
266266
Rule: map[component.ID]string{
267267
component.MustNewID("docker_observer"): `type == "container" and port == 6379`,
268268
},
269269

270270
Config: map[component.ID]map[string]any{
271271
defaultType: {
272-
"type": "collectd/redis",
273272
"auth": "password",
274273
},
275274
component.MustNewID("docker_observer"): {
@@ -282,7 +281,7 @@ var expectedConfig = Config{
282281
"successful": []any{
283282
map[any]any{
284283
"regexp": ".*",
285-
"message": "smartagent/collectd-redis receiver successful metric status",
284+
"message": "redis receiver successful metric status",
286285
},
287286
},
288287
},
@@ -301,8 +300,8 @@ var expectedConfig = Config{
301300
map[any]any{
302301
"regexp": "^redis_info plugin: Error .* - RedisError\\('-(WRONGPASS|NOAUTH|ERR AUTH).*$",
303302
"message": "Please ensure that your redis password is correctly specified in " +
304-
"`splunk.discovery.receivers.smartagent/collectd/redis.config.auth` or via the " +
305-
"`SPLUNK_DISCOVERY_RECEIVERS_SMARTAGENT_COLLECTD_REDIS_CONFIG_AUTH` environment variable.",
303+
"`splunk.discovery.receivers.redis/redis.config.auth` or via the " +
304+
"`SPLUNK_DISCOVERY_RECEIVERS_REDIS_CONFIG_AUTH` environment variable.",
306305
},
307306
},
308307
},

internal/confmapprovider/discovery/testdata/config.d/receivers/smartagent-collectd-redis.discovery.yaml renamed to internal/confmapprovider/discovery/testdata/config.d/receivers/redis.discovery.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
1-
smartagent/collectd/redis:
1+
redis:
22
rule:
33
docker_observer: type == "container" and port == 6379
44
config:
55
default:
6-
type: collectd/redis
76
auth: password
87
docker_observer:
98
auth: '`labels["auth"]`'
109
status:
1110
metrics:
1211
successful:
1312
- regexp: '.*'
14-
message: smartagent/collectd-redis receiver successful metric status
13+
message: redis receiver successful metric status
1514
statements:
1615
failed:
1716
- regexp: 'raise ValueError\(\"Unknown Redis response'
@@ -21,5 +20,5 @@ smartagent/collectd/redis:
2120
partial:
2221
- regexp: "^redis_info plugin: Error .* - RedisError\\('-(WRONGPASS|NOAUTH|ERR AUTH).*$"
2322
message: >-
24-
Please ensure that your redis password is correctly specified in `splunk.discovery.receivers.smartagent/collectd/redis.config.auth`
25-
or via the `SPLUNK_DISCOVERY_RECEIVERS_SMARTAGENT_COLLECTD_REDIS_CONFIG_AUTH` environment variable.
23+
Please ensure that your redis password is correctly specified in `splunk.discovery.receivers.redis/redis.config.auth`
24+
or via the `SPLUNK_DISCOVERY_RECEIVERS_REDIS_CONFIG_AUTH` environment variable.

internal/receiver/discoveryreceiver/config_test.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,11 @@ func TestValidConfig(t *testing.T) {
4343

4444
require.Equal(t, &Config{
4545
Receivers: map[component.ID]ReceiverEntry{
46-
component.MustNewIDWithName("smartagent", "redis"): {
46+
component.MustNewIDWithName("redis", ""): {
4747
Config: map[string]any{
4848
"auth": "password",
4949
"host": "`host`",
5050
"port": "`port`",
51-
"type": "collectd/redis",
5251
},
5352
ResourceAttributes: map[string]string{
5453
"receiver_attribute": "receiver_attribute_value",
@@ -119,17 +118,16 @@ func TestReceiverCreatorFactoryAndConfig(t *testing.T) {
119118

120119
receiverTemplate := dCfg.receiverCreatorReceiversConfig()
121120
expectedTemplate := map[string]any{
122-
"smartagent/redis": map[string]any{
121+
"redis": map[string]any{
123122
"config": map[string]any{
124123
"auth": "password",
125124
"host": "`host`",
126125
"port": "`port`",
127-
"type": "collectd/redis",
128126
},
129127
"resource_attributes": map[string]string{
130128
"discovery.endpoint.id": "`id`",
131-
"discovery.receiver.name": "redis",
132-
"discovery.receiver.type": "smartagent",
129+
"discovery.receiver.name": "",
130+
"discovery.receiver.type": "redis",
133131
"receiver_attribute": "receiver_attribute_value",
134132
},
135133
"rule": `type == "container" && name matches "(?i)redis"`,

internal/receiver/discoveryreceiver/testdata/config.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ discovery:
55
embed_receiver_config: true
66
correlation_ttl: 25s
77
receivers:
8-
smartagent/redis:
8+
redis:
99
rule: type == "container" && name matches "(?i)redis"
1010
config:
11-
type: collectd/redis
1211
auth: password
1312
host: '`host`'
1413
port: '`port`'

internal/signalfx-agent/pkg/core/modules.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import (
1515
_ "github.com/signalfx/signalfx-agent/pkg/monitors/collectd/php"
1616
_ "github.com/signalfx/signalfx-agent/pkg/monitors/collectd/python"
1717
_ "github.com/signalfx/signalfx-agent/pkg/monitors/collectd/rabbitmq"
18-
_ "github.com/signalfx/signalfx-agent/pkg/monitors/collectd/redis"
1918
_ "github.com/signalfx/signalfx-agent/pkg/monitors/collectd/systemd"
2019
_ "github.com/signalfx/signalfx-agent/pkg/monitors/collectd/zookeeper"
2120
_ "github.com/signalfx/signalfx-agent/pkg/monitors/conviva"

internal/signalfx-agent/pkg/core/modules_linux.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import (
2020
_ "github.com/signalfx/signalfx-agent/pkg/monitors/collectd/protocols"
2121
_ "github.com/signalfx/signalfx-agent/pkg/monitors/collectd/python"
2222
_ "github.com/signalfx/signalfx-agent/pkg/monitors/collectd/rabbitmq"
23-
_ "github.com/signalfx/signalfx-agent/pkg/monitors/collectd/redis"
2423
_ "github.com/signalfx/signalfx-agent/pkg/monitors/collectd/statsd"
2524
_ "github.com/signalfx/signalfx-agent/pkg/monitors/collectd/uptime"
2625
_ "github.com/signalfx/signalfx-agent/pkg/monitors/process"

internal/signalfx-agent/pkg/monitors/collectd/redis/genmetadata.go

Lines changed: 0 additions & 136 deletions
This file was deleted.

0 commit comments

Comments
 (0)