ss-ipg/laravel-newrelic 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

ss-ipg/laravel-newrelic

最新稳定版本:v2.0

Composer 安装命令:

composer require ss-ipg/laravel-newrelic

包简介

Minimal NewRelic Functionality for Laravel

README 文档

README

Latest Version on Packagist GitHub Tests Action Status

Simple NewRelic integration that names the APP in Newrelic for both CLI and Web requests.
It also includes a helper for the synthetics monitor and a deployment command helper.

Installation

You can install the package via composer:

composer require ss-ipg/laravel-newrelic

You can publish the config file with:

php artisan vendor:publish

These are the ENV variables you can edit

NEWRELIC_APP_NAME=MY.domain.com
NEWRELIC_API_KEY=some-api-key
NEWRELIC_APP_ID=1234567
NEWRELIC_DEFAULT_USER=me@email.com

# Optional
NEWRELIC_ENABLED=true
NEWRELIC_MONITOR_ENABLED=true
NEWRELIC_MONITOR_ENDPOINT="newrelic/ping"
NEWRELIC_MONITOR_RESPONSE=pong

Usage

Out of the box the App will automatically name the APP in NewRelic.

Synthetics Monitor Setup

NewRelic > Synthetic monitoring
Click on the Create Monitor > Availability

Populate the fields:

Name: Ping Monitor 
Url: https://mydomain.com/newrelic/ping

#Advanced Options
Text validation: pong

Deployment Logging

After each deployment you should run the Deployment trigger

Example if you are using Envoyer

php artisan newrelic:deploy "{{message}}" --user="{{author}}" --revision="{{sha}}" --changelog="Deployed from: {{branch}}"

Testing

composer test

Credits

License

The MIT License (MIT)

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 4
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-11-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固