Datadog & PHP
Install Datadog agent Install PHP agent Restart your webserver (apachectl restart)Read More →
Apache: Debugging with Strace
Sometimes you are under a situation that you don’t know what’s going on with the server, it’s like a blackbox. How to get some lights in this? The answer is strace . strace is a utility that will help you see what your application is doing, what file it’s opening, what is it trying to do. How to start? the most common way to do is : you have a pid of your application , then just run this command: How about other cases, like you have multiple process like web server, when a server start, it will start with at least 4 processes. WhenRead More →
Datadog PHP : Capturing data sent from datadog library
As we all know, to monitor our PHP application performance with Datadog , we need to install 2 components – datadog-agent and its PHP package. The data-agent is a server listening on port 8126 to receive tracer/span from our application. The PHP package is used to inject some library to our run time PHP, it does some magic thing to collect our PHP application such as response time, database connection. Have you ever wondered what data that datadog tracing library send to its agent? Today we do a little trick , instead of using datadog-agent to receive data, we will use some tools to receiveRead More →
Datadog – PHP – Adding client IP to your trace
When i use Datadog to collect tracer/span in our PHP , i realize that Datadog library does not collect the client IP address. I don’t know what the reason behind this, but not having the client IP is very hard to troubleshoot the issue. After a while i figured out the way to hack the code. The hack is to modify this file /opt/datadog-php/dd-trace-sources/bridge/_generated.php This is my modification – check the line #================My Customize codeRead More →
Azure: ARM templates
This is a good start to learn ARM https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/overviewRead More →
Install MineCraftPE Server
My son was asking me to help him set up a server so that he can play with his friends – and i found this , easy to do. https://www.astralinternet.com/blog/en/build-minecraft-pocket-edition-server-ubuntu/ I turns out that this version does not work well with latest minecraft , i download the version from Minecraft official website, it works pretty well https://www.minecraft.net/en-us/download/server/bedrock/ After you download the server, just run this command:Read More →
MacOS: why i sometimes i can’t move windows between 2 monitors?
In your setup, you have 2 monitors but you find that sometimes you can move the window between easily, sometimes you can not. The problem here is that: when your destination screen having a window in “Maximize” status, you will not be able to move windows to this monitor. The fix is simple, minimize the window in destination monitor.Read More →
SignalFX – Jaeger -HotRod
Just imagine, you have an application that is using Jaeger as the backend, but now you want to switch to SignalFX. This is do able. Below is the steps Install SignalFX Agent:SignalFX Agent is used to collect your host info such as memory and cpu,network … it uses collectd for this purpose. Signalfx Agent also can act as a collector for Jaeger client via GRPC. Installing Signalfx Agent is not difficult, follow their current instruction from your account. To make it easy for you i will share my configuration The important line is “- type: jaeger-grpc” this line will turn smartagent as a collector, itRead More →
Redhat: No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK
When i tried to test this https://github.com/elastic/spring-petclinic. when i run this command ./mvnw spring-boot:run. i got this error It turned out that i haven’t install maven , the simple fix isRead More →