Coder Social home page Coder Social logo

newrelic_agent_php's Introduction

newrelic_agent_php

Master: Build Status Develop: Build Status

Installs New Relic's PHP agent and configures an INI file with symlinks to this file to enable it. Comes with default settings that setup license key, log levels, app name and extension location.

Installation and Dependencies

To install run ansible-galaxy install sansible.newrelic_agent_php or add this to your roles.yml.

- name: sansible.newrelic_agent_php
  version: v1.0.x

and run ansible-galaxy install -p ./roles -r roles.yml

Tags

This role uses tags: build and configure

  • build - Installs Newrelic PHP agent
  • configure - Configures Newrelic PHP agent

Examples

Enable default PHP7.3 agent:

- name: Install and configure newrelic
  hosts: "somehost"

  roles:
    - role: sansible.newrelic_agent_php
      sansible_newrelic_agent_php_appname: some-php7.3-app
      sansible_newrelic_agent_php_license_key: 123456789123456789123456789123456789

Configure custom ini file settings:

- name: Install and configure newrelic
  hosts: "somehost"

  roles:
    - role: sansible.newrelic_agent_php
      sansible_newrelic_agent_php_appname: some-php7.3-app
      sansible_newrelic_agent_php_ini_config:
        - option: newrelic.distributed_tracing_enabled
          section: newrelic
          value: "true"
      sansible_newrelic_agent_php_license_key: 123456789123456789123456789123456789

Enable agent for a different version of PHP:

- name: Install and configure newrelic
  hosts: "somehost"

  roles:
    - role: sansible.newrelic
      sansible_newrelic_agent_php_appname: some-php7.2-app
      sansible_newrelic_agent_php_ini_paths_base:  /etc/php/7.2/mods-available/newrelic.ini
      sansible_newrelic_agent_php_ini_paths_links:
      - /etc/php/7.2/fpm/conf.d/20-newrelic.ini
      - /etc/php/7.2/cli/conf.d/20-newrelic.ini
      sansible_newrelic_agent_php_license_key: 123456789123456789123456789123456789

The start_on_boot flag

The start_on_boot flag will start the agent and write any required config files, executed via the configure tag. This tag can be used for activating an agent on a per environment basis, allowing the agent to be installed into a base image and then activated at run time.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.