Ryan06/15/2020, 3:33 PM
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
SELECT 1 FROM custom_metadata WHERE team = "Team name"
times out. The equivalent request
was working, but taking several seconds. Are we creating too many labels here perhaps? Is there a better way to accomplish this instead?
fleetctl get labels
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
zwass06/16/2020, 3:36 PM
Ryan06/16/2020, 3:46 PM
zwass06/16/2020, 3:52 PM
Ryan06/16/2020, 4:44 PM