diff --git a/discovery/triton/triton.go b/discovery/triton/triton.go index d6a92f3af..242ac146d 100644 --- a/discovery/triton/triton.go +++ b/discovery/triton/triton.go @@ -215,7 +215,7 @@ func (d *Discovery) refresh() (tg *targetgroup.Group, err error) { dr := DiscoveryResponse{} err = json.Unmarshal(data, &dr) if err != nil { - return tg, fmt.Errorf("an error occurred unmarshaling the disovery response json. %s", err) + return tg, fmt.Errorf("an error occurred unmarshaling the discovery response json. %s", err) } for _, container := range dr.Containers { diff --git a/scrape/scrape_test.go b/scrape/scrape_test.go index a27ccb0aa..6c3d0cb19 100644 --- a/scrape/scrape_test.go +++ b/scrape/scrape_test.go @@ -880,7 +880,7 @@ func TestScrapeLoopAppendSampleLimit(t *testing.T) { t.Fatalf("Did not see expected sample limit error: %s", err) } - // Check that the Counter has been incremented a simgle time for the scrape, + // Check that the Counter has been incremented a single time for the scrape, // not multiple times for each sample. metric := dto.Metric{} err = targetScrapeSampleLimit.Write(&metric)