Code Monkey home page Code Monkey logo

chengxqq / pinpoint-c-agent Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pinpoint-apm/pinpoint-c-agent

0.0 1.0 0.0 1.12 MB

This is an Pinpoint agent written by C/C++ language. We hope to support other languages(not Java) by this agent. Until now, it supports PHP language.

Home Page: http://naver.github.io/pinpoint/

License: Apache License 2.0

Shell 0.74% Makefile 0.45% C++ 90.30% C 0.65% Thrift 0.27% M4 0.08% PHP 6.56% Hack 0.11% Python 0.84%

pinpoint-c-agent's Introduction

Pinpoint

Visit our official web site for more information and Latest updates on Pinpoint

The current stable version is v0.1.0.

Pinpoint C Agent

It is an agent written by C/C++ language. And we hope to support other languages by this agent. Until now, it supports PHP language.

Getting Started

Requirement

Dependency Version
APACHE 2.2.x 2.4.x
PHP php 5.4.x 5.5.x 5.6.x 7x
OS 64bit only
Boost 1.5.8+
Thirft 0.11.0+
gcc 4.4.7+

Installation

Pre-install

  • Download pinpoint-c-agent: git clone https://github.com/naver/pinpoint-c-agent.git

  • Install Build-essential

    Ubuntu

      sudo apt-get install automake bison flex g++ git libtool make pkg-config
    

    Centos

      sudo yum install automake libtool flex bison pkgconfig gcc-c++
    
  • Install third-library

    Option 1. Use agent build tools (install boost and Thirft in $PWD/../thirdlibray/var)

      $ cd pinpoint-c-agent
      $ ./Build.sh
      $ export LD_LIBRARY_PATH=$PWD/../thirdlibray/var/:$LD_LIBRARY_PATH
    

    Option 2. Install from source code

  • phpize (In your php installation path)

Build php-agent

  1. Checking phpize is in your PATH. If not, install phpize and export in your system PATH.(eg:export PATH=/path to phpize/:$PATH)
  2. Run cd pinpoint_php && ./Build.sh && make install
  3. If 2 running successfully, agent had installed into php module.

Startup

  1. Modifying below options in the "pinpoint_agent.conf" (eg:pinpoint_c_agent/quickstart/config/pinpoint_agent.conf.example)
      AgentID=uniquely identifies the application instance in which the agent is running on
      ApplicationName= groups a number of identical application instances as a single service
      Collector*= pinpoint collector information  
      LogFileRootPath=/absolute ​path where logging to/
      PluginRootDir​=/absolute path to /web/plugins/​
  1. Enable pinpoint-agent-php into php.ini, and configuring extension and pinpoint_agent.config_full_name (eg:pinpoint_c_agent/quickstart/config/php.ini.example)
  2. Restart php-fpm/Apache
  3. After restart php-fpm/Apache, if you meet "xxx pinpoint_api.cpp:158 [INFO] common.AgentID=php_pinpoint ...." in your LogFileRootPath/pinpoint_log.txt, pinpoint-agent-php installed successfully. If not, contract us without hesitation.

Collect result from the Pinpoint

  1. Configure pinpoint_c_agent/quickstart/php/web/ as your web side.
  2. Access http://$serverip:$port/index.php
  3. Log into pinpoint-web and choose the right ApplicationList

Overview

Distributed Tracking system

CallStack

Call Stack

CallStack

Compatibility

Pinpoint Version PHP GCC Boost Thrift
1.7.3 5.3.x
5.4.x
5.5.x
5.6.x
7.x
gcc 4.4.7+ 1.5.8+ 0.11.0+

License

This project is licensed under the Apache License, Version 2.0. See LICENSE for full license text.

Copyright 2018 NAVER Corp.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

pinpoint-c-agent's People

Contributors

chengxqq avatar emeroad avatar

Watchers

 avatar

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.