{"id":17681847,"url":"https://github.com/josacar/sumologic-metrics","last_synced_at":"2025-04-19T17:23:41.006Z","repository":{"id":59156822,"uuid":"134069460","full_name":"josacar/sumologic-metrics","owner":"josacar","description":"Sumologic metrics worker in ruby ","archived":false,"fork":false,"pushed_at":"2020-03-24T17:07:06.000Z","size":30,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-26T08:20:33.233Z","etag":null,"topics":["carbon","graphite","metrics","ruby","sumologic"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/josacar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-19T14:31:36.000Z","updated_at":"2022-01-21T11:43:17.000Z","dependencies_parsed_at":"2022-09-13T20:10:59.055Z","dependency_job_id":null,"html_url":"https://github.com/josacar/sumologic-metrics","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josacar%2Fsumologic-metrics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josacar%2Fsumologic-metrics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josacar%2Fsumologic-metrics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josacar%2Fsumologic-metrics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/josacar","download_url":"https://codeload.github.com/josacar/sumologic-metrics/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":229346643,"owners_count":18058707,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["carbon","graphite","metrics","ruby","sumologic"],"created_at":"2024-10-24T09:12:19.057Z","updated_at":"2024-12-12T07:23:05.657Z","avatar_url":"https://github.com/josacar.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sumologic::Metrics\n\n[![Build Status](https://www.travis-ci.org/josacar/sumologic-metrics.svg?branch=master)](https://www.travis-ci.org/josacar/sumologic-metrics)\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fjosacar%2Fsumologic-metrics.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fjosacar%2Fsumologic-metrics?ref=badge_shield)\n[![Gem Version](https://badge.fury.io/rb/sumologic-metrics.svg)](https://badge.fury.io/rb/sumologic-metrics)\n\nUpload metrics to Sumologic!\n\n## Requirements\n\n- At least MRI 2.5 or JRuby 9.2.0.0\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'sumologic-metrics'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install sumologic-metrics\n\n## Usage\n\n```ruby\nrequire 'sumologic-metrics'\n\nurl = ENV.fetch('SUMOLOGIC_ENDPOINT')\n\nmetrics = Sumologic::Metrics.new(collector_uri: url)\nmetrics.push('cluster=prod node=lb-1 metric=cpu  ip=2.2.3.4 team=infra 99.12 1528020619')\n```\n\n### #push\n\nQueues the metric to the worker ( asynchronous )\n\n### #queued_metrics\n\nReturns the size of the queued items\n\n### #flush\n\nWaits synchronously until the queue is empty\n\n## Documentation\n\n- [Carbon 2.0](https://help.sumologic.com/Send-Data/Sources/02Sources-for-Hosted-Collectors/HTTP-Source/Upload-Data-to-an-HTTP-Source) formatted metrics\n\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/josacar/sumologic-metrics. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n\n[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fjosacar%2Fsumologic-metrics.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fjosacar%2Fsumologic-metrics?ref=badge_large)\n\n## Code of Conduct\n\nEveryone interacting in the Sumologic::Metrics project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/josacar/sumologic-metrics/blob/master/CODE_OF_CONDUCT.md).\n\n## Thanks\n\n- SegmentIO for their [analytics-ruby](https://github.com/segmentio/analytics-ruby) gem\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosacar%2Fsumologic-metrics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjosacar%2Fsumologic-metrics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosacar%2Fsumologic-metrics/lists"}