customgento/module-koality-m2
最新稳定版本:1.0.3
Composer 安装命令:
composer require customgento/module-koality-m2
包简介
koality.io Magento 2 Plugin can be used to continuously monitor a Magento 2 shop for business metrics.
README 文档
README
koality.io Magento 2 Plugin can be used to continuously monitor a Magento 2 shop for business metrics. To use this plugin, an active koality.io account is required. After the initial setup, the shop can be monitored easily directly in the koality.io admin area.
Layout in koality.io backend
Metrics
The following metrics are currently implemented:
-
Minimum orders per hour - this check fails if the number of orders within the last hour falls under a given threshold. The check provides two time intervals. Rush hour and normal shopping time. This is needed to minimize false positives.
-
Maximum number of open carts - fails if there are to many open carts in the last hour. This check also includes a distinction between rush hours and normal shopping hours. This often happens if the payment fails, and the customers can't finish the buying process.
-
Minimum number of active products - this check fails if there are not enough active products in the should. This will help find import errors.
-
Custom Metrics - we are more than happy to discuss the development of custom metrics just for you. Feel free to contact us at customgento.com.
How the plugin works
The plugin provides a JSON endpoint for the Magento storefront that is secured via a secret token. The endpoint returns the health status of the shop.
Example
{
"status": "fail",
"output": "Some Magento health metrics failed: ",
"checks": {
"carts.open.too_many": {
"status": "fail",
"output": "There are too many open carts at the moment.",
"limit": 30,
"limitType": "max",
"observedValue": 60,
"observedUnit": "carts",
"metricType": "time_series_numeric"
},
"products.active": {
"status": "pass",
"output": "There are enough active products in your shop.",
"limit": 0,
"limitType": "min",
"observedValue": 1,
"observedUnit": "products",
"metricType": "time_series_numeric"
},
"orders.too_few": {
"status": "fail",
"output": "There were too few orders within the last hour.",
"limit": 20,
"limitType": "min",
"observedValue": 0,
"observedUnit": "orders",
"metricType": "time_series_numeric"
}
},
"info": {
"creator": "koality.io Magento 2 Plugin",
"version": "1.0.0",
"plugin_url": "https://www.koality.io/plugins/magento"
}
}
koality.io can interpret this format and will alert if a check fails.
The API endpoint can be found here after installation:
https://myshop.com/koality/health/status/<api_key>
The format of the Magento2 health endpoint is implementing this standard (still RFC):
https://tools.ietf.org/html/draft-inadarei-api-health-check-05
Compatibility
- Magento >= 2.3
Installation Instructions
composer require customgento/module-koality-m2bin/magento module:enable Koality_MagentoPluginbin/magento setup:upgradebin/magento setup:di:compilebin/magento cache:flush
Configuration
To configure the plugin, navigate in your Magento admin panel to Stores -> Configuration -> Services -> Koality.
There you find the automatically created API key, which must be inserted in the koality.io backend. It is also possible
to create a new key using the Refresh API Key button, if needed.
In the next tab you can define a rush hour if needed.
The times should always be chosen in the local timezone.

In the third tab you can define the settings for the orders-per-hour metric. Set the minimal quantity of orders per hour, you expect and also define a value for the rush hour, if needed. The metric will fail, as soon as the number of orders falls below this limit.
In the section for open carts you can set the maximal quantity of open carts. Here it is also possible to define a value for the rush hour, if needed. The metric fails, as soon as there are more open carts than expected.
In the last tab it is possible to enter a minimal expectation for active products. If there are less active products, then entered here, the metric will fail in the koality.io backend.
Support
If you have any issues with this extension, please open a GitHub issue. If you have any issues with koality.io, please contact the koality.io support.
Licence
OSL - Open Software Licence 3.0
Copyright
© 2021 - present CustomGento GmbH
customgento/module-koality-m2 适用场景与选型建议
customgento/module-koality-m2 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 2, 最近一次更新时间为 2022 年 08 月 18 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 customgento/module-koality-m2 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 customgento/module-koality-m2 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: OSL-3.0
- 更新时间: 2022-08-18






