Kener Agent CLI
kener-agent is a command-line tool for managing and applying Kener monitors defined in YAML files.
It supports multiple instances, automatic context switching, and integrates seamlessly with CI/CD workflows.
Features
- Apply monitors from YAML files to Kener API.
- Multi-instance configuration with default context support.
- Auto-resolution of group monitors.
- CLI commands for login, apply, listing, and setting defaults.
- Fully automated releases with semantic versioning.
- Compatible with Conventional Commits and GitHub Actions for automated release notes.
- PyPI package for easy installation.
Installation
Install via PyPI:
pip install kener-agent
After installation, the CLI command kener-agent is available globally.
Configuration
The tool stores its configuration in YAML format at:
~/.config/kener-agent/config.yml
Example configuration
default: dev
instances:
dev:
host: 10.10.3.1
port: 3000
token: devtoken
folder: monitors/dev
prod:
host: 10.20.0.5
port: 3000
token: prodtoken
folder: monitors/prod
CLI Commands
1. Login / Add an Instance
kener-agent login --name dev --host 10.10.3.1 --port 3000 --token <token> --folder monitors/dev --default
--name: Name of the instance.--default: Set as default instance.- Stores credentials and folder path in
~/.config/kener-agent/config.yml.
2. Apply Monitors
kener-agent apply [--instance dev] [--folder ./other-folder]
--instance: Optional instance name (overrides default).--folder: Optional folder override containing YAML monitor files.- Processes YAML files in ascending numeric order (e.g.,
01-monitor.yml,02-monitor.yml).
3. List Instances
kener-agent list
Outputs a table of configured instances, highlighting the default.
╒══════════╤═══════════╤═════════════╤═══════╤═════════════════╕
│ Default │ Instance │ Host │ Port │ Folder │
╞══════════╪═══════════╪═════════════╪═══════╪═════════════════╡
│ * │ dev │ 10.10.3.1 │ 3000 │ monitors/dev │
│ │ prod │ 10.20.0.5 │ 3000 │ monitors/prod │
╘══════════╧═══════════╧═════════════╧═══════╧═════════════════╛
4. Set Default Instance
kener-agent set-default prod
Switches the default instance to prod.
License
This project is licensed under the GNU General Public License v3.0 (GPLv3).
Contributing
- Fork the repository.
- Create a feature branch.
- Make your changes.
- Ensure tests pass.
- Submit a pull request.
Contact
For questions or support, open an issue on GitHub or contact the maintainer.
Metadata
Release files for kener-agent 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kener_agent-0.2.0.tar.gz | 40.2 kB | Without provenance | Details for kener_agent-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kener_agent-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for kener_agent-0.2.0-py3-none-any.whl |
Total release size: 67.8 kB
Release files / kener_agent-0.2.0.tar.gz
| Download URL | kener_agent-0.2.0.tar.gz |
|---|---|
| Size | 40.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a11af0be593b190b90b458f7c836f0ae426d0cd33fbf909c28eb876be545ebcf
|
|
BLAKE2b-256 checksum How to use checksums |
5e25c088ff64afcbafdf375e7ce2f2fb6da5354a204ffd4a76df63ff881d7292
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Release files / kener_agent-0.2.0-py3-none-any.whl
| Download URL | kener_agent-0.2.0-py3-none-any.whl |
|---|---|
| Size | 27.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
30c2c7d1de5ded96b7b0a30cf465fb0bd414f1e3544d54b559c5329c102a342c
|
|
BLAKE2b-256 checksum How to use checksums |
e50fce55ee732084cdf10c8574e779c85d84cd9e679758f6b395c0860ca89775
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.8
|
Security for kener-agent 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.