Skip to main content

Kener Agent CLI

License: GPL v3

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

  1. Fork the repository.
  2. Create a feature branch.
  3. Make your changes.
  4. Ensure tests pass.
  5. 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)

Source distribution for kener-agent 0.2.0
File Size Uploaded
kener_agent-0.2.0.tar.gz 40.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for kener-agent 0.2.0
File Interpreter ABI Platform
kener_agent-0.2.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.5

2 release files

0.1.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page