influxdata / influxdata/telegraf

[Feature Request] Support get slowlog in redis

Open
#2,565 4 comments 0 reactions 0 assignees View on GitHub
area/redis feat help wanted size/l
Dominant language
Go
Stars
17.8k
Forks
5.8k
Avg merge
1d 20h
Merged PRs (30d)
161

Description

## Feature Request

Get slow log command from redis.

Example command:

```
> SLOWLOG GET
1) 1) (integer) 10595463
2) (integer) 1490323467
3) (integer) 8831
4) 1) "HGETALL"
2) "telegraf:metric:redis"
```
- A unique progressive identifier for every slow log entry.
- The unix timestamp at which the logged command was processed. (important)
- The amount of time needed for its execution, in microseconds. (important)
- The array composing the arguments of the command. (important)

Ref https://redis.io/commands/slowlog

### Use case:

Monitoring slow query in redis, time duration of command and count slow command

![redis_slow](https://cloud.githubusercontent.com/assets/1505720/24278753/4c64cf36-1078-11e7-95eb-16bb5d41d59a.png)

Contributor guide

Open the contributing guide

Research direction

No file or test is named in the issue. Start by reading Redis's SLOWLOG GET reference and locating Telegraf's existing Redis input entry point; done should expose the slow-log identifier, timestamp, duration, and command arguments as monitoring data.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, redis
Domain
observability
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.