postgres-connection-exporter/pyproject.toml
Kumi 776c98fb47
feat: Enhance config flexibility and setup
Introduced command-line flags for improved configuration management, including the creation of a default config file, and specified listening address override capabilities. This update facilitates easier and more flexible setup and deployment processes for the PostgreSQL connection exporter. The `.gitignore` and documentation were updated to align with these changes, reflecting the new command-line options and the removal of the `config.dist.yaml` in favor of creating a default configuration through the tool itself.

- Command-line flags `--create-config`, `--config`, `--host`, and `--port` added to streamline customization.
- Configuration now supports naming database hosts for clearer metrics identification.
- Documentation revised to guide through the new configuration and setup process.
- Changelog introduced to track project evolution.

These enhancements aim to make the exporter more adaptable to various deployment environments and to simplify the initial setup for users.
2024-05-16 06:33:21 +02:00

32 lines
No EOL
961 B
TOML

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "postgres-connection-exporter"
version = "0.0.2"
authors = [
{ name="Kumi Mitterer", email="postgres-connection-exporter@kumi.email" },
]
description = "A Prometheus exporter for PostgreSQL connection metrics"
readme = "README.md"
license = { file="LICENSE" }
requires-python = ">=3.10"
classifiers = [
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent"
]
dependencies = [
"prometheus-client",
"psycopg2-binary",
"pyyaml",
]
[project.scripts]
postgres-connection-exporter = "postgres_connection_exporter.__main__:main"
[project.urls]
"Homepage" = "https://git.private.coffee/kumi/postgres-connection-exporter"
"Bug Tracker" = "https://git.private.coffee/kumi/postgres-connection-exporter/issues"
"Source Code" = "https://git.private.coffee/kumi/postgres-connection-exporter"