py-node-collector


Namepy-node-collector JSON
Version 0.0.3 PyPI version JSON
download
home_pagehttps://github.com/shadowy-pycoder/py-node-collector
SummaryPython wrapper for Prometheus Node Collector https://github.com/shadowy-pycoder/go-node-collector
upload_time2024-08-05 04:35:32
maintainerNone
docs_urlNone
authorshadowy-pycoder
requires_pythonNone
licenseNone
keywords prometheus metrics prometheus-collector prometheus-node-exporter
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Python Node Collector

A python wrapper for [Prometheus Node Collector](https://github.com/shadowy-pycoder/go-node-collector) 

# Installation

```shell
pip install py-node-collector
```

# Usage


```python
from prometheus_client import parser
from py_node_collector import collector

metric = next(parser.text_string_to_metric_families(collector.collect()))
print(metric)
```

```shell
# Output
Metric(go_gc_duration_seconds, A summary of the pause duration of garbage collection cycles., summary, , 
[Sample(name='go_gc_duration_seconds', labels={'quantile': '0'}, value=0.0, timestamp=None, exemplar=None), 
Sample(name='go_gc_duration_seconds', labels={'quantile': '0.25'}, value=0.0, timestamp=None, exemplar=None), 
Sample(name='go_gc_duration_seconds', labels={'quantile': '0.5'}, value=0.0, timestamp=None, exemplar=None), 
Sample(name='go_gc_duration_seconds', labels={'quantile': '0.75'}, value=0.0, timestamp=None, exemplar=None), 
Sample(name='go_gc_duration_seconds', labels={'quantile': '1'}, value=0.0, timestamp=None, exemplar=None), 
Sample(name='go_gc_duration_seconds_sum', labels={}, value=0.0, timestamp=None, exemplar=None), 
Sample(name='go_gc_duration_seconds_count', labels={}, value=0.0, timestamp=None, exemplar=None)])
```


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/shadowy-pycoder/py-node-collector",
    "name": "py-node-collector",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "prometheus, metrics, prometheus-collector, prometheus-node-exporter",
    "author": "shadowy-pycoder",
    "author_email": "shadowy-pycoder@example.com",
    "download_url": null,
    "platform": "Linux",
    "description": "# Python Node Collector\n\nA python wrapper for [Prometheus Node Collector](https://github.com/shadowy-pycoder/go-node-collector) \n\n# Installation\n\n```shell\npip install py-node-collector\n```\n\n# Usage\n\n\n```python\nfrom prometheus_client import parser\nfrom py_node_collector import collector\n\nmetric = next(parser.text_string_to_metric_families(collector.collect()))\nprint(metric)\n```\n\n```shell\n# Output\nMetric(go_gc_duration_seconds, A summary of the pause duration of garbage collection cycles., summary, , \n[Sample(name='go_gc_duration_seconds', labels={'quantile': '0'}, value=0.0, timestamp=None, exemplar=None), \nSample(name='go_gc_duration_seconds', labels={'quantile': '0.25'}, value=0.0, timestamp=None, exemplar=None), \nSample(name='go_gc_duration_seconds', labels={'quantile': '0.5'}, value=0.0, timestamp=None, exemplar=None), \nSample(name='go_gc_duration_seconds', labels={'quantile': '0.75'}, value=0.0, timestamp=None, exemplar=None), \nSample(name='go_gc_duration_seconds', labels={'quantile': '1'}, value=0.0, timestamp=None, exemplar=None), \nSample(name='go_gc_duration_seconds_sum', labels={}, value=0.0, timestamp=None, exemplar=None), \nSample(name='go_gc_duration_seconds_count', labels={}, value=0.0, timestamp=None, exemplar=None)])\n```\n\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Python wrapper for Prometheus Node Collector https://github.com/shadowy-pycoder/go-node-collector",
    "version": "0.0.3",
    "project_urls": {
        "Homepage": "https://github.com/shadowy-pycoder/py-node-collector"
    },
    "split_keywords": [
        "prometheus",
        " metrics",
        " prometheus-collector",
        " prometheus-node-exporter"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "66511cfa30b3ab2c5708a283574a0556127368d384039a0f48b6231aa52f47fe",
                "md5": "d7bb6ce82b067d09585a30d1aecc4007",
                "sha256": "63bdf6d101ebff2bb51ac446efec785167a4107c141e2a98bc3c488813a54f91"
            },
            "downloads": -1,
            "filename": "py_node_collector-0.0.3-py310-none-any.whl",
            "has_sig": false,
            "md5_digest": "d7bb6ce82b067d09585a30d1aecc4007",
            "packagetype": "bdist_wheel",
            "python_version": "py310",
            "requires_python": null,
            "size": 22941866,
            "upload_time": "2024-08-05T04:35:32",
            "upload_time_iso_8601": "2024-08-05T04:35:32.313710Z",
            "url": "https://files.pythonhosted.org/packages/66/51/1cfa30b3ab2c5708a283574a0556127368d384039a0f48b6231aa52f47fe/py_node_collector-0.0.3-py310-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0ab09bb22aa61e73a82ed80a1ae9689fe4101931235f9a694e0bf50529843631",
                "md5": "45f19cc5695ddcbbc37a83ff421fb0af",
                "sha256": "9a6705ccdf0df90f3320748f5ab1c3908d2f54781b89c665099d266a80082496"
            },
            "downloads": -1,
            "filename": "py_node_collector-0.0.3-py311-none-any.whl",
            "has_sig": false,
            "md5_digest": "45f19cc5695ddcbbc37a83ff421fb0af",
            "packagetype": "bdist_wheel",
            "python_version": "py311",
            "requires_python": null,
            "size": 22942842,
            "upload_time": "2024-08-05T04:35:49",
            "upload_time_iso_8601": "2024-08-05T04:35:49.233093Z",
            "url": "https://files.pythonhosted.org/packages/0a/b0/9bb22aa61e73a82ed80a1ae9689fe4101931235f9a694e0bf50529843631/py_node_collector-0.0.3-py311-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8fcd776d7cda9e8484aa2a53fe37d95ecbfcf433f9ae6c1452365dac2b41f88e",
                "md5": "b2ceee7c69331736ffc907f9eda40160",
                "sha256": "b8ef8befd0c8e0c591f9a57ce2ea903231a20747ab660d0d111d6cac221625ff"
            },
            "downloads": -1,
            "filename": "py_node_collector-0.0.3-py312-none-any.whl",
            "has_sig": false,
            "md5_digest": "b2ceee7c69331736ffc907f9eda40160",
            "packagetype": "bdist_wheel",
            "python_version": "py312",
            "requires_python": null,
            "size": 22941998,
            "upload_time": "2024-08-05T04:36:09",
            "upload_time_iso_8601": "2024-08-05T04:36:09.647895Z",
            "url": "https://files.pythonhosted.org/packages/8f/cd/776d7cda9e8484aa2a53fe37d95ecbfcf433f9ae6c1452365dac2b41f88e/py_node_collector-0.0.3-py312-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cd72c50f71306592015e9ac54f80f83ba8f74dde3879eb7d3e4e32e34e042865",
                "md5": "410a136e81833ed2e94ec54014fc4dc6",
                "sha256": "24a025477dde0853a76eeeb983abf7d2676ec77306710f5f6ce72673532bf84e"
            },
            "downloads": -1,
            "filename": "py_node_collector-0.0.3-py38-none-any.whl",
            "has_sig": false,
            "md5_digest": "410a136e81833ed2e94ec54014fc4dc6",
            "packagetype": "bdist_wheel",
            "python_version": "py38",
            "requires_python": null,
            "size": 22941031,
            "upload_time": "2024-08-05T04:29:39",
            "upload_time_iso_8601": "2024-08-05T04:29:39.677443Z",
            "url": "https://files.pythonhosted.org/packages/cd/72/c50f71306592015e9ac54f80f83ba8f74dde3879eb7d3e4e32e34e042865/py_node_collector-0.0.3-py38-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a386c97e83d64541b0000ffd5804d768f9cc71491398279d867fb991a3a4aa6d",
                "md5": "6735de0f86c5f4bddf331b8777d44109",
                "sha256": "9d2f88be25d1f82b79f8442ab6b1809e4c5c0056a51c7f507e43cdc19f3aad58"
            },
            "downloads": -1,
            "filename": "py_node_collector-0.0.3-py39-none-any.whl",
            "has_sig": false,
            "md5_digest": "6735de0f86c5f4bddf331b8777d44109",
            "packagetype": "bdist_wheel",
            "python_version": "py39",
            "requires_python": null,
            "size": 22941625,
            "upload_time": "2024-08-05T04:35:13",
            "upload_time_iso_8601": "2024-08-05T04:35:13.994336Z",
            "url": "https://files.pythonhosted.org/packages/a3/86/c97e83d64541b0000ffd5804d768f9cc71491398279d867fb991a3a4aa6d/py_node_collector-0.0.3-py39-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-05 04:35:32",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "shadowy-pycoder",
    "github_project": "py-node-collector",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "py-node-collector"
}
        
Elapsed time: 0.27206s