• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

allegro/newrelic-gradle-plugin: Newrelic Gradle plugin.

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

allegro/newrelic-gradle-plugin

开源软件地址(OpenSource Url):

https://github.com/allegro/newrelic-gradle-plugin

开源编程语言(OpenSource Language):

Groovy 100.0%

开源软件介绍(OpenSource Introduction):

newrelic-gradle-plugin

This plugin facilitates the integration of your app with [NewRelic] (http://newrelic.com/).

Basic usage

###Configuration:

buildscript {
    repositories {
         maven {
            url "https://plugins.gradle.org/m2/"
         }
    }
    dependencies {
        classpath group: 'pl.allegro.tech.build', name: 'newrelic-gradle-plugin', version: '0.1.2'
    }
}
apply plugin: 'application'
apply plugin: 'pl.allegro.tech.build.newrelic-gradle-plugin'

newrelic {
    licenseKey '#1231afa2441251asda' //required - newrelic account key
    version '3.25.0' //optional - default '3.25.0'
    name 'AwesomeApp' // optional - module name by default
}

Use:

./gradlew clean distZip

Advanced Usage

Agent configuration

You can also create an own [newrelic.yml] (https://docs.newrelic.com/docs/agents/java-agent/configuration/java-agent-config-file-template) to configure it as suit you the best. Finally this file should be placed on root classpath of your built application.

Agent directory

To initialize the agent properly is important to run application from "bin" directory. In some cases this is not possible. Then the path to agent directory needs to be set by agentDir option. By default property have “../lib” value. You can also disable loading agent entirely by loadAgent option.

newrelic {
    //...
    agentDir: "/path/to/agent/directory"
    loadAgent: true
    //...
}

Requirements

  • newrelic-gradle-plugin must be applied after application plugin.
  • environment must be pointed by setting -Dnewrelic.environment= on the Java startup command. By default the plugin contains configuration for two environments: "prod" and "test".

License

newrelic-gradle-plugin is published under Apache License 2.0.




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap