{"id":18135403,"url":"https://github.com/timstott/fluent-plugin-claymore","last_synced_at":"2026-04-29T01:34:11.806Z","repository":{"id":56846890,"uuid":"118732215","full_name":"timstott/fluent-plugin-claymore","owner":"timstott","description":":bar_chart: Extract time series metrics from Claymore Dual Miner logs","archived":false,"fork":false,"pushed_at":"2018-01-25T08:12:51.000Z","size":31,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-12-01T13:59:32.913Z","etag":null,"topics":["claymore","fluentd-plugin","grafana","influxdb"],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/timstott.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":"2018-01-24T07:56:21.000Z","updated_at":"2018-01-26T09:26:37.000Z","dependencies_parsed_at":"2022-09-09T01:00:42.086Z","dependency_job_id":null,"html_url":"https://github.com/timstott/fluent-plugin-claymore","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/timstott/fluent-plugin-claymore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timstott%2Ffluent-plugin-claymore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timstott%2Ffluent-plugin-claymore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timstott%2Ffluent-plugin-claymore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timstott%2Ffluent-plugin-claymore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/timstott","download_url":"https://codeload.github.com/timstott/fluent-plugin-claymore/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/timstott%2Ffluent-plugin-claymore/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32407164,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"ssl_error","status_checked_at":"2026-04-28T19:37:55.688Z","response_time":56,"last_error":"SSL_read: 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":["claymore","fluentd-plugin","grafana","influxdb"],"created_at":"2024-11-01T14:07:11.957Z","updated_at":"2026-04-29T01:34:11.792Z","avatar_url":"https://github.com/timstott.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fluent-plugin-claymore\n\n[![Gem](https://img.shields.io/gem/v/fluent-plugin-claymore.svg?style=flat-square)](https://rubygems.org/gems/fluent-plugin-claymore)\n[![CircleCI](https://img.shields.io/circleci/project/github/timstott/fluent-plugin-claymore.svg?style=flat-square)](https://circleci.com/gh/timstott/fluent-plugin-claymore/tree/master)\n[![Gemnasium](https://img.shields.io/gemnasium/timstott/fluent-plugin-claymore.svg?style=flat-square)](https://gemnasium.com/github.com/timstott/fluent-plugin-claymore)\n\n[Fluentd](https://fluentd.org/) parser plugin to extract metrics from Claymore\nDual Miner logs\n\n## Requirements\n\n| fluentd    | ruby   |\n|------------|--------|\n| \u003e= v0.14.0 | \u003e= 2.1 |\n\n| Claymore Dual Miner | fluent-plugin-claymore |\n|---------------------|------------------------|\n| v10.0               | \u003e= v1.0                |\n\n## Installation\n\n$ fluent-gem install fluent-plugin-claymore\n\n## Usage\n\nUse with any input plugins that have `parse` directive:\n\n```\n# fluentd.conf\n\u003csource\u003e\n  @type tail\n  path *.txt\n  read_from_head true\n  tag claymore.data\n  \u003cparse\u003e\n    @type claymore\n    # zero configuration 🎉\n  \u003c/parse\u003e\n\u003c/source\u003e\n\n\u003cmatch **\u003e\n  @type stdout\n\u003c/match\u003e\n```\n\nDemo configuration and sample data are available in [example](./example).\n```console\ncd example\nfluentd -c fluentd.conf\n```\n\nA production configuration which uses InfluxDB to store time series may look like:\n\n```\n\u003csource\u003e\n  @type tail\n  path path/to/claymore/*_log.txt\n  pos_file path/to/pos.pos\n  refresh_interval 5\n  tag claymore.data\n  \u003cparse\u003e\n    @type claymore\n  \u003c/parse\u003e\n\u003c/source\u003e\n\n# re-tag events to use tag names as InfluxDB measurements\n\u003cmatch claymore.data\u003e\n  @type rewrite_tag_filter\n  \u003crule\u003e\n    key type\n    pattern GPU_HASH_RATE\n    tag claymore.data.hash_rate\n  \u003c/rule\u003e\n  \u003crule\u003e\n    key type\n    pattern GPU_SHARE_FOUND\n    tag claymore.data.share_found\n  \u003c/rule\u003e\n  \u003crule\u003e\n    key type\n    pattern GPU_TEMP\n    tag claymore.data.temperature\n  \u003c/rule\u003e\n\u003c/match\u003e\n\n\u003cmatch claymore.data.*\u003e\n  @type copy\n\n  \u003cstore\u003e\n    @type stdout\n  \u003c/store\u003e\n  \u003cstore\u003e\n    @type influxdb\n    host influxdb\n    port 8086\n    dbname claymore\n    # uses fluentd tag when measurement not specified\n    # measurement xxx\n    time_precision ms\n    auto_tags false\n    tag_keys [\"asset\", \"gpu\", \"hostname\", \"type\"]\n    sequence_tag _seq\n    \u003cbuffer\u003e\n      flush_interval 1\n    \u003c/buffer\u003e\n  \u003c/store\u003e\n\u003c/match\u003e\n```\n\n\n\n## Events/Metrics\n\n```json\n[\n  { \"type\": \"GPU_HASH_RATE\", \"asset\": \"SC\", \"gpu\": 1, \"hash_rate\": 300.583 },\n  { \"type\": \"GPU_SHARE_FOUND\", \"asset\": \"SC\", \"gpu\": 1, \"count\": 1 },\n  { \"type\": \"TOTAL_HASH_RATE\", \"asset\": \"ETH\", \"hash_rate\": 83.153 },\n  { \"type\": \"GPU_TEMP\", \"gpu\": 1, \"temperature\": 47, \"old_fan\": 0, \"new_fan\": 75 },\n  { \"type\": \"CONNECTION_LOST\", \"asset\": \"SC\", \"count\": 1 }\n]\n```\n\n## Caveats\n\n- The parser plugin only works with `input` plugins, not\n  `filter` plugins. This is because `filter` plugins are unable to yield\n  multiple results unlike `input`.\n\n- The claymore logs timestamps is ignored since it excludes the date. Instead\n  the timestamp when the line is read is used.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimstott%2Ffluent-plugin-claymore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimstott%2Ffluent-plugin-claymore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimstott%2Ffluent-plugin-claymore/lists"}