{"id":21268963,"url":"https://github.com/qubole/metriks-addons","last_synced_at":"2025-06-12T03:12:58.920Z","repository":{"id":35722179,"uuid":"40000386","full_name":"qubole/metriks-addons","owner":"qubole","description":"Utilities for collecting metrics in a Rails Application","archived":false,"fork":false,"pushed_at":"2017-01-30T03:31:12.000Z","size":65,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-10-31T02:47:50.373Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/qubole.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":"2015-07-31T10:31:56.000Z","updated_at":"2017-05-02T04:29:39.000Z","dependencies_parsed_at":"2022-09-05T08:00:33.320Z","dependency_job_id":null,"html_url":"https://github.com/qubole/metriks-addons","commit_stats":null,"previous_names":["vrajat/metriks-addons","vrajat/metriks-opentsdb"],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qubole%2Fmetriks-addons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qubole%2Fmetriks-addons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qubole%2Fmetriks-addons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qubole%2Fmetriks-addons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qubole","download_url":"https://codeload.github.com/qubole/metriks-addons/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225693821,"owners_count":17509227,"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":[],"created_at":"2024-11-21T08:06:55.843Z","updated_at":"2024-11-21T08:06:56.554Z","avatar_url":"https://github.com/qubole.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Utilities for collecting metrics in a Rails Application\n\n[![Build Status](https://travis-ci.org/qubole/metriks-addons.svg)](https://travis-ci.org/qubole/metriks-addons)\n\nThis gem provides utilities for collecting and reporting metrics\nin a Rails Application. This gem uses [metriks](https://github.com/eric/metriks).\n\nThe first category of utilities is Reporters.\n\n## Reporters\nReporters are available for OpenTSDB, SignalFX and AWS Cloudwatch.\nThe design is heavily inspired by\n[Librato Reporter] (https://github.com/eric/metriks-librato_metrics)\n\n### OpenTSDBReporter\n\n``` ruby\n  reporter = Metriks::OpenTSDBReporter.new(host, tags, options)\n  reporter.start\n```\n1. host: hostname of OpenTSDB\n2. tags: A hash of tags that should be associated with every metric.\n3. options: A hash to control behavior of the reporter. Valid options are:\n\n### SignalFXReporter\n\n``` ruby\n  reporter = Metriks::SignalFXReporter.new(token, tags, options = {})\n  reporter.start\n```\n\n1. token: Token provided by SignalFX\n2. tags: A hash of tags that should be associated with every metric.\n\n### CloudWatchReporter\n\n``` ruby\n  reporter = Metriks::CloudWatchReporter.new((access_key, secret_key, namespace, tags, options = {}))\n  reporter.start\n```\n\n1. access_key: Access Key provided by AWS\n2. secret_key: Secret Key provided by AWS\n3. namespace: AWS CloudWatch namespace of the metric\n4. tags: A hash of tags that should be associated with every metric.\n\n### Options\n\nAll reporters accept a hash of options. Options are used to control the behavior\nof the reporter.\n\n| Option | Description (Default)|\n---------|----------------------|\n| prefix | Add a prefix to the metric name ()|\n| batch_size | Number of metrics to report in a API call (50)|\n| logger | Logger for debug and info messages (nil) |\n| registry | Metriks::Registry to use. (Metriks::Registry.default) |\n| interval | Interval between two runs (60 secs) |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqubole%2Fmetriks-addons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqubole%2Fmetriks-addons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqubole%2Fmetriks-addons/lists"}