Skip to content

Instantly share code, notes, and snippets.

View arungpro's full-sized avatar

Arun G arungpro

  • Appdynamics Cisco
  • Bangalore
View GitHub Profile
@arungpro
arungpro / Connection_check.md
Last active May 11, 2023 11:48
Otel collector connection verification

Otel collector connection verification

==============================================================

Regular

    curl -X POST \
    -H "Content-Type: application/json" \
    -d '<sample otel trace json>' \
    http://<collector_host>:<collector_http_port>/v1/traces -v
@arungpro
arungpro / Appd Python agent API's Demo
Created July 10, 2020 14:02
Demonstration of usage of Appd Python agent API's on a simple hello world script
# This is a Demonstration of usage of Appd Python agent API's
from time import sleep
from appdynamics.agent import api as appd
appd.init(
environ={
'APPD_CONFIG_FILE':'<pah to>/appdynamics.cfg'
}
)
def some_method(id):
@arungpro
arungpro / marknodeshistorical.py
Last active June 10, 2020 13:23
Python Script - To mark node historical
__author__ = 'ArunG'
# python marknodeshistorical.py -c http://aruganga-m-l2db.local:8090 -n admin@customer1 -p admin -a TestApp
'''
Marks nodes as historical for an AppDynamics application
Usage: python marknodeshistorical.py [options]
Options:
-h, --help show this help
@arungpro
arungpro / Ruby Memory leak collections
Last active April 29, 2020 11:01
Memory leak in Appdynamics Ruby agent
### Ruby Agent Heapdump collection:
Preparing your rails application for heapdump Analysis.
1. In your rails application create initializer that initiates the ObjectSpace:
```
#<Rails App>/config/initializers/heap_dump_tracing.rb
require 'objspace'
ObjectSpace.trace_object_allocations_start
```
@arungpro
arungpro / DL Training CES or SE
Last active June 9, 2020 19:31
new hire training
Welcome aboard!!
The Below weekly planner helps to onboard Candidates in most effective and targeted way.
Irrespective of Grade level, These are mandatory basics that one must acquire to be successful at there positions.
These weeks plans are made considering that you have a little basics background of any one of the Dynamic Languages like Python, Nodejs, PHP.
Week 1:
- Onboarding and Laptop Setup
- Checklist to take permission -[see Access CheckList] https://confluence.corp.appdynamics.com/pages/viewpage.action?pageId=15156192
- Departments in Appd CSE
- Understanding of Appd. www.appdynamics.com
@arungpro
arungpro / Core dumps and gdb backtrace for apache
Last active May 3, 2024 17:10
Core dumps and gdb backtrace for php-fpm and apache
#PHP Apache CORE DUMP - GDB backtrace
Open httpd.conf:
vi httpd.conf
Add following line main config section:
```CoreDumpDirectory /tmp/apache2-gdb-dump```
Unlimited core dump size, In terminal add below
```ulimit -c unlimited```
Sample Python Cloudfoundry Application
================================================================================
Pre-Requisites.
================================================================================
- CloudFoundry Environment with Appdynamics Tile installed and configured with controller(s) information.
- Sample Application.
@arungpro
arungpro / Identify a leak - Chrome Dev tools
Created May 30, 2019 02:51
Memory Leaks in Nodejs - All the Basics you want to know about
TD