{ "info": { "author": "Stellar Development Foundation", "author_email": "ops@stellar.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Information Technology", "License :: OSI Approved :: Apache Software License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3", "Topic :: System :: Monitoring" ], "description": "# Overview\n\nThe Stellar Account Prometheus Exporter retrieves account(s)\nbalance and exposes it in prometheus format.\n\n# Configuration\n\nConfiguration file path must be provided using the --config option.\n\nThe config file is yaml formatted file:\n```\nnetworks:\n- name: pubnet # Human readable name\n horizon_url: https://horizon.example.com # Horizon URL\n accounts:\n - account_id: ABC123XYZ # Account ID\n account_name: Account one # Human readable description\n - account_id: DEF456ABC\n account_name: Account two\n- name: testnet\n horizon_url: https://horizon-testnet.example.com\n accounts:\n - account_id: QWE789DEF\n account_name: Testnet test account\n```\n\nBy default the exporter listens on port 9618. This can be changes using\n--port switch or \"PORT\" environment variable.\n\n# Exported data\n\nFor each account the following metrics are exported:\n * *stellar_account_balance*\n * *stellar_account_buying_liabilities*\n * *stellar_account_selling_liabilities*\n\nEach metric has the following labels:\n * *network* - network name from the configuration file\n * *account_id* - account ID from the configuration file\n * *account_name* - account name, as per configuration file\n * *asset_type* - asset type\n\n# Installing from pypi\n\nTo download/test package in pypi you can use venv:\n```\npython3 -m venv venv\n. venv/bin/activate\n```\n\nInstall:\n```\npython3 -m pip install stellar_account_prometheus_exporter\n```\n\nRun:\n```\n./venv/bin/stellar-account-prometheus-exporter --config /path/to/config.yaml\n```\n\n# Releasing new version\n\n* ensure you bumped version number in setup.py. PyPi does not allow version reuse\n* build new package:\n```\npython3 setup.py sdist bdist_wheel\n```\n* push to testpypi:\n```\npython3 -m twine upload --repository-url https://test.pypi.org/legacy/ dist/*\n```\n* test by installing the package (see above). If all good release:\n```\npython3 -m twine upload dist/*\n```\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/stellar/stellar-account-prometheus-exporter", "keywords": "prometheus,exporter,stellar", "license": "Apache Software License 2.0", "maintainer": "", "maintainer_email": "", "name": "stellar-account-prometheus-exporter", "package_url": "https://pypi.org/project/stellar-account-prometheus-exporter/", "platform": "", "project_url": "https://pypi.org/project/stellar-account-prometheus-exporter/", "project_urls": { "Homepage": "https://github.com/stellar/stellar-account-prometheus-exporter" }, "release_url": "https://pypi.org/project/stellar-account-prometheus-exporter/0.0.2/", "requires_dist": [ "prometheus-client", "requests", "pyyaml" ], "requires_python": "", "summary": "Export stellar account balance in prometheus format", "version": "0.0.2" }, "last_serial": 5785874, "releases": { "0.0.2": [ { "comment_text": "", "digests": { "md5": "58180bd5d1a2dbfb170e556960fd0283", "sha256": "3ff72e286b8b55d48db1a49b6271a4072efe06a4efa041562d189d92090814e1" }, "downloads": -1, "filename": "stellar_account_prometheus_exporter-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "58180bd5d1a2dbfb170e556960fd0283", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8762, "upload_time": "2019-09-05T10:50:20", "url": "https://files.pythonhosted.org/packages/43/a0/fdb5ed045b2c51417fc62905a5472298407ed190b40309e7b1021d917cfb/stellar_account_prometheus_exporter-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9007b2114e6857e2c9b2a40c959b7aa8", "sha256": "b3ed34d5111a67d0aed1ed241f74bc6920b6a26600bddf41e74a8db22c2a4782" }, "downloads": -1, "filename": "stellar-account-prometheus-exporter-0.0.2.tar.gz", "has_sig": false, "md5_digest": "9007b2114e6857e2c9b2a40c959b7aa8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7915, "upload_time": "2019-09-05T10:50:22", "url": "https://files.pythonhosted.org/packages/6c/f1/aa61e8cea7fad2a05f2ddf676e0b7ecec1de22d5683cfcaadcb8be0b7afd/stellar-account-prometheus-exporter-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "58180bd5d1a2dbfb170e556960fd0283", "sha256": "3ff72e286b8b55d48db1a49b6271a4072efe06a4efa041562d189d92090814e1" }, "downloads": -1, "filename": "stellar_account_prometheus_exporter-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "58180bd5d1a2dbfb170e556960fd0283", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8762, "upload_time": "2019-09-05T10:50:20", "url": "https://files.pythonhosted.org/packages/43/a0/fdb5ed045b2c51417fc62905a5472298407ed190b40309e7b1021d917cfb/stellar_account_prometheus_exporter-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9007b2114e6857e2c9b2a40c959b7aa8", "sha256": "b3ed34d5111a67d0aed1ed241f74bc6920b6a26600bddf41e74a8db22c2a4782" }, "downloads": -1, "filename": "stellar-account-prometheus-exporter-0.0.2.tar.gz", "has_sig": false, "md5_digest": "9007b2114e6857e2c9b2a40c959b7aa8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7915, "upload_time": "2019-09-05T10:50:22", "url": "https://files.pythonhosted.org/packages/6c/f1/aa61e8cea7fad2a05f2ddf676e0b7ecec1de22d5683cfcaadcb8be0b7afd/stellar-account-prometheus-exporter-0.0.2.tar.gz" } ] }