{"id":30722594,"url":"https://github.com/itning/s-ui-traffic-exporter","last_synced_at":"2025-09-03T11:09:41.639Z","repository":{"id":311457959,"uuid":"1043762891","full_name":"itning/s-ui-traffic-exporter","owner":"itning","description":"Exporter for traffic information from s-ui to Prometheus.","archived":false,"fork":false,"pushed_at":"2025-08-24T15:17:50.000Z","size":147,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-24T20:11:08.937Z","etag":null,"topics":["exporter","prometheus","traffic","x-ui"],"latest_commit_sha":null,"homepage":"","language":"Go","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/itning.png","metadata":{"files":{"readme":"README-cn.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,"zenodo":null}},"created_at":"2025-08-24T15:12:22.000Z","updated_at":"2025-08-24T15:21:46.000Z","dependencies_parsed_at":"2025-08-24T20:21:24.480Z","dependency_job_id":null,"html_url":"https://github.com/itning/s-ui-traffic-exporter","commit_stats":null,"previous_names":["itning/s-ui-traffic-exporter"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/itning/s-ui-traffic-exporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itning%2Fs-ui-traffic-exporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itning%2Fs-ui-traffic-exporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itning%2Fs-ui-traffic-exporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itning%2Fs-ui-traffic-exporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/itning","download_url":"https://codeload.github.com/itning/s-ui-traffic-exporter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/itning%2Fs-ui-traffic-exporter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273431459,"owners_count":25104508,"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","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["exporter","prometheus","traffic","x-ui"],"created_at":"2025-09-03T11:07:54.522Z","updated_at":"2025-09-03T11:09:41.625Z","avatar_url":"https://github.com/itning.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch3 align=\"center\"\u003es-ui Traffic Exporter\u003c/h3\u003e\n\u003cdiv align=\"center\"\u003e\n\n[![GitHub stars](https://img.shields.io/github/stars/itning/s-ui-traffic-exporter.svg?style=social\u0026label=Stars)](https://github.com/itning/s-ui-traffic-exporter/stargazers)\n[![GitHub forks](https://img.shields.io/github/forks/itning/s-ui-traffic-exporter.svg?style=social\u0026label=Fork)](https://github.com/itning/s-ui-traffic-exporter/network/members)\n[![GitHub watchers](https://img.shields.io/github/watchers/itning/s-ui-traffic-exporter.svg?style=social\u0026label=Watch)](https://github.com/itning/s-ui-traffic-exporter/watchers)\n[![GitHub followers](https://img.shields.io/github/followers/itning.svg?style=social\u0026label=Follow)](https://github.com/itning?tab=followers)\n\n\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[![GitHub issues](https://img.shields.io/github/issues/itning/s-ui-traffic-exporter.svg)](https://github.com/itning/s-ui-traffic-exporter/issues)\n[![GitHub license](https://img.shields.io/github/license/itning/s-ui-traffic-exporter.svg)](https://github.com/itning/s-ui-traffic-exporter/blob/master/LICENSE)\n[![GitHub last commit](https://img.shields.io/github/last-commit/itning/s-ui-traffic-exporter.svg)](https://github.com/itning/s-ui-traffic-exporter/commits)\n[![GitHub repo size in bytes](https://img.shields.io/github/repo-size/itning/s-ui-traffic-exporter.svg)](https://github.com/itning/s-ui-traffic-exporter)\n[![Hits](https://hitcount.itning.com?u=itning\u0026r=s-ui-traffic-exporter)](https://github.com/itning/hit-count)\n\n\u003c/div\u003e\n\n---\n\n# 介绍\n\n功能：将s-ui中的流量信息上报给Prometheus\n\n实现效果：\n\n![](./pic/a.png)\n\n在s-ui中：\n\n![](./pic/b.png)\n\n# 使用\n\n```shell\n./s-ui-traffic-exporter-linux-amd64 --web.listen-address=\":9100\" \n```\n\n```text\n# HELP name_traffic_download_bytes_total Total bytes downloaded by each name.\n# TYPE name_traffic_download_bytes_total counter\nname_traffic_download_bytes_total{enable=\"true\",name=\"zGZuZfFc\"} 1.819867959e+09\n# HELP name_traffic_upload_bytes_total Total bytes uploaded by each name.\n# TYPE name_traffic_upload_bytes_total counter\nname_traffic_upload_bytes_total{enable=\"true\",name=\"zGZuZfFc\"} 7.16911518e+08\n```\n\n默认使用s-ui sqlite数据库位置为：`/usr/local/s-ui/db/s-ui.db`\n\n如果不在默认位置可以通过参数修改，例如`--db-path=/home/xui.db`\n\n支持TLS：`--web.config.file=web-config.yml`\n\n具体配置：[exporter-toolkit web-configuration](https://github.com/prometheus/exporter-toolkit/blob/master/docs/web-configuration.md)\n\n# 感谢\n\n![JetBrains Logo (Main) logo](https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.svg)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitning%2Fs-ui-traffic-exporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fitning%2Fs-ui-traffic-exporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fitning%2Fs-ui-traffic-exporter/lists"}