{"id":20167113,"url":"https://github.com/mixa3607/eh_hath","last_synced_at":"2026-05-06T04:05:22.089Z","repository":{"id":161626541,"uuid":"636285103","full_name":"mixa3607/EH_hath","owner":"mixa3607","description":"Fork of H@H with metrics in docker","archived":false,"fork":false,"pushed_at":"2026-03-07T11:50:21.000Z","size":192,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-07T17:59:55.298Z","etag":null,"topics":["docker","docker-compose","hath","metrics"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mixa3607.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":"2023-05-04T14:01:29.000Z","updated_at":"2026-03-07T11:48:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"5728e6b2-7d18-4486-9d43-3bd97ad154e2","html_url":"https://github.com/mixa3607/EH_hath","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mixa3607/EH_hath","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mixa3607%2FEH_hath","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mixa3607%2FEH_hath/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mixa3607%2FEH_hath/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mixa3607%2FEH_hath/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mixa3607","download_url":"https://codeload.github.com/mixa3607/EH_hath/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mixa3607%2FEH_hath/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32677935,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T02:33:58.958Z","status":"ssl_error","status_checked_at":"2026-05-06T02:33:39.611Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["docker","docker-compose","hath","metrics"],"created_at":"2024-11-14T00:47:26.172Z","updated_at":"2026-05-06T04:05:22.066Z","avatar_url":"https://github.com/mixa3607.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# H@H client with prometheus metrics\r\n![ci](https://img.shields.io/github/actions/workflow/status/mixa3607/EH_hath/push.yml?branch=master\u0026style=flat-square)\r\n![license](https://img.shields.io/github/license/mixa3607/EH_hath?style=flat-square)\r\n\r\n## About\r\nThis is fork of original [H@H 1.6.4](https://repo.e-hentai.org/hath/HentaiAtHome_1.6.4_src.zip) from [e-hentai.org](https://e-hentai.org/). You can compare this code with branch `SRC_1.6.4`\r\n\r\nSome code used from [this post (roundpixl)](https://forums.e-hentai.org/index.php?showtopic=255336)\r\n\r\n\u003e `docker-compose` example located in [docker-compose.example](./docker-compose.example)\r\n\r\n## Configuration\r\nAdded some cli args:\r\n- `--metrics-name=\u003cvalue for labels\u003e` default: \"\"\r\n- `--metrics-user=\u003cvalue for labels\u003e` default: \"\"\r\n- `--metrics-address=\u003clistening ip\u003e` default: \"127.0.0.1\"\r\n- `--metrics-port=\u003cmetrics port\u003e` default: \"9100\"\r\n- `--enable-metrics=\u003ctrue|false\u003e` default: \"false\"\r\n\r\n## Metrics\r\n\r\n|Name|Desc|Labels|Type|\r\n|----|----|------|----|\r\n|eh_hath_client_status|Client Status|user, name, host|gauge|\r\n|eh_hath_client_uptime_seconds|Client uptime in seconds|user, name, host|counter|\r\n|eh_hath_transfer_tx_files_count|Amount of files sent since last restart|user, name, host|counter|\r\n|eh_hath_transfer_rx_files_count|Amount of files received since last restart|user, name, host|counter|\r\n|eh_hath_transfer_tx_bytes|Bytes sent since last restart|user, name, host|counter|\r\n|eh_hath_transfer_rx_bytes|Bytes received since last restart|user, name, host|counter|\r\n|eh_hath_cache_size_limit_bytes|Reserved maximal cache size|user, name, host|gauge|\r\n|eh_hath_cache_size_bytes|Cache size|user, name, host|gauge|\r\n|eh_hath_cache_size_free_bytes|Free space reserved for H@H cache|user, name, host|gauge|\r\n|eh_hath_cache_size_used_ratio|How much of the reserved cache is already in use|user, name, host|gauge|\r\n|eh_hath_cache_file_count|Count of files currently in client cache|user, name, host|counter|\r\n|eh_hath_connections_open_count|Currently open connections to the client|user, name, host|gauge|\r\n|eh_hath_connections_max_count|Max connections|user, name, host|gauge|\r\n|eh_hath_last_server_contact_epoch|Epoch timestamp of last server contact|user, name, host|counter|\r\n\r\n`eh_hath_client_status` values:\r\n- 0 - Unknown\r\n- 10 - Suspended\r\n- 20 - Running\r\n\r\nLabel values:\r\n- user - arg `--metrics-name=$METRICS_CLIENT_NAME`\r\n- name - arg `--metrics-user=$METRICS_USER_ID`\r\n- host - resolved from command server\r\n\r\n\r\n### Grafana sample dashboard\r\n![grafana](./grafana1.png)\r\n\u003e ### For more metrics you can also use [EH_metrics](https://github.com/mixa3607/EH_metrics) project\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmixa3607%2Feh_hath","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmixa3607%2Feh_hath","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmixa3607%2Feh_hath/lists"}