{"id":19308706,"url":"https://github.com/mtulio/librato-exporter","last_synced_at":"2026-06-08T23:31:35.761Z","repository":{"id":89055278,"uuid":"156553666","full_name":"mtulio/librato-exporter","owner":"mtulio","description":"Librato metrics Exporter for Prometheus","archived":false,"fork":false,"pushed_at":"2018-11-13T23:56:00.000Z","size":3053,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-24T03:17:44.492Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mtulio.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-11-07T13:52:23.000Z","updated_at":"2018-11-13T23:55:34.000Z","dependencies_parsed_at":"2023-06-13T17:54:12.292Z","dependency_job_id":null,"html_url":"https://github.com/mtulio/librato-exporter","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/mtulio/librato-exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtulio%2Flibrato-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtulio%2Flibrato-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtulio%2Flibrato-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtulio%2Flibrato-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mtulio","download_url":"https://codeload.github.com/mtulio/librato-exporter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtulio%2Flibrato-exporter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34085321,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-08T02:00:07.615Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2024-11-10T00:16:09.222Z","updated_at":"2026-06-08T23:31:35.740Z","avatar_url":"https://github.com/mtulio.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# librato-exporter\n\nLibrato metrics Exporter for Prometheus\n\n\nThe Librato Exporter Exporter [consumes data from Librato API](https://www.librato.com/docs/api/) using the [Go lib](https://github.com/rcrowley/go-librato) exposing it for Prometheus.\n\nFor each Librato Metric, the Prometheus metric will be created:\n\n`librato_\u003cAccountAlias\u003e_timestamp`: Current timetamp of the metric. Label `name` is added to each metric\n`libratoe_\u003cAccountAlias\u003e_value`: Current value of the metric. Label `name` is added to each metric\n\n## BUILD\n\n`make build`\n\nThe binary will be created on `./bin` dir.\n\n## ARGUMENTS\n\n### REQUIRED\n\n`-librato.email` : Librato's Account Email\n\n`-librato.token` : Librato's Account Token\n\n`-metrics.filter` : Librato's metrics to be gathered sepparated by comma\n\n### OPTIONAL\n\n* Exporter API context\n\n`-web.listen-address` : HTTP port for the exporter API. Default: `9800`\n\n`-web.telemetry-path` : HTTP path for the exporter API. Default: `/metrics`\n\n* Librato context\n\n`-librato.account` : the Alias name of Librato's Account. This Alias will be used to a Prometheus metric subsystem. In the example above, the value of `\u003cAccountAlias\u003e` will be overrided. Default: `app`\n\n`-librato.interval` : the interval in seconds that the exporter will retrieve metrics from Librato API. Default: `300`\n\n`-librato.offset` : the offset in seconds that the exporter will calculate the `time_start` timestamp. Default: `120`\n\n* Metrics context\n\n`-metrics.resolution` : Librato's metrics resolution. This is global value. Default: `30`\n\n## USAGE\n\nShow Librato metrics\n\n```bash\n./bin/librato-exporter -librato.email=my@email.com -librato.token=myToken \\\n    -metrics.filter=myapp.res_time.global,myapp.pageview.success,myapp.view.success \\\n    -librato.interval=60 -metrics.resolution=30 -metrics.offset=120 \\\n    -librato.account=myapp\n```\n\n\u003e Sample output:\n\n```log\n# HELP librato_exporter_build_info A metric with a constant '1' value labeled by version, revision, branch, and goversion from which librato_exporter was built.\n# TYPE librato_exporter_build_info gauge\nlibrato_exporter_build_info{branch=\"\",goversion=\"go1.11.2\",revision=\"8c69428\",version=\"v0.1.0\"} 1\n# HELP librato_myapp_timestamp Librato metric last timestamp\n# TYPE librato_myapp_timestamp counter\nlibrato_myapp_timestamp{name=\"myapp.view.success\"} 1.54197078e+09\nlibrato_myapp_timestamp{name=\"myapp.pageview.success\"} 1.54197078e+09\nlibrato_myapp_timestamp{name=\"myapp.res_time.global\"} 1.54197078e+09\n# HELP librato_myapp_up Librato metric status for the last collect\n# TYPE librato_myapp_up gauge\nlibrato_myapp_up{name=\"myap.view.success\"} 1\nlibrato_myapp_up{name=\"myapp.pageview.success\"} 1\nlibrato_myapp_up{name=\"myapp.res_time.global\"} 1\n# HELP librato_myapp_value Librato metric value\n# TYPE librato_myapp_value gauge\nlibrato_myapp_value{name=\"myapp.view.success\"} 187\nlibrato_myapp_value{name=\"myapp.pageview.success\"} 790\nlibrato_myapp_value{name=\"myapp.res_time.global\"} 89.404956\n# HELP librato_scrape_collector_duration_seconds node_exporter: Duration of a collector scrape.\n# TYPE librato_scrape_collector_duration_seconds gauge\nlibrato_scrape_collector_duration_seconds{collector=\"myapp\"} 0.000108181\n# HELP librato_scrape_collector_success master_exporter: Whether a collector succeeded.\n# TYPE librato_scrape_collector_success gauge\nlibrato_scrape_collector_success{collector=\"myapp\"} 1\n```\n\n## USAGE DOCKER\n\nShow librato metrics running in docker\n\n```\ndocker run -p 9800:9800 -id mtulio/librato-exporter:latest \\\n    -librato.email=my@email.com -librato.token=myToken -metrics.filter=myapp.res_time.global,myapp.pageview.success,myapp.view.success \\\n    -librato.interval=60 -metrics.resolution=30 -metrics.offset=120 \\\n    -librato.account=myapp\n```\n\n## CONTRIBUTOR\n\n* Fork me\n* Open an PR with enhancements, bugfixes, etc\n* Open an issue\n* Write docs\n\n[...]\n\nYou are welcome. =)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtulio%2Flibrato-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmtulio%2Flibrato-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtulio%2Flibrato-exporter/lists"}