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 — # *Required* The access token for the org that you wish to send metrics to.Read More →

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 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project spring-petclinic: Compilation failure [ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? It turned out that i haven’t install maven , the simple fix is yum install mavenRead More →

# Visual Studio Code: Azure Monitor – Application Insights In the modern world of software development, monitoring and debugging are as crucial as writing the code itself. Developers and IT professionals need tools that offer real-time insights into their applications’ performance, identify issues, and ensure smooth operation. One such powerful tool is **Azure Monitor**, and more specifically, **Application Insights**, which provides a rich set of features for monitoring the performance and health of applications. In this article, we’ll explore how to integrate **Application Insights** with **Visual Studio Code (VS Code)**, one of the most popular code editors among developers. By doing this, you can gainRead More →

Today i just tried to build my first web Java application. I follow the instructions from this link: https://docs.spring.io/spring-boot/docs/1.0.2.RELEASE/reference/html/getting-started-first-application.html Everything looks good until i reach to step 10.4 ,  i got this error [ERROR] Source option 6 is no longer supported. Use 7 or later. [ERROR] Target option 6 is no longer supported. Use 7 or later. Some recommend that we need to add this in to <project> tag <properties> <maven.compiler.target>1.8</maven.compiler.target> <maven.compiler.source>1.8</maven.compiler.source> </properties> It works for some people , but it’s not working for me. Finally i found that i need to add this <properties> <java.version>1.9</java.version> </properties> More detail is from this url: https://www.baeldung.com/maven-java-version ThisRead More →

Just imagine, you use sitespeed to monitor your website , and your website throws a javascript alert popup – this will usually throw some error. To fix this issue, you can try this script: module.exports = async function(context, commands) { // Measure the page and give it the alias StartPage const driver = context.selenium.driver; const webdriver = context.selenium.webdriver; await commands.measure.start(); await driver.get(‘http://www.yoururl.com’); await driver.switchTo().alert().accept(); await commands.measure.stop(); };Read More →

If you are running on Linux machine and. every time you access to your corporate website , it asks you for the password , but this does not happen with your Windows machine. I have spent a lot of times to research on this and found that: Chrome supports some of these authentication method: Basic, NTLM , Negotiate with Kerberos and Certificate. In this post, i will share how i pass the NTLM authentication by using a chrome extension. Here are 2 files that i use to create the extension:webrequest.js n_try=0; chrome.webRequest.onAuthRequired.addListener(function(details){ if(n_try>2) { return ; } n_try++; console.log(“chrome.webRequest.onAuthRequired event has fired”); return { authCredentials:Read More →

I got a weird message today when trying to use XMLHttpRequest Request Access to XMLHttpRequest at ‘http://192.168.1.6:8002/polls/’ from origin ‘http://192.168.1.6:8001’ has been blocked by CORS policy: Request header field traceparent is not allowed by Access-Control-Allow-Headers in preflight response. I turns out that i need to turn on some headers on the destination server. This can be fixed by doing with .htaccess Header set Access-Control-Allow-Origin “*” Header set Access-Control-Allow-Methods: “GET,POST,OPTIONS,DELETE,PUT” Header set Access-Control-Allow-Headers: “Accept,traceparent”. (you can customize this list) Here is the reason behind this. Let say you host a javascript on domain1.com , this script need to make a XMLHttpRequest on domain2.com. For security reason,Read More →

Create a new primary volume and extend the volume group to the new volume. partprobe pvcreate /dev/xvda3 vgextend /dev/centos /dev/xvda3 Check the physical volume for free space, extend the logical volume with the free space. vgdisplay -v lvextend -l+288 /dev/centos/root Finally perform an online resize to resize the logical volume, then check the available space. xfs_growfs /dev/centos/root df -hRead More →

With puppeteer, we normally visit a website, that website has a form for us to submit the data. In the api world, there is no form for us to submit, when you visit you must embed the request data in the request. the data could be username or password or some special headers. This is easy done with curl. How can we do that with puppeteer? We can do that, Puppeteer allows us to modify the request before sending it to the server. Here is a sample code: await page.setRequestInterception(true); var accessToken =””; page.on(‘request’, request => { const overrides = {}; if (request.url().indexOf(‘api/step1’)>0) { constRead More →