定制 samynw/pimcore-monitoring-manager 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

samynw/pimcore-monitoring-manager

Composer 安装命令:

composer require samynw/pimcore-monitoring-manager

包简介

Provides an easy tool for using your monitoring software to monitor jobs within a Pimcore application

README 文档

README

The goal of this bundle is to provide an easy tool for monitoring your application. It allows you to add custom jobs which can be monitored by your preferred monitoring tool. The criteria could be any business logic, depending on the needs of your application.

The bundle will create endpoints for your monitoring jobs. So your monitoring tool can fetch the status code of the HTTP response and alert you if needed. Alternatively the exit code of a console command can be monitored.

This way the monitoring tool can monitor any application criteria you've defined. Some examples:

  • has the sitemap.xml been regenerated in the last 24 hours?
  • is the "failed" queue for Symfony Messenger increasing at an alarming speed?
  • check if the number of critical errors in the application log during the last X minutes is higher than Y entries
  • is a long-running script taking an unusually long time?
  • ...

Installation

# Add package to composer dependencies
composer require samynw/pimcore-monitoring-manager

# Enable and install bundle
php bin/console pimcore:bundle:enable MonitoringManagerBundle
php bin/console pimcore:bundle:install MonitoringManagerBundle

Note: the installer will

  • enable the webservice API
  • create a "monitoring" user with a random API key

You can review and modify or remove the user at your convenience if you prefer to use another user or authentication method.

Usage

The concept is to create jobs, based on business logic for critical application processes.

Your monitoring software can be configured to schedule either:

  • HTTP requests to the bundle endpoints (monitor the HTTP Status code of the response)
  • console command to fetch job status (monitor the console exit code)

Detailed information:

Authorization

The URL pattern is added to a firewall, requiring authentication for the HTTP requests.

For further details, see Usage: HTTP requests.

统计信息

  • 总下载量: 14
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-01-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固