Ryan
06/15/2020, 3:33 PMSELECT 1 FROM custom_metadata WHERE team = "Team name"
for each team name in use. This was working fine, but today we noticed that the labels were failing to load in the Fleet sidebar. The request to /api/v1/kolide/labels
times out. The equivalent request fleetctl get labels
was working, but taking several seconds.
Are we creating too many labels here perhaps? Is there a better way to accomplish this instead?time curl -H "Authorization: Bearer <redacted>>" https://<fqdn>:8080/api/v1/kolide/labels > test.json
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:40 --:--:-- 0
curl: (92) HTTP/2 stream 1 was not closed cleanly: INTERNAL_ERROR (err 2)
real 0m40.024s
time fleetctl get labels
<output of all labels - 178 results>
real 0m2.370s
zwass
06/16/2020, 3:36 PMRyan
06/16/2020, 3:46 PMzwass
06/16/2020, 3:52 PMRyan
06/16/2020, 4:44 PM