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

kubectl get profiles timerange is buggy #37

Closed
gianarb opened this issue Apr 4, 2020 · 0 comments · Fixed by #38
Closed

kubectl get profiles timerange is buggy #37

gianarb opened this issue Apr 4, 2020 · 0 comments · Fixed by #38

Comments

@gianarb
Copy link
Member

gianarb commented Apr 4, 2020

You can get the list of profiles for a particular service in a timerange with
the command:

kubectl profefe get profiles --service <service-name>

It supports --from and --to it can be a duration -30m, -2h or a fixed
time formatted in RFC3339.

This feature does not work as expected.

gianarb pushed a commit that referenced this issue Apr 4, 2020
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant