Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(kubectl): better support for get profile timerange #38

Merged
merged 1 commit into from
Apr 4, 2020

Conversation

gianarb
Copy link
Member

@gianarb gianarb commented Apr 4, 2020

Fixed #37

There is still a bug in profefe to fix profefe/profefe#82

Now you can use:

kubectl profefe get profiles --service frontend --profile-type goroutine --from -20m

To get the last 20 minutes of goroutine profiles for the service
frontend.

Or you can use --to as well to specify when to stop the research

kubectl profefe get profiles --service auth --profile-type goroutine --from -2h --to -1h

It also support a fixed timerange in RFC3339 format

kubectl profefe get profiles --service query --profile-type goroutine --from "2019-10-12T07:20:50.52Z" --to "2019-10-13T07:20:50.52Z"

Time is converted to UTC.

Signed-off-by: Gianluca Arbezzano gianarb92@gmail.com

Fixed #37

There is still a bug in profefe to fix profefe/profefe#82

Now you can use:

```bash
kubectl profefe get profiles --service frontend --profile-type goroutine --from -20m
```

To get the last 20 minutes of goroutine profiles for the service
frontend.

Or you can use `--to` as well to specify when to stop the research

```bash
kubectl profefe get profiles --service auth --profile-type goroutine --from -2h --to -1h
```

It also support a fixed timerange in RFC3339 format

```bash
kubectl profefe get profiles --service query --profile-type goroutine --from "2019-10-12T07:20:50.52Z" --to "2019-10-13T07:20:50.52Z"
```

Time is converted to UTC.

Signed-off-by: Gianluca Arbezzano <gianarb92@gmail.com>
@gianarb gianarb merged commit 8110f79 into master Apr 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

kubectl get profiles timerange is buggy Question about get profiles with from and to
1 participant