{"id":21878275,"url":"https://github.com/pepabo/mackerel-rb","last_synced_at":"2025-04-15T03:03:53.926Z","repository":{"id":35396804,"uuid":"39660900","full_name":"pepabo/mackerel-rb","owner":"pepabo","description":"Yet Another Mackerel Client for Ruby","archived":false,"fork":false,"pushed_at":"2023-01-05T07:40:02.000Z","size":54,"stargazers_count":14,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-15T03:03:43.185Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pepabo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-24T22:23:21.000Z","updated_at":"2023-01-05T07:39:32.000Z","dependencies_parsed_at":"2023-01-15T20:05:40.051Z","dependency_job_id":null,"html_url":"https://github.com/pepabo/mackerel-rb","commit_stats":null,"previous_names":["mizor/mackerel-rb"],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepabo%2Fmackerel-rb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepabo%2Fmackerel-rb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepabo%2Fmackerel-rb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pepabo%2Fmackerel-rb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pepabo","download_url":"https://codeload.github.com/pepabo/mackerel-rb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248997083,"owners_count":21195798,"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-28T08:12:09.407Z","updated_at":"2025-04-15T03:03:53.885Z","avatar_url":"https://github.com/pepabo.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mackerel-rb\n[![Gem Version](https://badge.fury.io/rb/mackerel-rb.svg)](http://badge.fury.io/rb/mackerel-rb)\n[![Build Status](https://travis-ci.org/pepabo/mackerel-rb.svg)](https://travis-ci.org/pepabo/mackerel-rb)\n[![Code Climate](https://codeclimate.com/github/pepabo/mackerel-rb/badges/gpa.svg)](https://codeclimate.com/github/pepabo/mackerel-rb)\n[![Dependency Status](https://gemnasium.com/pepabo/mackerel-rb.svg)](https://gemnasium.com/pepabo/mackerel-rb)\n\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'mackerel-rb'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install mackerel-rb\n\n## Usage\n\n```rb\nMackerel.configure do |config|\n  config.api_key = \"\u003cYour API Key\u003e\"               # Default: ENV['MACKEREL_APIKEY']\n  config.proxy   = \"http://proxy.example.com:80\"  # Default: nil (Not use http proxy)\nend\n\nhosts = Mackerel.hosts\nhosts.each do |host|\n  puts host\n  #=\u003e #\u003cHashie::Mash createdAt=1437422856 displayName=\"www001.mackerel-rb.dev\" id=\"Dummmmmmmmy\", ..., status=\"standby\" type=\"unknown\"\u003e\nend\n```\n\n## Feature\n\n#### Services\n\n- [x] List of Services - `GET/api/v0/services`\n- [x] List of metric-names - `GET/api/v0/service/\u003cserviceName\u003e/metrics-names`\n\n#### Roles\n\n- [x] List of Roles - `GET/api/v0/services/\u003cserviceName\u003e/roles`\n\n#### Hosts\n\n- [x] Registering host information - `POST/api/v0/hosts`\n- [x] Getting host information - `GET/api/v0/hosts/\u003chostId\u003e`\n- [x] Updating host information - `PUT/api/v0/hosts/\u003chostId\u003e`\n- [x] Updating host status - `POST/api/v0/hosts/\u003chostId\u003e/status`\n- [x] Updating host roles - `PUT/api/v0/hosts/\u003chostId\u003e/role-fullnames`\n- [x] Retiring a host - `POST/api/v0/hosts/\u003chostId\u003e/retire`\n- [x] List of hosts - `GET/api/v0/hosts.json`\n- [x] Getting host metrics - `GET/api/v0/hosts/\u003chostId\u003e/metrics`\n- [x] List of metric-names - `GET/api/v0/hosts/\u003chostId\u003e/metrics-names`\n\n#### Metrics\n\n- [x] Posting metrics - `POST/api/v0/tsdb`\n- [x] Getting latest metrics - `GET/api/v0/tsdb/latest`\n- [ ] Posting graph definitions - `POST/api/v0/graph-defs/create`\n- [x] Posting service metrics - `POST/api/v0/services/\u003cserviceName\u003e/tsdb`\n- [x] Posting monitoring check results - `POST/api/v0/monitoring/checks/report`\n\n#### Monitors\n\n- [ ] Register monitor configurations - `POST/api/v0/monitors`\n- [x] Get monitor configurations - `GET/api/v0/monitors`\n- [x] Get monitor configurations - `GET/api/v0/monitors/\u003cmonitorId\u003e`\n- [ ] Update monitor configurations - `PUT/api/v0/monitors/\u003cmonitorId\u003e`\n- [ ] Delete monitor configurations - `DELETE/api/v0/monitors/\u003cmonitorId\u003e`\n\n#### Dashboards\n\n- [x] Creating Dashboards - `POST/api/v0/dashboards`\n- [x] Getting Dashboards - `GET/api/v0/dashboards/\u003cdashboardId\u003e`\n- [x] Updating Dashboards - `PUT/api/v0/dashboards/\u003cdashboardId\u003e`\n- [x] Deleting Dashboards - `DELETE/api/v0/dashboards/\u003cdashboardId\u003e`\n- [x] List of Dashboards - `GET/api/v0/dashboards`\n\n#### Alerts\n\n- [x] List of Alerts - `GET/api/v0/alerts`\n- [x] Closing Alert - `POST/api/v0/alerts/\u003calertId\u003e/close`\n\n#### Organization\n\n- [x] Getting Organization - `GET/api/v0/org`\n\n## Contributing\n\n1. Fork it ( https://github.com/pepabo/mackerel-rb/fork )\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create a new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpepabo%2Fmackerel-rb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpepabo%2Fmackerel-rb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpepabo%2Fmackerel-rb/lists"}