# 介绍
nezha 面板 api 转 prometheus metrics 接口 exporter
## 安装
- pip install nezha-exporter
- nezha-prometheus-exporter --endpoint http://dashboard.example.com:8008 --endpoint-token xxx
- 配置 prometheus.yml
```yaml
scrape_configs:
- job_name: 'nezha'
static_configs:
- targets: ['localhost:9221']
```
Raw data
{
"_id": null,
"home_page": "https://github.com/aitsc/nezha-exporter",
"name": "nezha-exporter",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": null,
"author": "aitsc",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/d7/83/d7d6160408b4b40e8ab73dda396d6dfaecb8c10cdfd57f2560b86be4b43d/nezha-exporter-0.2.tar.gz",
"platform": null,
"description": "# \u4ecb\u7ecd\nnezha \u9762\u677f api \u8f6c prometheus metrics \u63a5\u53e3 exporter\n\n## \u5b89\u88c5\n- pip install nezha-exporter\n- nezha-prometheus-exporter --endpoint http://dashboard.example.com:8008 --endpoint-token xxx\n- \u914d\u7f6e prometheus.yml\n```yaml\nscrape_configs:\n - job_name: 'nezha'\n static_configs:\n - targets: ['localhost:9221']\n```\n",
"bugtrack_url": null,
"license": "Apache License 2.0",
"summary": "nezha \u9762\u677f api \u8f6c prometheus metrics \u63a5\u53e3 exporter",
"version": "0.2",
"project_urls": {
"Homepage": "https://github.com/aitsc/nezha-exporter"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "d783d7d6160408b4b40e8ab73dda396d6dfaecb8c10cdfd57f2560b86be4b43d",
"md5": "67d633d0aa38d765a03b358607f36fa7",
"sha256": "5a7ec058beb5c2c958155f164617e8ba063823097f08a5354ef107b1d4faaf12"
},
"downloads": -1,
"filename": "nezha-exporter-0.2.tar.gz",
"has_sig": false,
"md5_digest": "67d633d0aa38d765a03b358607f36fa7",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 7476,
"upload_time": "2024-07-26T06:02:30",
"upload_time_iso_8601": "2024-07-26T06:02:30.543976Z",
"url": "https://files.pythonhosted.org/packages/d7/83/d7d6160408b4b40e8ab73dda396d6dfaecb8c10cdfd57f2560b86be4b43d/nezha-exporter-0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-07-26 06:02:30",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "aitsc",
"github_project": "nezha-exporter",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "nezha-exporter"
}