Download the PHP package caasdata/tars-monitor without Composer

On this page you can find all versions of the php package caasdata/tars-monitor. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package tars-monitor

tars-monitor


tars-monitorphptars 服务与特性监控上报模块

它由两个子模块组成:

使用方式

安装

使用composer进行安装 composer install phptars/tars-monitor

调用

服务监控上报

定时上报(默认)

使用定时上报需要 swoole_table支持,通过调用addStat将上报信息暂存,tars-server的task进程会搜集一段时间内(上报时间间隔由服务器下发,一般为60s)统一打包上报,可以减少上报请求

上报数据可使用多种存储方式,cache中提供了swoole_tableredis的实现方式,用户也可以自己实现contract/StoreCacheInterface,配置存储方式参考demo tars-http-serversrc/services.php 的配置。

monitorStoreConf 为存储方式的配置,其中className为实现类,config 为对应的配置,如使用redis存储方式时,config中需要配置redis的host、port、以及key的前缀等。 未配置monitorStoreConf时默认使用SwooleTableStoreCache进行存储。

单次上报

同时tars-monitor也提供了单次上报的接口monitorStat,即每次tars请求调用均会进行一次上报,该方式不建议使用

特性监控

参数与服务监控类似

监控查看

数据上报后,用户可在服务监控/特性监控选项卡中查看上报的数据。

其他

因为其他模块已经集成了本模块, 所以一般情况下,服务脚本无需显式使用此模块。


All versions of tars-monitor with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5
caasdata/tars-utils Version ~0.1
caasdata/tars-registry Version ~0.1
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package caasdata/tars-monitor contains the following files

Loading the files please wait ....