Skip to main content

This project gathers metrics for local or hosted servers that can be run on a server used to post data to Grafana and Prometheus.

Project description

Starlyng Server Metrics

This project gathers metrics for local or hosted servers that can be run on a server used to post data to Grafana and Prometheus.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • You have installed Python 3.x.
  • You have a basic understanding of Python and virtual environments.

Setting Up Your Development Environment

To set up your development environment and run the project, follow these steps:

Clone the Repository

First, clone the repository to your local machine:

git https://github.com/starlyngapp/server-metrics.git
cd server-metrics

Create and Activate Virtual Environment

For macOS and Linux:

python3 -m venv venv
source venv/bin/activate

For Windows:

python3 -m venv venv
venv\Scripts\activate

Install Required Packages

Install all dependencies listed in the dev-requirements.txt file:

pip install -r dev-requirements.txt

Installation

To install only the package (without dev dependencies):

pip install starlyng_server_metrics

To install development dependencies (useful for contributing to the project):

pip install starlyng_server_metrics[dev]

Alternatively, you can install the development dependencies using:

pip install -r dev-requirements.txt

Usage

To run the main function:

starlyng_metrics

Building and Uploading Your Package

  1. Build the package:
python3 setup.py sdist bdist_wheel
  1. Upload to PyPI:
twine upload dist/*

Upload using specific project name referenced in .pypirc

twine upload dist/* --repository starlyng-server-metrics

Running Tests

To run tests, execute the following command in your terminal:

pytest

This command will run all tests and report the results. You can also run specific tests by providing the path and filename of the test file.

Contributing to the Project

Contributions to this project are welcome. Here's how you can contribute:

  1. Fork the project.
  2. Create your feature branch (git checkout -b feature/YourFeature).
  3. Commit your changes (git commit -am 'Add some YourFeature').
  4. Push to the branch (git push origin feature/YourFeature).
  5. Open a pull request.

Contact

If you have any questions, please contact us at:

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

starlyng_server_metrics-0.1.1.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

starlyng_server_metrics-0.1.1-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file starlyng_server_metrics-0.1.1.tar.gz.

File metadata

  • Download URL: starlyng_server_metrics-0.1.1.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.9.6

File hashes

Hashes for starlyng_server_metrics-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d51d63e19d9a92780a8df3985cb0dc63e4b7db4008f9461128f7df379bd7526e
MD5 4478c7d40b2f962a46c9f338b2d1987c
BLAKE2b-256 59cbc3d862f499555550b79b4925be81b8e4d4cf62557bd9610e9e6955b4eb3f

See more details on using hashes here.

File details

Details for the file starlyng_server_metrics-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for starlyng_server_metrics-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d460932edb06e983cf3637aae004823189db52e7d9d98c8f24a30a5cbcb830ff
MD5 9d601eb30a695771b8afcd87cccb1297
BLAKE2b-256 24a4919db0256cd8473c28ac296a54c4cdbba79a13e8f7ed8bdb66c8e7c86226

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page