{"id":37184665,"url":"https://github.com/stitchfix/librato","last_synced_at":"2026-01-14T21:21:13.553Z","repository":{"id":57605564,"uuid":"77634905","full_name":"stitchfix/librato","owner":"stitchfix","description":"Librato client library for go","archived":true,"fork":false,"pushed_at":"2016-12-29T20:45:01.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":91,"default_branch":"master","last_synced_at":"2025-03-30T13:03:47.543Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stitchfix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-29T19:24:44.000Z","updated_at":"2023-01-28T17:53:28.000Z","dependencies_parsed_at":"2022-08-29T23:52:40.474Z","dependency_job_id":null,"html_url":"https://github.com/stitchfix/librato","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/stitchfix/librato","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stitchfix%2Flibrato","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stitchfix%2Flibrato/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stitchfix%2Flibrato/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stitchfix%2Flibrato/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stitchfix","download_url":"https://codeload.github.com/stitchfix/librato/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stitchfix%2Flibrato/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28434797,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-14T21:21:12.797Z","updated_at":"2026-01-14T21:21:13.543Z","avatar_url":"https://github.com/stitchfix.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"librato\n=======\n\nThis package provides an api for publishing gauges and counters to librato asynchonously.\n\nUsage\n----\n\nFrom Go:\n\n```go\n\n  // Configure the authentication credentials\n  // See struct docs for additional options\n  config := Config{\n    Email:  os.Getenv(\"LIBRATO_EMAIL\"),\n    APIKey: os.Getenv(\"LIBRATO_APIKEY\"),\n  }\n\n  // Create a new librato instance\n  // Each instance publishes independently of others, and\n  // may be used to connect to multiple accounts\n  l := librato.New(config)\n\n  // Add a new gauge measurement.\n  l.AddGauge(Gauge{Name: \"reticulated.splines\", Value: 1, Source: \"add-gauge\"})\n\n  // add a new counter measurement\n  l.AddCounter(Counter{Name: \"reticulated.splines.counter\", Value: 7, Source: \"add-counter\"})\n\n  // Create and add an aggregate gauge\n  a := Aggregate{Name: \"reticulated.splines\", Source: \"add-aggregate\"}\n  a.Add(12).Add(6).Add(5).Add(4).Add(5).Add(10).Add(3)\n  l.AddGauge(a.ToGauge())\n\n  // When done, call Shutdown().\n  // This operation is synchronous and will wait for the last\n  // publish of metrics to complete\n  l.Shutdown()\n\n  ```\n\n\nInstallation\n----\n\n  To install as a library, you can use `go get`:\n\n    go get github.com/stitchfix/librato\n\nAdditional Documentation\n----\nFor further documentation, please refer to godocs at\n\n[![GoDoc](https://godoc.org/github.com/stitchfix/librato?status.svg)](https://godoc.org/github.com/stitchfix/librato)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstitchfix%2Flibrato","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstitchfix%2Flibrato","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstitchfix%2Flibrato/lists"}