+ );
+}
diff --git a/frontend/src/container/OnboardingContainer/APM/GoLang/GoLang.styles.scss b/frontend/src/container/OnboardingContainer/APM/GoLang/GoLang.styles.scss
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/frontend/src/container/OnboardingContainer/APM/GoLang/GoLang.tsx b/frontend/src/container/OnboardingContainer/APM/GoLang/GoLang.tsx
new file mode 100644
index 0000000000..f2310ec292
--- /dev/null
+++ b/frontend/src/container/OnboardingContainer/APM/GoLang/GoLang.tsx
@@ -0,0 +1,62 @@
+import './GoLang.styles.scss';
+
+import { MDXProvider } from '@mdx-js/react';
+import { Form, Input } from 'antd';
+import Header from 'container/OnboardingContainer/common/Header/Header';
+
+import ConnectionStatus from '../common/ConnectionStatus/ConnectionStatus';
+import GoLangDocs from './goLang.md';
+
+export default function GoLang({
+ activeStep,
+}: {
+ activeStep: number;
+}): JSX.Element {
+ const [form] = Form.useForm();
+
+ return (
+ <>
+ {activeStep === 2 && (
+
+
+
+
+
+
Service Name
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ )}
+ {activeStep === 3 && (
+
+ )}
+ >
+ );
+}
diff --git a/frontend/src/container/OnboardingContainer/APM/GoLang/goLang.md b/frontend/src/container/OnboardingContainer/APM/GoLang/goLang.md
new file mode 100644
index 0000000000..bbae2bd30b
--- /dev/null
+++ b/frontend/src/container/OnboardingContainer/APM/GoLang/goLang.md
@@ -0,0 +1,412 @@
+## Send Traces to SigNoz Cloud
+
+
+
+
+From VMs, there are two ways to send data to SigNoz Cloud.
+
+- [Send traces directly to SigNoz Cloud](#send-traces-directly-to-signoz-cloud)
+- [Send traces via OTel Collector binary](#send-traces-via-otel-collector-binary) (recommended)
+
+#### **Send traces directly to SigNoz Cloud**
+
+1. **Install Dependencies**
+ Dependencies related to OpenTelemetry exporter and SDK have to be installed first. Note that we are assuming you are using `gin` request router. If you are using other request routers, check out the [corresponding package](#request-routers).
+
+ Run the below commands after navigating to the application source folder:
+
+ ```bash
+ go get go.opentelemetry.io/otel \
+ go.opentelemetry.io/otel/trace \
+ go.opentelemetry.io/otel/sdk \
+ go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin \
+ go.opentelemetry.io/otel/exporters/otlp/otlptrace \
+ go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc
+ ```
+
+2. **Declare environment variables for configuring OpenTelemetry**
+ Declare the following global variables in `main.go` which we will use to configure OpenTelemetry:
+
+ ```bash
+ var (
+ serviceName = os.Getenv("SERVICE_NAME")
+ collectorURL = os.Getenv("OTEL_EXPORTER_OTLP_ENDPOINT")
+ insecure = os.Getenv("INSECURE_MODE")
+ )
+ ```
+
+3. **Instrument your Go application with OpenTelemetry**
+ To configure your application to send data we will need a function to initialize OpenTelemetry. Add the following snippet of code in your `main.go` file.
+
+ ```go
+
+ import (
+ .....
+
+ "github.com/gin-gonic/gin"
+ "go.opentelemetry.io/otel"
+ "go.opentelemetry.io/otel/attribute"
+ "go.opentelemetry.io/otel/exporters/otlp/otlptrace"
+ "go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc"
+
+ "go.opentelemetry.io/otel/sdk/resource"
+ sdktrace "go.opentelemetry.io/otel/sdk/trace"
+ )
+
+ func initTracer() func(context.Context) error {
+
+ var secureOption otlptracegrpc.Option
+
+ if strings.ToLower(insecure) == "false" || insecure == "0" || strings.ToLower(insecure) == "f" {
+ secureOption = otlptracegrpc.WithTLSCredentials(credentials.NewClientTLSFromCert(nil, ""))
+ } else {
+ secureOption = otlptracegrpc.WithInsecure()
+ }
+
+ exporter, err := otlptrace.New(
+ context.Background(),
+ otlptracegrpc.NewClient(
+ secureOption,
+ otlptracegrpc.WithEndpoint(collectorURL),
+ ),
+ )
+
+ if err != nil {
+ log.Fatalf("Failed to create exporter: %v", err)
+ }
+ resources, err := resource.New(
+ context.Background(),
+ resource.WithAttributes(
+ attribute.String("service.name", serviceName),
+ attribute.String("library.language", "go"),
+ ),
+ )
+ if err != nil {
+ log.Fatalf("Could not set resources: %v", err)
+ }
+
+ otel.SetTracerProvider(
+ sdktrace.NewTracerProvider(
+ sdktrace.WithSampler(sdktrace.AlwaysSample()),
+ sdktrace.WithBatcher(exporter),
+ sdktrace.WithResource(resources),
+ ),
+ )
+ return exporter.Shutdown
+ }
+ ```
+
+4. **Initialize the tracer in main.go**
+ Modify the main function to initialise the tracer in `main.go`. Initiate the tracer at the very beginning of our main function.
+ ```go
+ func main() {
+ cleanup := initTracer()
+ defer cleanup(context.Background())
+
+ ......
+ }
+ ```
+5. **Add the OpenTelemetry Gin middleware**
+ Configure Gin to use the middleware by adding the following lines in `main.go`.
+
+ ```go
+ import (
+ ....
+ "go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin"
+ )
+
+ func main() {
+ ......
+ r := gin.Default()
+ r.Use(otelgin.Middleware(serviceName))
+ ......
+ }
+ ```
+
+6. **Set environment variables and run your Go Gin application**
+ The run command must have some environment variables to send data to SigNoz cloud. The run command:
+
+ ```bash
+ SERVICE_NAME=goApp INSECURE_MODE=false OTEL_EXPORTER_OTLP_HEADERS=signoz-access-token= OTEL_EXPORTER_OTLP_ENDPOINT=ingest.{region}.signoz.cloud:443 go run main.go
+ ```
+
+ We can replace the placeholders based on our environment.
+
+ `SERVICE_NAME`: goGinApp (you can name it whatever you want)
+
+ `OTEL_EXPORTER_OTLP_HEADERS`: `signoz-access-token=`. Update `` with the ingestion token provided by SigNoz
+
+ `OTEL_EXPORTER_OTLP_ENDPOINT`: ingest.{region}.signoz.cloud:443. Depending on the choice of your region for SigNoz cloud, the ingest endpoint will vary according to this table.
+
+ | Region | Endpoint |
+ | ------ | -------------------------- |
+ | US | ingest.us.signoz.cloud:443 |
+ | IN | ingest.in.signoz.cloud:443 |
+ | EU | ingest.eu.signoz.cloud:443 |
+
+---
+
+#### **Send traces via OTel Collector binary**
+
+OTel Collector binary helps to collect logs, hostmetrics, resource and infra attributes. It is recommended to install Otel Collector binary to collect and send traces to SigNoz cloud. You can correlate signals and have rich contextual data through this way.
+
+You can find instructions to install OTel Collector binary [here](https://signoz.io/docs/tutorial/opentelemetry-binary-usage-in-virtual-machine/) in your VM. Once you are done setting up your OTel Collector binary, you can follow the below steps for instrumenting your Golang application.
+
+1. **Install Dependencies**
+ Dependencies related to OpenTelemetry exporter and SDK have to be installed first. Note that we are assuming you are using `gin` request router. If you are using other request routers, check out the [corresponding package](#request-routers).
+
+ Run the below commands after navigating to the application source folder:
+
+ ```bash
+ go get go.opentelemetry.io/otel \
+ go.opentelemetry.io/otel/trace \
+ go.opentelemetry.io/otel/sdk \
+ go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin \
+ go.opentelemetry.io/otel/exporters/otlp/otlptrace \
+ go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc
+ ```
+
+2. **Declare environment variables for configuring OpenTelemetry**
+ Declare the following global variables in `main.go` which we will use to configure OpenTelemetry:
+
+ ```go
+ var (
+ serviceName = os.Getenv("SERVICE_NAME")
+ collectorURL = os.Getenv("OTEL_EXPORTER_OTLP_ENDPOINT")
+ insecure = os.Getenv("INSECURE_MODE")
+ )
+ ```
+
+3. **Instrument your Go application with OpenTelemetry**
+ To configure your application to send data we will need a function to initialize OpenTelemetry. Add the following snippet of code in your `main.go` file.
+
+ ```go
+
+ import (
+ .....
+
+ "github.com/gin-gonic/gin"
+ "go.opentelemetry.io/otel"
+ "go.opentelemetry.io/otel/attribute"
+ "go.opentelemetry.io/otel/exporters/otlp/otlptrace"
+ "go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc"
+
+ "go.opentelemetry.io/otel/sdk/resource"
+ sdktrace "go.opentelemetry.io/otel/sdk/trace"
+ )
+
+ func initTracer() func(context.Context) error {
+
+ var secureOption otlptracegrpc.Option
+
+ if strings.ToLower(insecure) == "false" || insecure == "0" || strings.ToLower(insecure) == "f" {
+ secureOption = otlptracegrpc.WithTLSCredentials(credentials.NewClientTLSFromCert(nil, ""))
+ } else {
+ secureOption = otlptracegrpc.WithInsecure()
+ }
+
+ exporter, err := otlptrace.New(
+ context.Background(),
+ otlptracegrpc.NewClient(
+ secureOption,
+ otlptracegrpc.WithEndpoint(collectorURL),
+ ),
+ )
+
+ if err != nil {
+ log.Fatalf("Failed to create exporter: %v", err)
+ }
+ resources, err := resource.New(
+ context.Background(),
+ resource.WithAttributes(
+ attribute.String("service.name", serviceName),
+ attribute.String("library.language", "go"),
+ ),
+ )
+ if err != nil {
+ log.Fatalf("Could not set resources: %v", err)
+ }
+
+ otel.SetTracerProvider(
+ sdktrace.NewTracerProvider(
+ sdktrace.WithSampler(sdktrace.AlwaysSample()),
+ sdktrace.WithBatcher(exporter),
+ sdktrace.WithResource(resources),
+ ),
+ )
+ return exporter.Shutdown
+ }
+
+ ```
+
+4. **Initialize the tracer in main.go**
+ Modify the main function to initialise the tracer in `main.go`. Initiate the tracer at the very beginning of our main function.
+ ```go
+ func main() {
+ cleanup := initTracer()
+ defer cleanup(context.Background())
+
+ ......
+ }
+ ```
+5. **Add the OpenTelemetry Gin middleware**
+ Configure Gin to use the middleware by adding the following lines in `main.go`.
+ ```go
+ import (
+ ....
+ "go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin"
+ )
+
+ func main() {
+ ......
+ r := gin.Default()
+ r.Use(otelgin.Middleware(serviceName))
+ ......
+ }
+ ```
+6. **Set environment variables and run your Go Gin application**
+ The run command must have some environment variables to send data to SigNoz. The run command:
+
+ ```bash
+ SERVICE_NAME=goGinApp INSECURE_MODE=true OTEL_EXPORTER_OTLP_ENDPOINT=localhost:4317 go run main.go
+ ```
+
+ If you want to update your `service_name`, you can modify the `SERVICE_NAME` variable.
+ `SERVICE_NAME`: goGinApp (you can name it whatever you want)
+
+7. You can validate if your application is sending traces to SigNoz cloud by following the instructions [here](#validating-instrumentation-by-checking-for-traces).
+
+
+
+
+
+For Golang application deployed on Kubernetes, you need to install OTel Collector agent in your k8s infra to collect and send traces to SigNoz Cloud. You can find the instructions to install OTel Collector agent [here](/docs/tutorial/kubernetes-infra-metrics/).
+
+Once you have set up OTel Collector agent, you can proceed with OpenTelemetry Golang instrumentation by following the below steps:
+
+1. **Install Dependencies**
+ Dependencies related to OpenTelemetry exporter and SDK have to be installed first. Note that we are assuming you are using `gin` request router. If you are using other request routers, check out the [corresponding package](#request-routers).
+
+ Run the below commands after navigating to the application source folder:
+
+ ```bash
+ go get go.opentelemetry.io/otel \
+ go.opentelemetry.io/otel/trace \
+ go.opentelemetry.io/otel/sdk \
+ go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin \
+ go.opentelemetry.io/otel/exporters/otlp/otlptrace \
+ go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc
+ ```
+
+2. **Declare environment variables for configuring OpenTelemetry**
+ Declare the following global variables in `main.go` which we will use to configure OpenTelemetry:
+
+ ```go
+ var (
+ serviceName = os.Getenv("SERVICE_NAME")
+ collectorURL = os.Getenv("OTEL_EXPORTER_OTLP_ENDPOINT")
+ insecure = os.Getenv("INSECURE_MODE")
+ )
+ ```
+
+3. **Instrument your Go application with OpenTelemetry**
+ To configure your application to send data we will need a function to initialize OpenTelemetry. Add the following snippet of code in your `main.go` file.
+
+ ```go
+
+ import (
+ .....
+
+ "github.com/gin-gonic/gin"
+ "go.opentelemetry.io/otel"
+ "go.opentelemetry.io/otel/attribute"
+ "go.opentelemetry.io/otel/exporters/otlp/otlptrace"
+ "go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc"
+
+ "go.opentelemetry.io/otel/sdk/resource"
+ sdktrace "go.opentelemetry.io/otel/sdk/trace"
+ )
+
+ func initTracer() func(context.Context) error {
+
+ var secureOption otlptracegrpc.Option
+
+ if strings.ToLower(insecure) == "false" || insecure == "0" || strings.ToLower(insecure) == "f" {
+ secureOption = otlptracegrpc.WithTLSCredentials(credentials.NewClientTLSFromCert(nil, ""))
+ } else {
+ secureOption = otlptracegrpc.WithInsecure()
+ }
+
+ exporter, err := otlptrace.New(
+ context.Background(),
+ otlptracegrpc.NewClient(
+ secureOption,
+ otlptracegrpc.WithEndpoint(collectorURL),
+ ),
+ )
+
+ if err != nil {
+ log.Fatalf("Failed to create exporter: %v", err)
+ }
+ resources, err := resource.New(
+ context.Background(),
+ resource.WithAttributes(
+ attribute.String("service.name", serviceName),
+ attribute.String("library.language", "go"),
+ ),
+ )
+ if err != nil {
+ log.Fatalf("Could not set resources: %v", err)
+ }
+
+ otel.SetTracerProvider(
+ sdktrace.NewTracerProvider(
+ sdktrace.WithSampler(sdktrace.AlwaysSample()),
+ sdktrace.WithBatcher(exporter),
+ sdktrace.WithResource(resources),
+ ),
+ )
+ return exporter.Shutdown
+ }
+
+ ```
+
+4. **Initialize the tracer in main.go**
+ Modify the main function to initialise the tracer in `main.go`. Initiate the tracer at the very beginning of our main function.
+ ```go
+ func main() {
+ cleanup := initTracer()
+ defer cleanup(context.Background())
+
+ ......
+ }
+ ```
+5. **Add the OpenTelemetry Gin middleware**
+ Configure Gin to use the middleware by adding the following lines in `main.go`.
+ ```go
+ import (
+ ....
+ "go.opentelemetry.io/contrib/instrumentation/github.com/gin-gonic/gin/otelgin"
+ )
+
+ func main() {
+ ......
+ r := gin.Default()
+ r.Use(otelgin.Middleware(serviceName))
+ ......
+ }
+ ```
+6. **Set environment variables and run your Go Gin application**
+ The run command must have some environment variables to send data to SigNoz. The run command:
+
+ ```bash
+ SERVICE_NAME=goGinApp INSECURE_MODE=true OTEL_EXPORTER_OTLP_ENDPOINT=localhost:4317 go run main.go
+ ```
+
+ If you want to update your `service_name`, you can modify the `SERVICE_NAME` variable.
+ `SERVICE_NAME`: goGinApp (you can name it whatever you want)
+
+7. You can validate if your application is sending traces to SigNoz cloud by following the instructions [here](#validating-instrumentation-by-checking-for-traces).
+
+
+
diff --git a/frontend/src/container/OnboardingContainer/APM/Java/Java.styles.scss b/frontend/src/container/OnboardingContainer/APM/Java/Java.styles.scss
new file mode 100644
index 0000000000..5a6fc3baaf
--- /dev/null
+++ b/frontend/src/container/OnboardingContainer/APM/Java/Java.styles.scss
@@ -0,0 +1,10 @@
+.form-container {
+ display: flex;
+ align-items: flex-start;
+ width: 100%;
+ gap: 16px;
+
+ & .ant-form-item {
+ margin-bottom: 0px;
+ }
+}
diff --git a/frontend/src/container/OnboardingContainer/APM/Java/Java.tsx b/frontend/src/container/OnboardingContainer/APM/Java/Java.tsx
new file mode 100644
index 0000000000..a5338ba967
--- /dev/null
+++ b/frontend/src/container/OnboardingContainer/APM/Java/Java.tsx
@@ -0,0 +1,115 @@
+import './Java.styles.scss';
+
+import { MDXProvider } from '@mdx-js/react';
+import { Form, Input, Select } from 'antd';
+import Header from 'container/OnboardingContainer/common/Header/Header';
+import { useState } from 'react';
+
+import ConnectionStatus from '../common/ConnectionStatus/ConnectionStatus';
+import JavaDocs from './md-docs/java.md';
+import JbossDocs from './md-docs/jboss.md';
+import SprintBootDocs from './md-docs/spring_boot.md';
+import TomcatDocs from './md-docs/tomcat.md';
+
+enum FrameworksMap {
+ tomcat = 'Tomcat',
+ spring_boot = 'Spring Boot',
+ jboss = 'JBoss',
+ other = 'Others',
+}
+
+export default function Java({
+ activeStep,
+}: {
+ activeStep: number;
+}): JSX.Element {
+ const [selectedFrameWork, setSelectedFrameWork] = useState('spring_boot');
+
+ const [form] = Form.useForm();
+
+ const renderDocs = (): JSX.Element => {
+ switch (selectedFrameWork) {
+ case 'tomcat':
+ return ;
+ case 'spring_boot':
+ return ;
+ case 'jboss':
+ return ;
+ default:
+ return ;
+ }
+ };
+
+ return (
+ <>
+ {activeStep === 2 && (
+
+
+
+
+
+
Select Framework
+
+
+
+
+
Service Name
+
+
+
+
+
+
+
+
+
+ {renderDocs()}
+
+
+ )}
+ {activeStep === 3 && (
+
+ )}
+ >
+ );
+}
diff --git a/frontend/src/container/OnboardingContainer/APM/Java/md-docs/java.md b/frontend/src/container/OnboardingContainer/APM/Java/md-docs/java.md
new file mode 100644
index 0000000000..06c300e4f7
--- /dev/null
+++ b/frontend/src/container/OnboardingContainer/APM/Java/md-docs/java.md
@@ -0,0 +1,86 @@
+## Send Traces to SigNoz Cloud
+
+OpenTelemetry provides a handy Java JAR agent that can be attached to any Java 8+ application and dynamically injects bytecode to capture telemetry from a number of popular libraries and frameworks.
+
+Based on your application environment, you can choose the setup below to send traces to SigNoz Cloud.
+
+From VMs, there are two ways to send data to SigNoz Cloud.
+
+- [Send traces directly to SigNoz Cloud](#send-traces-directly-to-signoz-cloud)
+- [Send traces via OTel Collector binary](#send-traces-via-otel-collector-binary) (recommended)
+
+#### **Send traces directly to SigNoz Cloud**
+
+OpenTelemetry Java agent can send traces directly to SigNoz Cloud.
+
+Step 1. Download otel java binary agent
+
+```bash
+wget https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/latest/download/opentelemetry-javaagent.jar
+```
+
+Step 2. Run your application
+
+```bash
+OTEL_RESOURCE_ATTRIBUTES=service.name= \
+OTEL_EXPORTER_OTLP_HEADERS="signoz-access-token=SIGNOZ_INGESTION_KEY" \
+OTEL_EXPORTER_OTLP_ENDPOINT=https://ingest.{region}.signoz.cloud:443 \
+java -javaagent:$PWD/opentelemetry-javaagent.jar -jar .jar
+```
+
+- `` is the name for your application
+- `SIGNOZ_INGESTION_KEY` is the API token provided by SigNoz. You can find your ingestion key from SigNoz cloud account details sent on your email.
+
+Depending on the choice of your region for SigNoz cloud, the ingest endpoint will vary according to this table.
+
+| Region | Endpoint |
+| ------ | -------------------------- |
+| US | ingest.us.signoz.cloud:443 |
+| IN | ingest.in.signoz.cloud:443 |
+| EU | ingest.eu.signoz.cloud:443 |
+
+---
+
+#### **Send traces via OTel Collector binary**
+
+OTel Collector binary helps to collect logs, hostmetrics, resource and infra attributes. It is recommended to install Otel Collector binary to collect and send traces to SigNoz cloud. You can correlate signals and have rich contextual data through this way.
+
+You can find instructions to install OTel Collector binary [here](https://signoz.io/docs/tutorial/opentelemetry-binary-usage-in-virtual-machine/) in your VM. Once you are done setting up your OTel Collector binary, you can follow the below steps for instrumenting your Java application.
+
+Step 1. Download OTel java binary agent
+
+```bash
+wget https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/latest/download/opentelemetry-javaagent.jar
+```
+
+Step 2. Run your application
+
+```bash
+java -javaagent:$PWD/opentelemetry-javaagent.jar -jar .jar
+```
+
+- `` is the name of your application jar file
+- In case you download `opentelemetry-javaagent.jar` file in different directory than that of the project, replace `$PWD` with the path of the otel jar file.
+
+For Java application deployed on Kubernetes, you need to install OTel Collector agent in your k8s infra to collect and send traces to SigNoz Cloud. You can find the instructions to install OTel Collector agent [here](/docs/tutorial/kubernetes-infra-metrics/).
+
+Once you have set up OTel Collector agent, you can proceed with OpenTelemetry java instrumentation by following the below steps:
+
+1. Download otel java binary
+
+ ```bash
+ wget https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/latest/download/opentelemetry-javaagent.jar
+ ```
+
+2. Run your application
+
+ ```bash
+ java -javaagent:$PWD/opentelemetry-javaagent.jar -jar .jar
+ ```
+
+ - `` is the name of your application jar file
+ - In case you download `opentelemetry-javaagent.jar` file in different directory than that of the project, replace `$PWD` with the path of the otel jar file.
+
+3. Make sure to dockerise your application along with OpenTelemetry instrumentation.
+
+You can validate if your application is sending traces to SigNoz cloud by following the instructions [here](#validating-instrumentation-by-checking-for-traces).
diff --git a/frontend/src/container/OnboardingContainer/APM/Java/md-docs/jboss.md b/frontend/src/container/OnboardingContainer/APM/Java/md-docs/jboss.md
new file mode 100644
index 0000000000..5e0255b9ff
--- /dev/null
+++ b/frontend/src/container/OnboardingContainer/APM/Java/md-docs/jboss.md
@@ -0,0 +1,110 @@
+## Send traces directly to SigNoz Cloud
+
+OpenTelemetry Java agent can send traces directly to SigNoz Cloud.
+
+Step 1. Download otel java binary agent
+
+```bash
+wget https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/latest/download/opentelemetry-javaagent.jar
+```
+
+Step 2. Open the configuration file
+
+```bash
+vim /opt/jboss-eap-7.1/bin/standalone.conf
+```
+
+Step 3. Update `JAVA_OPTS` environment variable
+
+Update `JAVA_OPTS` environment variable with configurations required to send data to SigNoz cloud in your configuration file.
+
+```bash
+JAVA_OPTS="-javaagent:/path/opentelemetry-javaagent.jar
+-Dotel.exporter.otlp.endpoint=https://ingest.{region}.signoz.cloud:443
+-Dotel.exporter.otlp.headers="signoz-access-token=SIGNOZ_INGESTION_KEY"
+-Dotel.resource.attributes="service.name=""
+```
+
+You need to replace the following things based on your environment:
+
+- `path` - Update it to the path of your downloaded Java JAR agent.
+- `` is the name for your application
+- `SIGNOZ_INGESTION_KEY` is the API token provided by SigNoz. You can find your ingestion key from SigNoz cloud account details sent on your email.
+
+Depending on the choice of your region for SigNoz cloud, the ingest endpoint will vary according to this table.
+
+| Region | Endpoint |
+| ------ | -------------------------- |
+| US | ingest.us.signoz.cloud:443 |
+| IN | ingest.in.signoz.cloud:443 |
+| EU | ingest.eu.signoz.cloud:443 |
+
+Step 4. [Optional] Write the output/logs of standalone.sh script to a file nohup.out as a background thread
+
+```bash
+/opt/jboss-eap-7.1/bin/standalone.sh > /opt/jboss-eap-7.1/bin/nohup.out &
+```
+
+---
+
+#### **Send traces via OTel Collector binary**
+
+OTel Collector binary helps to collect logs, hostmetrics, resource and infra attributes. It is recommended to install Otel Collector binary to collect and send traces to SigNoz cloud. You can correlate signals and have rich contextual data through this way.
+
+You can find instructions to install OTel Collector binary [here](https://signoz.io/docs/tutorial/opentelemetry-binary-usage-in-virtual-machine/) in your VM. Once you are done setting up your OTel Collector binary, you can follow the below steps for instrumenting your Java application.
+
+Step 1. Download OTel java binary agent
+
+```bash
+wget https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/latest/download/opentelemetry-javaagent.jar
+```
+
+Step 2. Open the configuration file
+
+```bash
+vim /opt/jboss-eap-7.1/bin/standalone.conf
+```
+
+Step 3. Update `JAVA_OPTS` environment variable
+
+Update `JAVA_OPTS` environment variable with configurations required to send data to SigNoz cloud in your configuration file.
+
+```bash
+JAVA_OPTS="-javaagent:/path/opentelemetry-javaagent.jar"
+```
+
+where,
+
+- `path` - Update it to the path of your downloaded Java JAR agent.
+
+For Java application deployed on Kubernetes, you need to install OTel Collector agent in your k8s infra to collect and send traces to SigNoz Cloud. You can find the instructions to install OTel Collector agent [here](/docs/tutorial/kubernetes-infra-metrics/).
+
+Once you have set up OTel Collector agent, you can proceed with OpenTelemetry java instrumentation by following the below steps:
+
+Step 1. Download otel java binary
+
+```bash
+wget https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/latest/download/opentelemetry-javaagent.jar
+```
+
+Step 2. Open the configuration file
+
+```bash
+vim /opt/jboss-eap-7.1/bin/standalone.conf
+```
+
+Step 3. Update `JAVA_OPTS` environment variable
+
+Update `JAVA_OPTS` environment variable with configurations required to send data to SigNoz cloud in your configuration file.
+
+```bash
+JAVA_OPTS="-javaagent:/path/opentelemetry-javaagent.jar"
+```
+
+where,
+
+- `path` - Update it to the path of your downloaded Java JAR agent.
+
+Step 4. Make sure to dockerise your application along with OpenTelemetry instrumentation.
+
+You can validate if your application is sending traces to SigNoz cloud by following the instructions [here](#validating-instrumentation-by-checking-for-traces).
diff --git a/frontend/src/container/OnboardingContainer/APM/Java/md-docs/spring_boot.md b/frontend/src/container/OnboardingContainer/APM/Java/md-docs/spring_boot.md
new file mode 100644
index 0000000000..d373931072
--- /dev/null
+++ b/frontend/src/container/OnboardingContainer/APM/Java/md-docs/spring_boot.md
@@ -0,0 +1,81 @@
+## Send traces directly to SigNoz Cloud
+
+OpenTelemetry Java agent can send traces directly to SigNoz Cloud.
+
+Step 1. Download otel java binary agent
+
+```bash
+wget https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/latest/download/opentelemetry-javaagent.jar
+```
+
+Step 2. Run your application
+
+```bash
+OTEL_RESOURCE_ATTRIBUTES=service.name= \
+OTEL_EXPORTER_OTLP_HEADERS="signoz-access-token=SIGNOZ_INGESTION_KEY" \
+OTEL_EXPORTER_OTLP_ENDPOINT=https://ingest.{region}.signoz.cloud:443 \
+java -javaagent:$PWD/opentelemetry-javaagent.jar -jar .jar
+```
+
+- `` is the name for your application
+- `SIGNOZ_INGESTION_KEY` is the API token provided by SigNoz. You can find your ingestion key from SigNoz cloud account details sent on your email.
+
+Depending on the choice of your region for SigNoz cloud, the ingest endpoint will vary according to this table.
+
+| Region | Endpoint |
+| ------ | -------------------------- |
+| US | ingest.us.signoz.cloud:443 |
+| IN | ingest.in.signoz.cloud:443 |
+| EU | ingest.eu.signoz.cloud:443 |
+
+---
+
+#### **Send traces via OTel Collector binary**
+
+OTel Collector binary helps to collect logs, hostmetrics, resource and infra attributes. It is recommended to install Otel Collector binary to collect and send traces to SigNoz cloud. You can correlate signals and have rich contextual data through this way.
+
+You can find instructions to install OTel Collector binary [here](https://signoz.io/docs/tutorial/opentelemetry-binary-usage-in-virtual-machine/) in your VM. Once you are done setting up your OTel Collector binary, you can follow the below steps for instrumenting your Java application.
+
+Step 1. Download OTel java binary agent
+
+```bash
+wget https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/latest/download/opentelemetry-javaagent.jar
+```
+
+Step 2. Run your application
+
+```bash
+java -javaagent:$PWD/opentelemetry-javaagent.jar -jar .jar
+```
+
+- `` is the name of your application jar file
+- In case you download `opentelemetry-javaagent.jar` file in different directory than that of the project, replace `$PWD` with the path of the otel jar file.
+
+
+
+
+For Java application deployed on Kubernetes, you need to install OTel Collector agent in your k8s infra to collect and send traces to SigNoz Cloud. You can find the instructions to install OTel Collector agent [here](/docs/tutorial/kubernetes-infra-metrics/).
+
+Once you have set up OTel Collector agent, you can proceed with OpenTelemetry java instrumentation by following the below steps:
+
+1. Download otel java binary
+
+ ```bash
+ wget https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/latest/download/opentelemetry-javaagent.jar
+ ```
+
+2. Run your application
+
+ ```bash
+ java -javaagent:$PWD/opentelemetry-javaagent.jar -jar .jar
+ ```
+
+ - `` is the name of your application jar file
+ - In case you download `opentelemetry-javaagent.jar` file in different directory than that of the project, replace `$PWD` with the path of the otel jar file.
+
+3. Make sure to dockerise your application along with OpenTelemetry instrumentation.
+
+You can validate if your application is sending traces to SigNoz cloud by following the instructions [here](#validating-instrumentation-by-checking-for-traces).
+
+
+
diff --git a/frontend/src/container/OnboardingContainer/APM/Java/md-docs/tomcat.md b/frontend/src/container/OnboardingContainer/APM/Java/md-docs/tomcat.md
new file mode 100644
index 0000000000..d92f7ab109
--- /dev/null
+++ b/frontend/src/container/OnboardingContainer/APM/Java/md-docs/tomcat.md
@@ -0,0 +1,96 @@
+## Send Traces to SigNoz Cloud
+
+OpenTelemetry provides a handy Java JAR agent that can be attached to any Java 8+ application and dynamically injects bytecode to capture telemetry from a number of popular libraries and frameworks.
+
+Based on your application environment, you can choose the setup below to send traces to SigNoz Cloud.
+
+From VMs, there are two ways to send data to SigNoz Cloud.
+
+- [Send traces directly to SigNoz Cloud](#send-traces-directly-to-signoz-cloud)
+- [Send traces via OTel Collector binary](#send-traces-via-otel-collector-binary) (recommended)
+
+#### **Send traces directly to SigNoz Cloud**
+
+OpenTelemetry Java agent can send traces directly to SigNoz Cloud.
+
+Step 1. Download otel java binary agent
+
+```bash
+wget https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/latest/download/opentelemetry-javaagent.jar
+```
+
+Step 2. Enable the instrumentation agent and run your application
+
+If you run your `.war` package by putting in `webapps` folder, just add `setenv.sh` in your Tomcat `bin` folder.
+
+This should set these environment variables and start sending telemetry data to SigNoz Cloud.
+
+```bash
+export CATALINA_OPTS="$CATALINA_OPTS -javaagent:/path/to/opentelemetry-javaagent.jar"
+export OTEL_EXPORTER_OTLP_HEADERS="signoz-access-token=SIGNOZ_INGESTION_KEY"
+export OTEL_EXPORTER_OTLP_ENDPOINT=https://ingest.{region}.signoz.cloud:443
+export OTEL_RESOURCE_ATTRIBUTES=service.name=
+```
+
+- `` is the name for your application
+- `SIGNOZ_INGESTION_KEY` is the API token provided by SigNoz. You can find your ingestion key from SigNoz cloud account details sent on your email.
+
+Depending on the choice of your region for SigNoz cloud, the ingest endpoint will vary according to this table.
+
+| Region | Endpoint |
+| ------ | -------------------------- |
+| US | ingest.us.signoz.cloud:443 |
+| IN | ingest.in.signoz.cloud:443 |
+| EU | ingest.eu.signoz.cloud:443 |
+
+---
+
+#### **Send traces via OTel Collector binary**
+
+OTel Collector binary helps to collect logs, hostmetrics, resource and infra attributes. It is recommended to install Otel Collector binary to collect and send traces to SigNoz cloud. You can correlate signals and have rich contextual data through this way.
+
+You can find instructions to install OTel Collector binary [here](https://signoz.io/docs/tutorial/opentelemetry-binary-usage-in-virtual-machine/) in your VM. Once you are done setting up your OTel Collector binary, you can follow the below steps for instrumenting your Java application.
+
+Step 1. Download OTel java binary agent
+
+```bash
+wget https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/latest/download/opentelemetry-javaagent.jar
+```
+
+Step 2. Enable the instrumentation agent and run your application
+
+If you run your `.war` package by putting in `webapps` folder, just add `setenv.sh` in your Tomcat `bin` folder.
+
+This should set these environment variables and start sending telemetry data to SigNoz Cloud.
+
+```bash
+export CATALINA_OPTS="$CATALINA_OPTS -javaagent:/path/to/opentelemetry-javaagent.jar"
+```
+
+- path/to - Update it to the path of your downloaded Java JAR agent.
+
+For Java application deployed on Kubernetes, you need to install OTel Collector agent in your k8s infra to collect and send traces to SigNoz Cloud. You can find the instructions to install OTel Collector agent [here](/docs/tutorial/kubernetes-infra-metrics/).
+
+Once you have set up OTel Collector agent, you can proceed with OpenTelemetry java instrumentation by following the below steps:
+
+1. Download otel java binary
+
+ ```bash
+ wget https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/latest/download/opentelemetry-javaagent.jar
+ ```
+
+2. Enable the instrumentation agent and run your application
+
+ If you run your `.war` package by putting in `webapps` folder, just add `setenv.sh` in your Tomcat `bin` folder.
+
+ This should set the environment variable and start sending telemetry data to SigNoz Cloud.
+
+ ```bash
+ export CATALINA_OPTS="$CATALINA_OPTS -javaagent:/path/to/opentelemetry-javaagent.jar"
+ ```
+
+ - path/to - Update it to the path of your downloaded Java JAR agent.
+
+3. Make sure to dockerise your application along with OpenTelemetry instrumentation.
+
+You can validate if your application is sending traces to SigNoz cloud by following the instructions [here](#validating-instrumentation-by-checking-for-traces).
diff --git a/frontend/src/container/OnboardingContainer/APM/Javascript/Javascript.styles.scss b/frontend/src/container/OnboardingContainer/APM/Javascript/Javascript.styles.scss
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/frontend/src/container/OnboardingContainer/APM/Javascript/Javascript.tsx b/frontend/src/container/OnboardingContainer/APM/Javascript/Javascript.tsx
new file mode 100644
index 0000000000..1d089e431a
--- /dev/null
+++ b/frontend/src/container/OnboardingContainer/APM/Javascript/Javascript.tsx
@@ -0,0 +1,121 @@
+import './Javascript.styles.scss';
+
+import { MDXProvider } from '@mdx-js/react';
+import { Form, Input, Select } from 'antd';
+import Header from 'container/OnboardingContainer/common/Header/Header';
+import { useState } from 'react';
+
+import ConnectionStatus from '../common/ConnectionStatus/ConnectionStatus';
+import AngularDocs from './md-docs/angular.md';
+import ExpressDocs from './md-docs/express.md';
+import JavascriptDocs from './md-docs/javascript.md';
+import NestJsDocs from './md-docs/nestjs.md';
+
+const frameworksMap = {
+ express: 'Express',
+ nestjs: 'Nest JS',
+ angular: 'Angular',
+ other: 'Others',
+};
+
+export default function Javascript({
+ activeStep,
+}: {
+ activeStep: number;
+}): JSX.Element {
+ const [selectedFrameWork, setSelectedFrameWork] = useState('express');
+
+ const [form] = Form.useForm();
+
+ const renderDocs = (): JSX.Element => {
+ switch (selectedFrameWork) {
+ case 'express':
+ return ;
+ case 'nestjs':
+ return ;
+ case 'angular':
+ return ;
+ default:
+ return ;
+ }
+ };
+
+ return (
+ <>
+ {activeStep === 2 && (
+
+
+
+
+
+
Select Framework
+
+
+
+
+
Service Name
+
+
+
+
+
+
+
+
+
+ {renderDocs()}
+
+
+ )}
+ {activeStep === 3 && (
+
+ )}
+ >
+ );
+}
diff --git a/frontend/src/container/OnboardingContainer/APM/Javascript/md-docs/angular.md b/frontend/src/container/OnboardingContainer/APM/Javascript/md-docs/angular.md
new file mode 100644
index 0000000000..cd220709ce
--- /dev/null
+++ b/frontend/src/container/OnboardingContainer/APM/Javascript/md-docs/angular.md
@@ -0,0 +1,57 @@
+## Instrumenting your Angular App with OpenTelemetry 🛠
+
+#### Pre-requisites
+
+Enable CORS in the OTel Receiver. Inside `docker/clickhouse-setup/otel-collector-config.yaml` add the following CORS config. You can view the file at [SigNoz GitHub repo](https://github.com/SigNoz/signoz/blob/develop/deploy/docker/clickhouse-setup/otel-collector-config.yaml).
+
+```yml
+ http:
++ cors:
++ allowed_origins:
++ - https://netflix.com # URL of your Frontend application
+```
+
+> Make sure to restart the container after making the config changes
+
+Now let's get back to instrumenting our Angular Application. Let's start by installing a couple of dependencies.
+
+```sh
+npm i @jufab/opentelemetry-angular-interceptor && npm i @opentelemetry/api @opentelemetry/sdk-trace-web @opentelemetry/sdk-trace-base @opentelemetry/core @opentelemetry/semantic-conventions @opentelemetry/resources @opentelemetry/exporter-trace-otlp-http @opentelemetry/exporter-zipkin @opentelemetry/propagator-b3 @opentelemetry/propagator-jaeger @opentelemetry/context-zone-peer-dep @opentelemetry/instrumentation @opentelemetry/instrumentation-document-load @opentelemetry/instrumentation-fetch @opentelemetry/instrumentation-xml-http-request @opentelemetry/propagator-aws-xray --save-dev
+```
+
+Not let's import OTel module in `app.module.ts`
+
+```ts
+import {
+ OpenTelemetryInterceptorModule,
+ OtelColExporterModule,
+ CompositePropagatorModule,
+} from '@jufab/opentelemetry-angular-interceptor';
+
+@NgModule({
+ ...
+ imports: [
+ ...
+ OpenTelemetryInterceptorModule.forRoot({
+ commonConfig: {
+ console: true, // Display trace on console (only in DEV env)
+ production: false, // Send Trace with BatchSpanProcessor (true) or SimpleSpanProcessor (false)
+ serviceName: 'Angular Sample App', // Service name send in trace
+ probabilitySampler: '1',
+ },
+ otelcolConfig: {
+ url: 'http://127.0.0.1:4318/v1/traces', // URL of opentelemetry collector
+ },
+ }),
+ //Insert OtelCol exporter module
+ OtelColExporterModule,
+ //Insert propagator module
+ CompositePropagatorModule,
+ ],
+ ...
+})
+```
+
+This config would be enough to get you up and running. For more tweaks refer to [this](https://github.com/jufab/opentelemetry-angular-interceptor#readme) detailed documentation of the instrumentation library.
+
+Facing difficulties with instrumenting your application? Check out this video tutorial 👇
diff --git a/frontend/src/container/OnboardingContainer/APM/Javascript/md-docs/express.md b/frontend/src/container/OnboardingContainer/APM/Javascript/md-docs/express.md
new file mode 100644
index 0000000000..c73d1f7872
--- /dev/null
+++ b/frontend/src/container/OnboardingContainer/APM/Javascript/md-docs/express.md
@@ -0,0 +1,132 @@
+## Send Traces Directly to SigNoz
+
+### Using the all-in-one auto-instrumentation library
+
+The recommended way to instrument your Express application is to use the all-in-one auto-instrumentation library - `@opentelemetry/auto-instrumentations-node`. It provides a simple way to initialize multiple Nodejs instrumentations.
+
+Internally, it calls the specific auto-instrumentation library for components used in the application. You can see the complete list [here](https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/metapackages/auto-instrumentations-node#supported-instrumentations).
+
+#### Steps to auto-instrument Express application
+
+1. Install the dependencies
+ We start by installing the relevant dependencies.
+
+ ```bash
+ npm install --save @opentelemetry/sdk-node
+ npm install --save @opentelemetry/auto-instrumentations-node
+ npm install --save @opentelemetry/exporter-trace-otlp-http
+ ```
+
+ The dependencies included are briefly explained below:
+
+ `@opentelemetry/sdk-node` - This package provides the full OpenTelemetry SDK for Node.js including tracing and metrics.
+
+ `@opentelemetry/auto-instrumentations-node` - This module provides a simple way to initialize multiple Node instrumentations.
+
+ `@opentelemetry/exporter-trace-otlp-http` - This module provides the exporter to be used with OTLP (`http/json`) compatible receivers.
+
+
+
+2. **Create a `tracing.js` file**
+ The `tracing.js` file will contain the tracing setup code. Notice, that we have set some environment variables in the code(highlighted). You can update these variables based on your environment.
+
+````jsx
+ // tracing.js
+ 'use strict'
+ const process = require('process');
+ const opentelemetry = require('@opentelemetry/sdk-node');
+ const { getNodeAutoInstrumentations } = require('@opentelemetry/auto-instrumentations-node');
+ const { OTLPTraceExporter } = require('@opentelemetry/exporter-trace-otlp-http');
+ const { Resource } = require('@opentelemetry/resources');
+ const { SemanticResourceAttributes } = require('@opentelemetry/semantic-conventions');
+
+ const exporterOptions = {
+ // highlight-next-line
+ url: 'http://localhost:4318/v1/traces'
+ }
+
+ const traceExporter = new OTLPTraceExporter(exporterOptions);
+ const sdk = new opentelemetry.NodeSDK({
+ traceExporter,
+ instrumentations: [getNodeAutoInstrumentations()],
+ // highlight-start
+ resource: new Resource({
+ [SemanticResourceAttributes.SERVICE_NAME]: 'node_app'
+ })
+ // highlight-end
+ });
+
+ // initialize the SDK and register with the OpenTelemetry API
+ // this enables the API to record telemetry
+ sdk.start()
+
+ // gracefully shut down the SDK on process exit
+ process.on('SIGTERM', () => {
+ sdk.shutdown()
+ .then(() => console.log('Tracing terminated'))
+ .catch((error) => console.log('Error terminating tracing', error))
+ .finally(() => process.exit(0));
+ });
+ ```
+
+ OpenTelemetry Node SDK currently does not detect the `OTEL_RESOURCE_ATTRIBUTES` from `.env` files as of today. That’s why we need to include the variables in the `tracing.js` file itself.
+
+ About environment variables:
+
+ `service_name` : node_app (you can give whatever name that suits you)
+
+ `http://localhost:4318/v1/traces` is the default url for sending your tracing data. We are assuming you have installed SigNoz on your `localhost`. Based on your environment, you can update it accordingly. It should be in the following format:
+
+ `http://:4318/v1/traces`
+
+ Here’s a handy [grid](https://signoz.io/docs/instrumentation/troubleshoot-instrumentation/) to figure out which address to use to send data to SigNoz.
+
+:::note
+ Remember to allow incoming requests to port 4318 of machine where SigNoz backend is hosted.
+
+
+
+3. **Run the application**
+The tracing configuration should be run before your application code. We will use the [`-r, —require module`](https://nodejs.org/api/cli.html#cli_r_require_module) flag for that.
+
+```jsx
+ node -r ./tracing.js app.js
+ ```
+
+:::note
+If you're running your nodejs application in PM2 cluster mode, it doesn't support node args: [Unitech/pm2#3227](https://github.com/Unitech/pm2/issues/3227). As above sample app instrumentation requires to load `tracing.js` before app load by passing node arg, so nodejs instrumentation doesn't work in PM2 cluster mode. So you need to import `tracing.js` in your main application. The `import ./tracing.js` should be the first line of your application code and initialize it before any other function. Here's the [sample github repo](https://github.com/SigNoz/sample-nodejs-app/tree/init-tracer-main) which shows the implementation.
+:::
+
+### Validating instrumentation by checking for traces
+
+With your application running, you can verify that you’ve instrumented your application with OpenTelemetry correctly by confirming that tracing data is being reported to SigNoz.
+
+To do this, you need to ensure that your application generates some data. Applications will not produce traces unless they are being interacted with, and OpenTelemetry will often buffer data before sending. So you need to interact with your application and wait for some time to see your tracing data in SigNoz.
+
+Validate your traces in SigNoz:
+
+1. Trigger an action in your app that generates a web request. Hit the endpoint a number of times to generate some data. Then, wait for some time.
+2. In SigNoz, open the `Services` tab. Hit the `Refresh` button on the top right corner, and your application should appear in the list of `Applications`.
+3. Go to the `Traces` tab, and apply relevant filters to see your application’s traces.
+
+You might see other dummy applications if you’re using SigNoz for the first time. You can remove it by following the docs [here](https://signoz.io/docs/operate/docker-standalone/#remove-the-sample-application).
+
+
+
+ Express Application in the list of services being monitored in SigNoz
+
+
+
+
+If you don't see your application reported in the list of services, try our [troubleshooting](https://signoz.io/docs/install/troubleshooting/) guide.
+
+
+### Using a specific auto-instrumentation library
+
+If you want to instrument only your Express framework, then you need to use the following package:
+
+```jsx
+npm install --save @opentelemetry/instrumentation-express
+````
+
+Note that in the above case, you will have to install packages for all the components that you want to instrument with OpenTelemetry individually. You can find detailed instructions [here](https://signoz.io/docs/instrumentation/javascript/#using-a-specific-auto-instrumentation-library).
diff --git a/frontend/src/container/OnboardingContainer/APM/Javascript/md-docs/javascript.md b/frontend/src/container/OnboardingContainer/APM/Javascript/md-docs/javascript.md
new file mode 100644
index 0000000000..c6c155c535
--- /dev/null
+++ b/frontend/src/container/OnboardingContainer/APM/Javascript/md-docs/javascript.md
@@ -0,0 +1,231 @@
+## Send traces to SigNoz Cloud
+
+Based on your application environment, you can choose the setup below to send traces to SigNoz Cloud.
+
+From VMs, there are two ways to send data to SigNoz Cloud.
+
+- [Send traces directly to SigNoz Cloud](#send-traces-directly-to-signoz-cloud)
+- [Send traces via OTel Collector binary](#send-traces-via-otel-collector-binary) (recommended)
+
+#### **Send traces directly to SigNoz Cloud**
+
+Step 1. Install OpenTelemetry packages
+
+```js
+npm install --save @opentelemetry/api@^1.4.1
+npm install --save @opentelemetry/sdk-node@^0.39.1
+npm install --save @opentelemetry/auto-instrumentations-node@^0.37.0
+npm install --save @opentelemetry/exporter-trace-otlp-grpc@^0.39.1
+```
+
+Step 2. Create tracing.js file
+You need to configure the endpoint for SigNoz cloud in this file. You can find your ingestion key from SigNoz cloud account details sent on your email.
+
+```js
+// tracing.js
+'use strict';
+const process = require('process');
+const opentelemetry = require('@opentelemetry/sdk-node');
+const {
+ getNodeAutoInstrumentations,
+} = require('@opentelemetry/auto-instrumentations-node');
+const {
+ OTLPTraceExporter,
+} = require('@opentelemetry/exporter-trace-otlp-grpc');
+const { Resource } = require('@opentelemetry/resources');
+const {
+ SemanticResourceAttributes,
+} = require('@opentelemetry/semantic-conventions');
+
+// do not set headers in exporterOptions, the OTel spec recommends setting headers through ENV variables
+// https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#specifying-headers-via-environment-variables
+
+// highlight-start
+const exporterOptions = {
+ url: 'https://ingest.{region}.signoz.cloud:443',
+};
+// highlight-end
+
+const traceExporter = new OTLPTraceExporter(exporterOptions);
+const sdk = new opentelemetry.NodeSDK({
+ traceExporter,
+ instrumentations: [getNodeAutoInstrumentations()],
+ resource: new Resource({
+ // highlight-next-line
+ [SemanticResourceAttributes.SERVICE_NAME]: 'node_app',
+ }),
+});
+
+// initialize the SDK and register with the OpenTelemetry API
+// this enables the API to record telemetry
+sdk.start();
+
+// gracefully shut down the SDK on process exit
+process.on('SIGTERM', () => {
+ sdk
+ .shutdown()
+ .then(() => console.log('Tracing terminated'))
+ .catch((error) => console.log('Error terminating tracing', error))
+ .finally(() => process.exit(0));
+});
+```
+
+Depending on the choice of your region for SigNoz cloud, the ingest endpoint will vary according to this table.
+
+| Region | Endpoint |
+| ------ | -------------------------- |
+| US | ingest.us.signoz.cloud:443 |
+| IN | ingest.in.signoz.cloud:443 |
+| EU | ingest.eu.signoz.cloud:443 |
+
+Step 3. Run the application
+Make sure you set the `OTEL_EXPORTER_OTLP_HEADERS` env as follows
+
+```bash
+OTEL_EXPORTER_OTLP_HEADERS="signoz-access-token=" node -r ./tracing.js app.js
+```
+
+`SIGNOZ_INGESTION_KEY` is the API token provided by SigNoz. You can find your ingestion key from SigNoz cloud account details sent on your email.
+
+Step 4. You can validate if your application is sending traces to SigNoz cloud [here](#validating-instrumentation-by-checking-for-traces).
+
+#### **Send traces via OTel Collector binary**
+
+OTel Collector binary helps to collect logs, hostmetrics, resource and infra attributes. It is recommended to install Otel Collector binary to collect and send traces to SigNoz cloud. You can correlate signals and have rich contextual data through this way.
+
+:::note
+You can find instructions to install OTel Collector binary [here](https://signoz.io/docs/tutorial/opentelemetry-binary-usage-in-virtual-machine/) in your VM. Once you are done setting up your OTel Collector binary, you can follow the below steps for instrumenting your Javascript application.
+:::
+
+Step 1. Install OpenTelemetry packages
+
+```js
+npm install --save @opentelemetry/api@^1.4.1
+npm install --save @opentelemetry/sdk-node@^0.39.1
+npm install --save @opentelemetry/auto-instrumentations-node@^0.37.0
+npm install --save @opentelemetry/exporter-trace-otlp-grpc@^0.39.1
+```
+
+Step 2. Create tracing.js file
+
+```js
+// tracing.js
+'use strict';
+const process = require('process');
+const opentelemetry = require('@opentelemetry/sdk-node');
+const {
+ getNodeAutoInstrumentations,
+} = require('@opentelemetry/auto-instrumentations-node');
+const {
+ OTLPTraceExporter,
+} = require('@opentelemetry/exporter-trace-otlp-grpc');
+const { Resource } = require('@opentelemetry/resources');
+const {
+ SemanticResourceAttributes,
+} = require('@opentelemetry/semantic-conventions');
+
+const exporterOptions = {
+ url: process.env.OTEL_EXPORTER_OTLP_ENDPOINT || 'http://localhost:4317',
+};
+
+const traceExporter = new OTLPTraceExporter(exporterOptions);
+const sdk = new opentelemetry.NodeSDK({
+ traceExporter,
+ instrumentations: [getNodeAutoInstrumentations()],
+ resource: new Resource({
+ // highlight-next-line
+ [SemanticResourceAttributes.SERVICE_NAME]: 'node_app',
+ }),
+});
+
+// initialize the SDK and register with the OpenTelemetry API
+// this enables the API to record telemetry
+sdk.start();
+
+// gracefully shut down the SDK on process exit
+process.on('SIGTERM', () => {
+ sdk
+ .shutdown()
+ .then(() => console.log('Tracing terminated'))
+ .catch((error) => console.log('Error terminating tracing', error))
+ .finally(() => process.exit(0));
+});
+```
+
+Step 3. Run the application
+
+```bash
+node -r ./tracing.js app.js
+```
+
+Step 4. You can validate if your application is sending traces to SigNoz cloud [here](#validating-instrumentation-by-checking-for-traces).
+
+
+
+
+For Javascript application deployed on Kubernetes, you need to install OTel Collector agent in your k8s infra to collect and send traces to SigNoz Cloud. You can find the instructions to install OTel Collector agent [here](/docs/tutorial/kubernetes-infra-metrics/).
+
+Once you have set up OTel Collector agent, you can proceed with OpenTelemetry Javascript instrumentation by following the below steps:
+
+Step 1. Install OpenTelemetry packages
+
+```js
+npm install --save @opentelemetry/api@^1.4.1
+npm install --save @opentelemetry/sdk-node@^0.39.1
+npm install --save @opentelemetry/auto-instrumentations-node@^0.37.0
+npm install --save @opentelemetry/exporter-trace-otlp-grpc@^0.39.1
+```
+
+Step 2. Create tracing.js file
+
+```js
+// tracing.js
+'use strict';
+const process = require('process');
+const opentelemetry = require('@opentelemetry/sdk-node');
+const {
+ getNodeAutoInstrumentations,
+} = require('@opentelemetry/auto-instrumentations-node');
+const {
+ OTLPTraceExporter,
+} = require('@opentelemetry/exporter-trace-otlp-grpc');
+const { Resource } = require('@opentelemetry/resources');
+const {
+ SemanticResourceAttributes,
+} = require('@opentelemetry/semantic-conventions');
+
+const exporterOptions = {
+ url: process.env.OTEL_EXPORTER_OTLP_ENDPOINT || 'http://localhost:4317',
+};
+
+const traceExporter = new OTLPTraceExporter(exporterOptions);
+const sdk = new opentelemetry.NodeSDK({
+ traceExporter,
+ instrumentations: [getNodeAutoInstrumentations()],
+ resource: new Resource({
+ // highlight-next-line
+ [SemanticResourceAttributes.SERVICE_NAME]: 'node_app',
+ }),
+});
+
+// initialize the SDK and register with the OpenTelemetry API
+// this enables the API to record telemetry
+sdk.start();
+
+// gracefully shut down the SDK on process exit
+process.on('SIGTERM', () => {
+ sdk
+ .shutdown()
+ .then(() => console.log('Tracing terminated'))
+ .catch((error) => console.log('Error terminating tracing', error))
+ .finally(() => process.exit(0));
+});
+```
+
+Step 3. Run the application
+
+```bash
+node -r ./tracing.js app.js
+```
+
+Step 4. You can validate if your application is sending traces to SigNoz cloud [here](#validating-instrumentation-by-checking-for-traces).
diff --git a/frontend/src/container/OnboardingContainer/APM/Javascript/md-docs/nestjs.md b/frontend/src/container/OnboardingContainer/APM/Javascript/md-docs/nestjs.md
new file mode 100644
index 0000000000..62fadbd826
--- /dev/null
+++ b/frontend/src/container/OnboardingContainer/APM/Javascript/md-docs/nestjs.md
@@ -0,0 +1,129 @@
+## Send Traces Directly to SigNoz
+
+### Using the all-in-one auto-instrumentation library
+
+The recommended way to instrument your Nestjs application is to use the all-in-one auto-instrumentation library - `@opentelemetry/auto-instrumentations-node`. It provides a simple way to initialize multiple Nodejs instrumentations.
+
+Internally, it calls the specific auto-instrumentation library for components used in the application. You can see the complete list [here](https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/metapackages/auto-instrumentations-node#supported-instrumentations).
+
+#### Steps to auto-instrument Nestjs application
+
+1. Install the dependencies
+ We start by installing the relevant dependencies.
+
+ ```bash
+ npm install --save @opentelemetry/sdk-node
+ npm install --save @opentelemetry/auto-instrumentations-node
+ npm install --save @opentelemetry/exporter-trace-otlp-http
+ ```
+
+
+
+2. Create a `tracer.ts` file
+
+ ```jsx
+ 'use strict';
+ const process = require('process');
+ //OpenTelemetry
+ const opentelemetry = require('@opentelemetry/sdk-node');
+ const {
+ getNodeAutoInstrumentations,
+ } = require('@opentelemetry/auto-instrumentations-node');
+ const {
+ OTLPTraceExporter,
+ } = require('@opentelemetry/exporter-trace-otlp-http');
+ const { Resource } = require('@opentelemetry/resources');
+ const {
+ SemanticResourceAttributes,
+ } = require('@opentelemetry/semantic-conventions');
+
+ const exporterOptions = {
+ url: 'http://localhost:4318/v1/traces',
+ };
+
+ const traceExporter = new OTLPTraceExporter(exporterOptions);
+ const sdk = new opentelemetry.NodeSDK({
+ traceExporter,
+ instrumentations: [getNodeAutoInstrumentations()],
+ resource: new Resource({
+ [SemanticResourceAttributes.SERVICE_NAME]: 'sampleNestjsApplication',
+ }),
+ });
+
+ // initialize the SDK and register with the OpenTelemetry API
+ // this enables the API to record telemetry
+ sdk.start();
+
+ // gracefully shut down the SDK on process exit
+ process.on('SIGTERM', () => {
+ sdk
+ .shutdown()
+ .then(() => console.log('Tracing terminated'))
+ .catch((error) => console.log('Error terminating tracing', error))
+ .finally(() => process.exit(0));
+ });
+
+ module.exports = sdk;
+ ```
+
+3. Import the tracer module where your app starts
+
+ ```jsx
+ const tracer = require('./tracer');
+ ```
+
+4. Start the tracer
+ In the `async function boostrap` section of the application code, initialize the tracer as follows:
+
+ ```jsx
+ const tracer = require('./tracer');
+
+ import { NestFactory } from '@nestjs/core';
+ import { AppModule } from './app.module';
+ // All of your application code and any imports that should leverage
+ // OpenTelemetry automatic instrumentation must go here.
+
+ async function bootstrap() {
+ // highlight-start
+ await tracer.start();
+ //highlight-end
+ const app = await NestFactory.create(AppModule);
+ await app.listen(3001);
+ }
+ bootstrap();
+ ```
+
+ You can now run your Nestjs application. The data captured with OpenTelemetry from your application should start showing on the SigNoz dashboard.
+
+### Validating instrumentation by checking for traces
+
+With your application running, you can verify that you’ve instrumented your application with OpenTelemetry correctly by confirming that tracing data is being reported to SigNoz.
+
+To do this, you need to ensure that your application generates some data. Applications will not produce traces unless they are being interacted with, and OpenTelemetry will often buffer data before sending. So you need to interact with your application and wait for some time to see your tracing data in SigNoz.
+
+Validate your traces in SigNoz:
+
+1. Trigger an action in your app that generates a web request. Hit the endpoint a number of times to generate some data. Then, wait for some time.
+2. In SigNoz, open the `Services` tab. Hit the `Refresh` button on the top right corner, and your application should appear in the list of `Applications`.
+3. Go to the `Traces` tab, and apply relevant filters to see your application’s traces.
+
+You might see other dummy applications if you’re using SigNoz for the first time. You can remove it by following the docs [here](https://signoz.io/docs/operate/docker-standalone/#remove-the-sample-application).
+
+
+
+ Nestjs Application in the list of services being monitored in SigNoz
+
+
+
+
+If you don't see your application reported in the list of services, try our [troubleshooting](https://signoz.io/docs/install/troubleshooting/) guide.
+
+### Using a specific auto-instrumentation library
+
+If you want to instrument only your Nestjs framework, then you need to use the following package:
+
+```jsx
+npm install --save @opentelemetry/instrumentation-nestjs-core
+```
+
+Note that in the above case, you will have to install packages for all the components that you want to instrument with OpenTelemetry individually. You can find detailed instructions [here](https://signoz.io/docs/instrumentation/javascript/#using-a-specific-auto-instrumentation-library).
diff --git a/frontend/src/container/OnboardingContainer/APM/Python/Python.styles.scss b/frontend/src/container/OnboardingContainer/APM/Python/Python.styles.scss
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/frontend/src/container/OnboardingContainer/APM/Python/Python.tsx b/frontend/src/container/OnboardingContainer/APM/Python/Python.tsx
new file mode 100644
index 0000000000..51331fbd70
--- /dev/null
+++ b/frontend/src/container/OnboardingContainer/APM/Python/Python.tsx
@@ -0,0 +1,123 @@
+import './Python.styles.scss';
+
+import { MDXProvider } from '@mdx-js/react';
+import { Form, Input, Select } from 'antd';
+import Header from 'container/OnboardingContainer/common/Header/Header';
+import { useState } from 'react';
+
+import ConnectionStatus from '../common/ConnectionStatus/ConnectionStatus';
+import DjangoDocs from './md-docs/django.md';
+import FalconDocs from './md-docs/falcon.md';
+import FastAPIDocs from './md-docs/fastAPI.md';
+import FlaskDocs from './md-docs/flask.md';
+import PythonDocs from './md-docs/python.md';
+
+const frameworksMap = {
+ django: 'Django',
+ fastAPI: 'Fast API',
+ flask: 'Flask',
+ falcon: 'Falcon',
+ other: 'Others',
+};
+
+export default function Python({
+ activeStep,
+}: {
+ activeStep: number;
+}): JSX.Element {
+ const [selectedFrameWork, setSelectedFrameWork] = useState('django');
+
+ const [form] = Form.useForm();
+
+ const renderDocs = (): JSX.Element => {
+ switch (selectedFrameWork) {
+ case 'django':
+ return ;
+ case 'fastAPI':
+ return ;
+ case 'flask':
+ return ;
+ case 'falcon':
+ return ;
+ default:
+ return ;
+ }
+ };
+
+ return (
+ <>
+ {activeStep === 2 && (
+
+
+
+
+
+
Select Framework
+
+
+
+
+
Service Name
+
+
+
+
+
+
+
+
+
+ {renderDocs()}
+
+
+ )}
+ {activeStep === 3 && (
+
+ )}
+ >
+ );
+}
diff --git a/frontend/src/container/OnboardingContainer/APM/Python/md-docs/django.md b/frontend/src/container/OnboardingContainer/APM/Python/md-docs/django.md
new file mode 100644
index 0000000000..8416863840
--- /dev/null
+++ b/frontend/src/container/OnboardingContainer/APM/Python/md-docs/django.md
@@ -0,0 +1,92 @@
+## Send Traces Directly to SigNoz
+
+You can use OpenTelemetry to send your traces directly to SigNoz. OpenTelemetry provides a handy distro in Python that can help you get started with automatic instrumentation. We recommend using it to get started quickly.
+
+### Steps to auto-instrument Django app for traces
+
+1. **Create a virtual environment**
+
+ ```bash
+ python3 -m venv .venv
+ source .venv/bin/activate
+ ```
+
+2. **Install the OpenTelemetry dependencies**
+
+ ```bash
+ pip install opentelemetry-distro
+ pip install opentelemetry-exporter-otlp
+ ```
+
+ The dependencies included are briefly explained below:
+
+ `opentelemetry-distro` - The distro provides a mechanism to automatically configure some of the more common options for users. It helps to get started with OpenTelemetry auto-instrumentation quickly.
+
+ `opentelemetry-exporter-otlp` - This library provides a way to install all OTLP exporters. You will need an exporter to send the data to SigNoz.
+
+ :::note
+ 💡 The `opentelemetry-exporter-otlp` is a convenient wrapper package to install all OTLP exporters. Currently, it installs:
+
+ - opentelemetry-exporter-otlp-proto-http
+ - opentelemetry-exporter-otlp-proto-grpc
+
+ - (soon) opentelemetry-exporter-otlp-json-http
+
+ The `opentelemetry-exporter-otlp-proto-grpc` package installs the gRPC exporter which depends on the `grpcio` package. The installation of `grpcio` may fail on some platforms for various reasons. If you run into such issues, or you don't want to use gRPC, you can install the HTTP exporter instead by installing the `opentelemetry-exporter-otlp-proto-http` package. You need to set the `OTEL_EXPORTER_OTLP_PROTOCOL` environment variable to `http/protobuf` to use the HTTP exporter.
+ :::
+
+3. **Add automatic instrumentation**
+ The below command inspects the dependencies of your application and installs the instrumentation packages relevant for your Django application.
+
+ ```bash
+ opentelemetry-bootstrap --action=install
+ ```
+
+ :::note
+ Please make sure that you have installed all the dependencies of your application before running the above command. The command will not install instrumentation for the dependencies which are not installed.
+ :::
+
+4. **Run your application**
+ In the final run command, you can configure environment variables and flags. Flags for exporters:
+
+ For running your application, there are a few things that you need to keep in mind. Below are the notes:
+ :::note
+ Don’t run app in reloader/hot-reload mode as it breaks instrumentation. For example, you can disable the auto reload with `--noreload`.
+ :::
+
+ For running applications with application servers which are based on [pre fork model](#running-applications-with-gunicorn-uwsgi), like Gunicorn, uWSGI you have to add a post_fork hook or a @postfork decorator in your configuration.
+
+ To start sending data to SigNoz, use the following run command:
+
+ ```bash
+ OTEL_RESOURCE_ATTRIBUTES=service.name= OTEL_EXPORTER_OTLP_ENDPOINT="http://:4317" OTEL_EXPORTER_OTLP_PROTOCOL=grpc opentelemetry-instrument
+ ```
+
+ ** is the name of service you want
+
+ ** can be `python3 app.py` or `python manage.py runserver --noreload`
+
+ `IP of SigNoz backend` is the IP of the machine where you installed SigNoz. If you have installed SigNoz on `localhost`, the endpoint will be `http://localhost:4317` for gRPC exporter and `http://localhost:4318` for HTTP exporter.
+
+ :::note
+ The port numbers are 4317 and 4318 for the gRPC and HTTP exporters respectively. Remember to allow incoming requests to port **4317**/**4318** of machine where SigNoz backend is hosted.
+ :::
+
+### Validating instrumentation by checking for traces
+
+With your application running, you can verify that you’ve instrumented your application with OpenTelemetry correctly by confirming that tracing data is being reported to SigNoz.
+
+To do this, you need to ensure that your application generates some data. Applications will not produce traces unless they are being interacted with, and OpenTelemetry will often buffer data before sending. So you need to interact with your application and wait for some time to see your tracing data in SigNoz.
+
+Validate your traces in SigNoz:
+
+1. Trigger an action in your app that generates a web request. Hit the endpoint a number of times to generate some data. Then, wait for some time.
+2. In SigNoz, open the `Services` tab. Hit the `Refresh` button on the top right corner, and your application should appear in the list of `Applications`.
+3. Go to the `Traces` tab, and apply relevant filters to see your application’s traces.
+
+You might see other dummy applications if you’re using SigNoz for the first time. You can remove it by following the docs [here](https://signoz.io/docs/operate/docker-standalone/#remove-the-sample-application).
+
+
+
+ Python Application in the list of services being monitored in SigNoz
+
diff --git a/frontend/src/container/OnboardingContainer/APM/Python/md-docs/falcon.md b/frontend/src/container/OnboardingContainer/APM/Python/md-docs/falcon.md
new file mode 100644
index 0000000000..6e2b5b25b1
--- /dev/null
+++ b/frontend/src/container/OnboardingContainer/APM/Python/md-docs/falcon.md
@@ -0,0 +1,92 @@
+## Send Traces Directly to SigNoz
+
+You can use OpenTelemetry to send your traces directly to SigNoz. OpenTelemetry provides a handy distro in Python that can help you get started with automatic instrumentation. We recommend using it to get started quickly.
+
+### Steps to auto-instrument Falcon app for traces
+
+1. **Create a virtual environment**
+
+ ```bash
+ python3 -m venv .venv
+ source .venv/bin/activate
+ ```
+
+2. **Install the OpenTelemetry dependencies**
+
+ ```bash
+ pip install opentelemetry-distro
+ pip install opentelemetry-exporter-otlp
+ ```
+
+ The dependencies included are briefly explained below:
+
+ `opentelemetry-distro` - The distro provides a mechanism to automatically configure some of the more common options for users. It helps to get started with OpenTelemetry auto-instrumentation quickly.
+
+ `opentelemetry-exporter-otlp` - This library provides a way to install all OTLP exporters. You will need an exporter to send the data to SigNoz.
+
+ :::note
+ 💡 The `opentelemetry-exporter-otlp` is a convenience wrapper package to install all OTLP exporters. Currently, it installs:
+
+ - opentelemetry-exporter-otlp-proto-http
+ - opentelemetry-exporter-otlp-proto-grpc
+
+ - (soon) opentelemetry-exporter-otlp-json-http
+
+ The `opentelemetry-exporter-otlp-proto-grpc` package installs the gRPC exporter which depends on the `grpcio` package. The installation of `grpcio` may fail on some platforms for various reasons. If you run into such issues, or you don't want to use gRPC, you can install the HTTP exporter instead by installing the `opentelemetry-exporter-otlp-proto-http` package. You need to set the `OTEL_EXPORTER_OTLP_PROTOCOL` environment variable to `http/protobuf` to use the HTTP exporter.
+ :::
+
+3. **Add automatic instrumentation**
+ The below command inspects the dependencies of your application and installs the instrumentation packages relevant for your Falcon application.
+
+ ```bash
+ opentelemetry-bootstrap --action=install
+ ```
+
+ :::note
+ Please make sure that you have installed all the dependencies of your application before running the above command. The command will not install instrumentation for the dependencies which are not installed.
+ :::
+
+4. **Run your application**
+ In the final run command, you can configure environment variables and flags. Flags for exporters:
+
+ For running your application, there are a few things that you need to keep in mind. Below are the notes:
+ :::note
+ Don’t run app in reloader/hot-reload mode as it breaks instrumentation.
+ :::
+
+ For running applications with application servers which are based on [pre fork model](#running-applications-with-gunicorn-uwsgi), like Gunicorn, uWSGI you have to add a post_fork hook or a @postfork decorator in your configuration.
+
+ To start sending data to SigNoz, use the following run command:
+
+ ```bash
+ OTEL_RESOURCE_ATTRIBUTES=service.name= OTEL_EXPORTER_OTLP_ENDPOINT="http://:4317" OTEL_EXPORTER_OTLP_PROTOCOL=grpc opentelemetry-instrument
+ ```
+
+ ** is the name of service you want
+
+ ** can be `python3 app.py` or `flask run`
+
+ `IP of SigNoz backend` is the IP of the machine where you installed SigNoz. If you have installed SigNoz on `localhost`, the endpoint will be `http://localhost:4317` for gRPC exporter and `http://localhost:4318` for HTTP exporter.
+
+ :::note
+ The port numbers are 4317 and 4318 for the gRPC and HTTP exporters respectively. Remember to allow incoming requests to port **4317**/**4318** of machine where SigNoz backend is hosted.
+ :::
+
+### Validating instrumentation by checking for traces
+
+With your application running, you can verify that you’ve instrumented your application with OpenTelemetry correctly by confirming that tracing data is being reported to SigNoz.
+
+To do this, you need to ensure that your application generates some data. Applications will not produce traces unless they are being interacted with, and OpenTelemetry will often buffer data before sending. So you need to interact with your application and wait for some time to see your tracing data in SigNoz.
+
+Validate your traces in SigNoz:
+
+1. Trigger an action in your app that generates a web request. Hit the endpoint a number of times to generate some data. Then, wait for some time.
+2. In SigNoz, open the `Services` tab. Hit the `Refresh` button on the top right corner, and your application should appear in the list of `Applications`.
+3. Go to the `Traces` tab, and apply relevant filters to see your application’s traces.
+
+You might see other dummy applications if you’re using SigNoz for the first time. You can remove it by following the docs [here](https://signoz.io/docs/operate/docker-standalone/#remove-the-sample-application).
+
+
+
+ Python Application in the list of services being monitored in SigNoz
+
diff --git a/frontend/src/container/OnboardingContainer/APM/Python/md-docs/fastAPI.md b/frontend/src/container/OnboardingContainer/APM/Python/md-docs/fastAPI.md
new file mode 100644
index 0000000000..f1b8d4ab4e
--- /dev/null
+++ b/frontend/src/container/OnboardingContainer/APM/Python/md-docs/fastAPI.md
@@ -0,0 +1,92 @@
+## Send Traces Directly to SigNoz
+
+You can use OpenTelemetry to send your traces directly to SigNoz. OpenTelemetry provides a handy distro in Python that can help you get started with automatic instrumentation. We recommend using it to get started quickly.
+
+### Steps to auto-instrument FastAPI app for traces
+
+1. **Create a virtual environment**
+
+ ```bash
+ python3 -m venv .venv
+ source .venv/bin/activate
+ ```
+
+2. **Install the OpenTelemetry dependencies**
+
+ ```bash
+ pip install opentelemetry-distro
+ pip install opentelemetry-exporter-otlp
+ ```
+
+ The dependencies included are briefly explained below:
+
+ `opentelemetry-distro` - The distro provides a mechanism to automatically configure some of the more common options for users. It helps to get started with OpenTelemetry auto-instrumentation quickly.
+
+ `opentelemetry-exporter-otlp` - This library provides a way to install all OTLP exporters. You will need an exporter to send the data to SigNoz.
+
+ :::note
+ 💡 The `opentelemetry-exporter-otlp` is a convenience wrapper package to install all OTLP exporters. Currently, it installs:
+
+ - opentelemetry-exporter-otlp-proto-http
+ - opentelemetry-exporter-otlp-proto-grpc
+
+ - (soon) opentelemetry-exporter-otlp-json-http
+
+ The `opentelemetry-exporter-otlp-proto-grpc` package installs the gRPC exporter which depends on the `grpcio` package. The installation of `grpcio` may fail on some platforms for various reasons. If you run into such issues, or you don't want to use gRPC, you can install the HTTP exporter instead by installing the `opentelemetry-exporter-otlp-proto-http` package. You need to set the `OTEL_EXPORTER_OTLP_PROTOCOL` environment variable to `http/protobuf` to use the HTTP exporter.
+ :::
+
+3. **Add automatic instrumentation**
+ The below command inspects the dependencies of your application and installs the instrumentation packages relevant for your FastAPI application.
+
+ ```bash
+ opentelemetry-bootstrap --action=install
+ ```
+
+ :::note
+ Please make sure that you have installed all the dependencies of your application before running the above command. The command will not install instrumentation for the dependencies which are not installed.
+ :::
+
+4. **Run your application**
+ In the final run command, you can configure environment variables and flags. Flags for exporters:
+
+ For running your application, there are a few things that you need to keep in mind. Below are the notes:
+ :::note
+ Don’t run app in reloader/hot-reload mode as it breaks instrumentation. For example, if you use `--reload` or `reload=True`, it enables the reloader mode which breaks OpenTelemetry isntrumentation.
+ :::
+
+ For running applications with application servers which are based on [pre fork model](#running-applications-with-gunicorn-uwsgi), like Gunicorn, uWSGI you have to add a post_fork hook or a @postfork decorator in your configuration.
+
+ To start sending data to SigNoz, use the following run command:
+
+ ```bash
+ OTEL_RESOURCE_ATTRIBUTES=service.name= OTEL_EXPORTER_OTLP_ENDPOINT="http://:4317" OTEL_EXPORTER_OTLP_PROTOCOL=grpc opentelemetry-instrument
+ ```
+
+ ** is the name of service you want
+
+ ** can be `python3 app.py` or `python manage.py runserver --noreload`
+
+ `IP of SigNoz backend` is the IP of the machine where you installed SigNoz. If you have installed SigNoz on `localhost`, the endpoint will be `http://localhost:4317` for gRPC exporter and `http://localhost:4318` for HTTP exporter.
+
+ :::note
+ The port numbers are 4317 and 4318 for the gRPC and HTTP exporters respectively. Remember to allow incoming requests to port **4317**/**4318** of machine where SigNoz backend is hosted.
+ :::
+
+### Validating instrumentation by checking for traces
+
+With your application running, you can verify that you’ve instrumented your application with OpenTelemetry correctly by confirming that tracing data is being reported to SigNoz.
+
+To do this, you need to ensure that your application generates some data. Applications will not produce traces unless they are being interacted with, and OpenTelemetry will often buffer data before sending. So you need to interact with your application and wait for some time to see your tracing data in SigNoz.
+
+Validate your traces in SigNoz:
+
+1. Trigger an action in your app that generates a web request. Hit the endpoint a number of times to generate some data. Then, wait for some time.
+2. In SigNoz, open the `Services` tab. Hit the `Refresh` button on the top right corner, and your application should appear in the list of `Applications`.
+3. Go to the `Traces` tab, and apply relevant filters to see your application’s traces.
+
+You might see other dummy applications if you’re using SigNoz for the first time. You can remove it by following the docs [here](https://signoz.io/docs/operate/docker-standalone/#remove-the-sample-application).
+
+
+
+ Python Application in the list of services being monitored in SigNoz
+
diff --git a/frontend/src/container/OnboardingContainer/APM/Python/md-docs/flask.md b/frontend/src/container/OnboardingContainer/APM/Python/md-docs/flask.md
new file mode 100644
index 0000000000..f1843276ac
--- /dev/null
+++ b/frontend/src/container/OnboardingContainer/APM/Python/md-docs/flask.md
@@ -0,0 +1,92 @@
+## Send Traces Directly to SigNoz
+
+You can use OpenTelemetry to send your traces directly to SigNoz. OpenTelemetry provides a handy distro in Python that can help you get started with automatic instrumentation. We recommend using it to get started quickly.
+
+### Steps to auto-instrument Flask app for traces
+
+1. **Create a virtual environment**
+
+ ```bash
+ python3 -m venv .venv
+ source .venv/bin/activate
+ ```
+
+2. **Install the OpenTelemetry dependencies**
+
+ ```bash
+ pip install opentelemetry-distro
+ pip install opentelemetry-exporter-otlp
+ ```
+
+ The dependencies included are briefly explained below:
+
+ `opentelemetry-distro` - The distro provides a mechanism to automatically configure some of the more common options for users. It helps to get started with OpenTelemetry auto-instrumentation quickly.
+
+ `opentelemetry-exporter-otlp` - This library provides a way to install all OTLP exporters. You will need an exporter to send the data to SigNoz.
+
+ :::note
+ 💡 The `opentelemetry-exporter-otlp` is a convenience wrapper package to install all OTLP exporters. Currently, it installs:
+
+ - opentelemetry-exporter-otlp-proto-http
+ - opentelemetry-exporter-otlp-proto-grpc
+
+ - (soon) opentelemetry-exporter-otlp-json-http
+
+ The `opentelemetry-exporter-otlp-proto-grpc` package installs the gRPC exporter which depends on the `grpcio` package. The installation of `grpcio` may fail on some platforms for various reasons. If you run into such issues, or you don't want to use gRPC, you can install the HTTP exporter instead by installing the `opentelemetry-exporter-otlp-proto-http` package. You need to set the `OTEL_EXPORTER_OTLP_PROTOCOL` environment variable to `http/protobuf` to use the HTTP exporter.
+ :::
+
+3. **Add automatic instrumentation**
+ The below command inspects the dependencies of your application and installs the instrumentation packages relevant for your Flask application.
+
+ ```bash
+ opentelemetry-bootstrap --action=install
+ ```
+
+ :::note
+ Please make sure that you have installed all the dependencies of your application before running the above command. The command will not install instrumentation for the dependencies which are not installed.
+ :::
+
+4. **Run your application**
+ In the final run command, you can configure environment variables and flags. Flags for exporters:
+
+ For running your application, there are a few things that you need to keep in mind. Below are the notes:
+ :::note
+ Don’t run app in reloader/hot-reload mode as it breaks instrumentation. For example, if you use `export Flask_ENV=development`, it enables the reloader mode which breaks OpenTelemetry instrumentation.
+ :::
+
+ For running applications with application servers which are based on [pre fork model](#running-applications-with-gunicorn-uwsgi), like Gunicorn, uWSGI you have to add a post_fork hook or a @postfork decorator in your configuration.
+
+ To start sending data to SigNoz, use the following run command:
+
+ ```bash
+ OTEL_RESOURCE_ATTRIBUTES=service.name= OTEL_EXPORTER_OTLP_ENDPOINT="http://:4317" OTEL_EXPORTER_OTLP_PROTOCOL=grpc opentelemetry-instrument
+ ```
+
+ ** is the name of service you want
+
+ ** can be `python3 app.py` or `flask run`
+
+ `IP of SigNoz backend` is the IP of the machine where you installed SigNoz. If you have installed SigNoz on `localhost`, the endpoint will be `http://localhost:4317` for gRPC exporter and `http://localhost:4318` for HTTP exporter.
+
+ :::note
+ The port numbers are 4317 and 4318 for the gRPC and HTTP exporters respectively. Remember to allow incoming requests to port **4317**/**4318** of machine where SigNoz backend is hosted.
+ :::
+
+### Validating instrumentation by checking for traces
+
+With your application running, you can verify that you’ve instrumented your application with OpenTelemetry correctly by confirming that tracing data is being reported to SigNoz.
+
+To do this, you need to ensure that your application generates some data. Applications will not produce traces unless they are being interacted with, and OpenTelemetry will often buffer data before sending. So you need to interact with your application and wait for some time to see your tracing data in SigNoz.
+
+Validate your traces in SigNoz:
+
+1. Trigger an action in your app that generates a web request. Hit the endpoint a number of times to generate some data. Then, wait for some time.
+2. In SigNoz, open the `Services` tab. Hit the `Refresh` button on the top right corner, and your application should appear in the list of `Applications`.
+3. Go to the `Traces` tab, and apply relevant filters to see your application’s traces.
+
+You might see other dummy applications if you’re using SigNoz for the first time. You can remove it by following the docs [here](https://signoz.io/docs/operate/docker-standalone/#remove-the-sample-application).
+
+
+
+ Python Application in the list of services being monitored in SigNoz
+
diff --git a/frontend/src/container/OnboardingContainer/APM/Python/md-docs/python.md b/frontend/src/container/OnboardingContainer/APM/Python/md-docs/python.md
new file mode 100644
index 0000000000..3afe695cb4
--- /dev/null
+++ b/frontend/src/container/OnboardingContainer/APM/Python/md-docs/python.md
@@ -0,0 +1,118 @@
+## Send Traces to SigNoz Cloud
+
+Based on your application environment, you can choose the setup below to send traces to SigNoz Cloud.
+
+From VMs, there are two ways to send data to SigNoz Cloud.
+
+- [Send traces directly to SigNoz Cloud](#send-traces-directly-to-signoz-cloud)
+- [Send traces via OTel Collector binary](#send-traces-via-otel-collector-binary) (recommended)
+
+#### **Send traces directly to SigNoz Cloud**
+
+Step 1. Install the OpenTelemetry dependencies
+
+```bash
+pip install opentelemetry-distro==0.38b0
+pip install opentelemetry-exporter-otlp==1.17.0
+```
+
+Step 2. Add automatic instrumentation
+
+```bash
+opentelemetry-bootstrap --action=install
+```
+
+Step 3. Run your application
+
+```bash
+OTEL_RESOURCE_ATTRIBUTES=service.name= \
+OTEL_EXPORTER_OTLP_ENDPOINT="https://ingest.{region}.signoz.cloud:443" \
+OTEL_EXPORTER_OTLP_HEADERS="signoz-access-token=SIGNOZ_INGESTION_KEY" \
+opentelemetry-instrument
+```
+
+- *``* is the name of the service you want
+- *``* can be `python3 app.py` or `flask run`
+- Replace `SIGNOZ_INGESTION_KEY` with the api token provided by SigNoz. You can find it in the email sent by SigNoz with your cloud account details.
+
+Depending on the choice of your region for SigNoz cloud, the ingest endpoint will vary according to this table.
+
+| Region | Endpoint |
+| ------ | -------------------------- |
+| US | ingest.us.signoz.cloud:443 |
+| IN | ingest.in.signoz.cloud:443 |
+| EU | ingest.eu.signoz.cloud:443 |
+
+Step 4. Validate if your application is sending traces to SigNoz cloud by following the instructions [here](#validating-instrumentation-by-checking-for-traces).
+
+---
+
+#### **Send traces via OTel Collector binary**
+
+OTel Collector binary helps to collect logs, hostmetrics, resource and infra attributes. It is recommended to install Otel Collector binary to collect and send traces to SigNoz cloud. You can correlate signals and have rich contextual data through this way.
+
+You can find instructions to install OTel Collector binary [here](https://signoz.io/docs/tutorial/opentelemetry-binary-usage-in-virtual-machine/) in your VM. Once you are done setting up your OTel Collector binary, you can follow the below steps for instrumenting your Python application.
+
+Step 1. Install the OpenTelemetry dependencies
+
+```bash
+pip install opentelemetry-distro==0.38b0
+pip install opentelemetry-exporter-otlp==1.17.0
+```
+
+Step 2. Add automatic instrumentation
+
+```bash
+opentelemetry-bootstrap --action=install
+```
+
+Step 3. To run your application and send data to collector in same VM:
+
+```bash
+OTEL_RESOURCE_ATTRIBUTES=service.name= \
+OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4317" \
+opentelemetry-instrument
+```
+
+where,
+
+- *``* is the name of the service you want
+- *``* can be `python3 app.py` or `flask run`
+
+In case you have OtelCollector Agent in different VM, replace localhost:4317 with `:4317`.
+
+Step 4. You can validate if your application is sending traces to SigNoz cloud by following the instructions [here](#validating-instrumentation-by-checking-for-traces).
+
+For Python application deployed on Kubernetes, you need to install OTel Collector agent in your k8s infra to collect and send traces to SigNoz Cloud. You can find the instructions to install OTel Collector agent [here](https://signoz.io/docs/tutorial/kubernetes-infra-metrics/).
+
+Once you have set up OTel Collector agent, you can proceed with OpenTelemetry Python instrumentation by following the below steps:
+
+Step 1. Install the OpenTelemetry dependencies
+
+```bash
+pip install opentelemetry-distro==0.38b0
+pip install opentelemetry-exporter-otlp==1.17.0
+```
+
+Step 2. Add automatic instrumentation
+
+```bash
+opentelemetry-bootstrap --action=install
+```
+
+Step 3. Run your application:
+
+```bash
+OTEL_RESOURCE_ATTRIBUTES=service.name= \
+OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4317" \
+opentelemetry-instrument
+```
+
+where,
+
+- *``* is the name of the service you want
+- *``* can be `python3 app.py` or `flask run`
+
+Step 4. Make sure to dockerise your application along with OpenTelemetry instrumentation.
+
+You can validate if your application is sending traces to SigNoz cloud by following the instructions [here](#validating-instrumentation-by-checking-for-traces).
diff --git a/frontend/src/container/OnboardingContainer/APM/common/ConnectionStatus/ConnectionStatus.styles.scss b/frontend/src/container/OnboardingContainer/APM/common/ConnectionStatus/ConnectionStatus.styles.scss
new file mode 100644
index 0000000000..ae8d8f1edf
--- /dev/null
+++ b/frontend/src/container/OnboardingContainer/APM/common/ConnectionStatus/ConnectionStatus.styles.scss
@@ -0,0 +1,96 @@
+.connection-status-container {
+ height: calc(100vh - 420px);
+
+ .full-docs-link {
+ margin-bottom: 36px;
+
+ .header {
+ display: flex;
+ align-items: center;
+ gap: 16px;
+ margin: 16px 0;
+
+ img {
+ height: 40px;
+ }
+
+ h1 {
+ font-size: 18px;
+ display: flex;
+ align-items: center;
+ color: #e5e7eb;
+ gap: 16px;
+ margin: 0px;
+ }
+ }
+ }
+
+ .status-container {
+ display: flex;
+ justify-content: space-between;
+ gap: 24px;
+
+ .title {
+ text-transform: capitalize;
+ }
+ }
+
+ .service-info,
+ .language-info,
+ .status-info,
+ .details-info {
+ display: flex;
+ gap: 8px;
+ flex-direction: column;
+ }
+
+ .language-info {
+ .language {
+ text-transform: capitalize;
+ }
+ }
+
+ .service-info {
+ flex: 2;
+ }
+
+ .language-info {
+ flex: 2;
+ }
+
+ .status-info {
+ flex: 1;
+ }
+
+ .details-info {
+ flex: 3;
+ }
+
+ .status {
+ display: flex;
+ gap: 8px;
+
+ svg {
+ width: 16px;
+ height: 16px;
+ }
+ }
+}
+
+$lightModeFontColor: rgb(29, 29, 29);
+
+.lightMode {
+ .connection-status-container {
+ .header .title {
+ color: $lightModeFontColor;
+
+ h1 {
+ color: $lightModeFontColor;
+ }
+ }
+
+ .status-container {
+ color: $lightModeFontColor;
+ }
+ }
+}
diff --git a/frontend/src/container/OnboardingContainer/APM/common/ConnectionStatus/ConnectionStatus.tsx b/frontend/src/container/OnboardingContainer/APM/common/ConnectionStatus/ConnectionStatus.tsx
new file mode 100644
index 0000000000..d474428b39
--- /dev/null
+++ b/frontend/src/container/OnboardingContainer/APM/common/ConnectionStatus/ConnectionStatus.tsx
@@ -0,0 +1,185 @@
+import './ConnectionStatus.styles.scss';
+
+import {
+ CheckCircleTwoTone,
+ CloseCircleTwoTone,
+ LoadingOutlined,
+} from '@ant-design/icons';
+import Header from 'container/OnboardingContainer/common/Header/Header';
+import { useQueryService } from 'hooks/useQueryService';
+import useResourceAttribute from 'hooks/useResourceAttribute';
+import { convertRawQueriesToTraceSelectedTags } from 'hooks/useResourceAttribute/utils';
+import { useEffect, useMemo, useState } from 'react';
+import { useSelector } from 'react-redux';
+import { AppState } from 'store/reducers';
+import { PayloadProps as QueryServicePayloadProps } from 'types/api/metrics/getService';
+import { GlobalReducer } from 'types/reducer/globalTime';
+import { Tags } from 'types/reducer/trace';
+
+interface ConnectionStatusProps {
+ serviceName: string;
+ language: string;
+ framework: string;
+}
+
+export default function ConnectionStatus({
+ serviceName,
+ language,
+ framework,
+}: ConnectionStatusProps): JSX.Element {
+ const { maxTime, minTime, selectedTime } = useSelector<
+ AppState,
+ GlobalReducer
+ >((state) => state.globalTime);
+ const { queries } = useResourceAttribute();
+ const selectedTags = useMemo(
+ () => (convertRawQueriesToTraceSelectedTags(queries) as Tags[]) || [],
+ [queries],
+ );
+
+ const [pollingInterval, setPollingInterval] = useState(15000); // initial Polling interval of 15 secs , Set to false after 5 mins
+ const [retryCount, setRetryCount] = useState(20); // Retry for 5 mins
+ const [loading, setLoading] = useState(true);
+ const [isReceivingData, setIsReceivingData] = useState(false);
+
+ const { data, error, isFetching: isServiceLoading, isError } = useQueryService(
+ {
+ minTime,
+ maxTime,
+ selectedTime,
+ selectedTags,
+ options: {
+ refetchInterval: pollingInterval,
+ },
+ },
+ );
+
+ const renderDocsReference = (): JSX.Element => {
+ switch (language) {
+ case 'java':
+ return (
+
+ );
+
+ case 'python':
+ return (
+
+ );
+
+ case 'javascript':
+ return (
+
+ );
+ case 'go':
+ return (
+
+ );
+
+ default:
+ return <> >;
+ }
+ };
+
+ const verifyApplicationData = (response?: QueryServicePayloadProps): void => {
+ if (data || isError) {
+ setRetryCount(retryCount - 1);
+
+ if (retryCount < 0) {
+ setLoading(false);
+ setPollingInterval(false);
+ }
+ }
+
+ if (response && Array.isArray(response)) {
+ for (let i = 0; i < response.length; i += 1) {
+ if (response[i]?.serviceName === serviceName) {
+ setLoading(false);
+ setIsReceivingData(true);
+
+ break;
+ }
+ }
+ }
+ };
+
+ useEffect(() => {
+ verifyApplicationData(data);
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, [isServiceLoading, data, error, isError]);
+
+ return (
+
+ Before you can query other metrics, you must first enable additional
+ receivers in SigNoz. There are two ways in which you can send metrics to
+ SigNoz using OpenTelemetry:
+
+
+ 1. Enable a Specific Metric Receiver
+ 2. Enable a Prometheus Receiver
+
+ );
+}
diff --git a/frontend/src/container/OnboardingContainer/InfrastructureMonitoring/prometheus.md b/frontend/src/container/OnboardingContainer/InfrastructureMonitoring/prometheus.md
new file mode 100644
index 0000000000..1b59702120
--- /dev/null
+++ b/frontend/src/container/OnboardingContainer/InfrastructureMonitoring/prometheus.md
@@ -0,0 +1,67 @@
+## Enable a Prometheus Receiver
+
+SigNoz supports all the exporters that are listed on the [Exporters and Integrations](https://prometheus.io/docs/instrumenting/exporters/) page of the Prometheus documentation. If you have a running Prometheus instance, and you expose metrics in Prometheus, then you can scrape them in SigNoz by configuring Prometheus receivers in the `receivers.prometheus.config.scrape_configs` section of the `deploy/docker/clickhouse-setup/otel-collector-metrics-config.yaml` file.
+
+To enable a Prometheus receiver, follow the steps below:
+
+1. Open the `deploy/docker/clickhouse-setup/otel-collector-metrics-config.yaml` file in a plain-text editor.
+2. Enable a new Prometheus receiver. Depending on your use case, there are two ways in which you can enable a new Prometheus exporter:
+
+ - **By creating a new job**: The following example shows how you can enable a Prometheus receiver by creating a new job named `my-new-job`:
+
+ ```yaml {15-18}
+ receivers:
+ otlp:
+ protocols:
+ grpc:
+ http:
+
+ # Data sources: metrics
+ prometheus:
+ config:
+ scrape_configs:
+ - job_name: 'otel-collector'
+ scrape_interval: 30s
+ static_configs:
+ - targets: ['otel-collector:8889']
+ - job_name: 'my-new-job'
+ scrape_interval: 30s
+ static_configs:
+ - targets: ['localhost:8080']
+ processors:
+ batch:
+ send_batch_size: 1000
+ timeout: 10s
+ # This file was truncated for brevity.
+ ```
+
+ - **By adding a new target to an existing job**: The following example shows the default `otel-collector` job to which a new target (`localhost:8080`) was added:
+
+ ```yaml {14}
+ receivers:
+ otlp:
+ protocols:
+ grpc:
+ http:
+
+ # Data sources: metrics
+ prometheus:
+ config:
+ scrape_configs:
+ - job_name: 'otel-collector'
+ scrape_interval: 30s
+ static_configs:
+ - targets: ['otel-collector:8889', 'localhost:8080']
+ processors:
+ batch:
+ send_batch_size: 1000
+ timeout: 10s
+ # This file was truncated for brevity.
+ ```
+
+ Note that all the jobs are scraped in parallel, and all targets inside a job are scraped serially. For more details about configuring jobs and targets, see the following sections of the Prometheus documentation:
+
+ - [](https://prometheus.io/docs/prometheus/latest/configuration/configuration/#scrape_config)
+ - [Jobs and Instances](https://prometheus.io/docs/concepts/jobs_instances/)
+
+3.
diff --git a/frontend/src/container/OnboardingContainer/InfrastructureMonitoring/specific-metric-receiver.md b/frontend/src/container/OnboardingContainer/InfrastructureMonitoring/specific-metric-receiver.md
new file mode 100644
index 0000000000..ceae6ac67e
--- /dev/null
+++ b/frontend/src/container/OnboardingContainer/InfrastructureMonitoring/specific-metric-receiver.md
@@ -0,0 +1,72 @@
+## Enable a Specific Metric Receiver
+
+SigNoz supports all the receivers that are listed in the [opentelemetry-collector-contrib](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver) GitHub repository. To configure a new metric receiver, you must edit the `receivers` section of the `deploy/docker/clickhouse-setup/otel-collector-config.yaml` file. The following example shows the default configuration in which the `hostmetrics` receiver is enabled:
+
+```yaml {14-22}
+receivers:
+ otlp/spanmetrics:
+ protocols:
+ grpc:
+ endpoint: 'localhost:12345'
+ otlp:
+ protocols:
+ grpc:
+ http:
+ jaeger:
+ protocols:
+ grpc:
+ thrift_http:
+ hostmetrics:
+ collection_interval: 30s
+ scrapers:
+ cpu:
+ load:
+ memory:
+ disk:
+ filesystem:
+ network:
+processors:
+ batch:
+ send_batch_size: 1000
+ timeout: 10s
+# This file was truncated for brevity
+```
+
+To enable a new OpenTelemetry receiver, follow the steps below:
+
+1. Move into the directory in which you installed SigNoz, and open the `deploy/docker/clickhouse-setup/otel-collector-config.yaml` file in a plain-text editor.
+2. Configure your receivers. The following example shows how you can enable a receiver named `examplereceiver`:
+
+```yaml {23,24}
+receivers:
+ otlp/spanmetrics:
+ protocols:
+ grpc:
+ endpoint: 'localhost:12345'
+ otlp:
+ protocols:
+ grpc:
+ http:
+ jaeger:
+ protocols:
+ grpc:
+ thrift_http:
+ hostmetrics:
+ collection_interval: 30s
+ scrapers:
+ cpu:
+ load:
+ memory:
+ disk:
+ filesystem:
+ network:
+ examplereceiver:
+ endpoint: 1.2.3.4:8080
+processors:
+ batch:
+ send_batch_size: 1000
+ timeout: 10s
+# This file was truncated for brevity.
+```
+
+For details about configuring OpenTelemetry receivers, see the [README](https://github.com/open-telemetry/opentelemetry-collector/blob/main/receiver/README.md) page of the `opentelemetry-collector` GitHub repository. 3.
diff --git a/frontend/src/container/OnboardingContainer/LogsManagement/ApplicationLogs/ApplicationLogs.tsx b/frontend/src/container/OnboardingContainer/LogsManagement/ApplicationLogs/ApplicationLogs.tsx
new file mode 100644
index 0000000000..f08da7d539
--- /dev/null
+++ b/frontend/src/container/OnboardingContainer/LogsManagement/ApplicationLogs/ApplicationLogs.tsx
@@ -0,0 +1,89 @@
+import { MDXProvider } from '@mdx-js/react';
+import { Tabs } from 'antd';
+import Header from 'container/OnboardingContainer/common/Header/Header';
+
+import ConnectionStatus from '../common/LogsConnectionStatus/LogsConnectionStatus';
+import LogsFromLogFile from './applicationLogsFromLogFile.md';
+import LogsUsingJavaOtelSDK from './applicationLogsUsingJavaOtelSDK.md';
+import LogsUsingPythonOtelSDK from './applicationLogsUsingPythonOtelSDK.md';
+
+interface ApplicationLogsProps {
+ type: string;
+ activeStep: number;
+}
+
+const collectLogsFromFileURL =
+ 'https://signoz.io/docs/userguide/collect_logs_from_file/';
+const collectLogsFromOTELSDK =
+ 'https://signoz.io/docs/userguide/collecting_application_logs_otel_sdk_java/';
+
+export default function ApplicationLogs({
+ type,
+ activeStep,
+}: ApplicationLogsProps): JSX.Element {
+ function renderContentForCollectingLogsOtelSDK(language: string): JSX.Element {
+ if (language === 'Java') {
+ return ;
+ }
+ return ;
+ }
+
+ enum ApplicationLogsType {
+ FROM_LOG_FILE = 'from-log-file',
+ USING_OTEL_COLLECTOR = 'using-otel-sdk',
+ }
+
+ const docsURL =
+ type === ApplicationLogsType.FROM_LOG_FILE
+ ? collectLogsFromFileURL
+ : collectLogsFromOTELSDK;
+
+ return (
+ <>
+ {activeStep === 2 && (
+
+ )}
+ >
+ );
+}
diff --git a/frontend/src/container/OnboardingContainer/LogsManagement/ApplicationLogs/applicationLogsFromLogFile.md b/frontend/src/container/OnboardingContainer/LogsManagement/ApplicationLogs/applicationLogsFromLogFile.md
new file mode 100644
index 0000000000..4f65666afc
--- /dev/null
+++ b/frontend/src/container/OnboardingContainer/LogsManagement/ApplicationLogs/applicationLogsFromLogFile.md
@@ -0,0 +1,38 @@
+## Collect Application Logs from Log file in SigNoz cloud
+
+If you don’t already have a SigNoz cloud account, you can sign up [here](https://signoz.io/teams/).
+
+- Add otel collector binary to your VM by following this [guide](https://signoz.io/docs/tutorial/opentelemetry-binary-usage-in-virtual-machine/).
+
+- Add the filelog reciever to `config.yaml`.
+
+ ```yaml {3-15}
+ receivers:
+ ...
+ filelog/app:
+ include: [ /tmp/app.log ]
+ start_at: beginning
+ ...
+ ```
+
+ `start_at: beginning` can be removed once you are done testing.
+
+ For parsing logs of different formats you will have to use operators, you can read more about operators [here](https://signoz.io/docs/userguide/logs/#operators-for-parsing-and-manipulating-logs).
+
+ For more configurations that are available for filelog receiver please check [here](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/filelogreceiver).
+
+- Next we will modify our pipeline inside `config.yaml` to include the receiver we have created above.
+
+ ```yaml {4}
+ service:
+ ....
+ logs:
+ receivers: [otlp, filelog/app]
+ processors: [batch]
+ exporters: [otlp]
+ ```
+
+- Now we can restart the otel collector so that new changes are applied.
+
+- The log will be exported, if you add more lines to the log file it will be exported as well
+- If there are no errors your logs will be visible on SigNoz UI.
diff --git a/frontend/src/container/OnboardingContainer/LogsManagement/ApplicationLogs/applicationLogsUsingJavaOtelSDK.md b/frontend/src/container/OnboardingContainer/LogsManagement/ApplicationLogs/applicationLogsUsingJavaOtelSDK.md
new file mode 100644
index 0000000000..dd3591d472
--- /dev/null
+++ b/frontend/src/container/OnboardingContainer/LogsManagement/ApplicationLogs/applicationLogsUsingJavaOtelSDK.md
@@ -0,0 +1,33 @@
+# Collecting Application Logs Using OTEL Java Agent
+
+You can directly send your application logs to SigNoz using Java Agent provided by opentlemetry.
+In this blog we will run a sample java application and send the application logs to SigNoz.
+
+For collecting logs we will have to download the java agent from [here](https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/latest/download/opentelemetry-javaagent.jar).
+
+To sends logs from a Java application you will have to add the agent and add the environment variables for the agent
+
+The command for it will look like
+
+```bash
+OTEL_LOGS_EXPORTER=otlp OTEL_EXPORTER_OTLP_ENDPOINT="http://:4317" OTEL_RESOURCE_ATTRIBUTES=service.name= java -javaagent:/path/opentelemetry-javaagent.jar -jar .jar
+```
+
+
+
+In the below example we will configure a java application to send logs to SigNoz.
+
+## How to Collect Application Logs Using OTEL Java Agent?
+
+- Clone this [repository](https://github.com/SigNoz/spring-petclinic)
+- Build the application using `./mvnw package`
+- Now run the application
+
+ ```
+ OTEL_LOGS_EXPORTER=otlp OTEL_EXPORTER_OTLP_ENDPOINT="http://:4317" OTEL_RESOURCE_ATTRIBUTES=service.name=myapp java -javaagent:/path/opentelemetry-javaagent.jar -jar target/*.jar
+ ```
+
+ You will have to replace your the value of `host` as `0.0.0.0` if SigNoz is running in the same host, for other configurations please check the
+ [troubleshooting](../install/troubleshooting.md#signoz-otel-collector-address-grid) guide.
+
+- Now if the application starts successfully the logs will be visible on SigNoz UI.
diff --git a/frontend/src/container/OnboardingContainer/LogsManagement/ApplicationLogs/applicationLogsUsingPythonOtelSDK.md b/frontend/src/container/OnboardingContainer/LogsManagement/ApplicationLogs/applicationLogsUsingPythonOtelSDK.md
new file mode 100644
index 0000000000..53d7ab799c
--- /dev/null
+++ b/frontend/src/container/OnboardingContainer/LogsManagement/ApplicationLogs/applicationLogsUsingPythonOtelSDK.md
@@ -0,0 +1,3 @@
+# Collecting Application Logs Using OTEL Python SDK
+
+You can directly send logs of your application to SigNoz using the Python SDKs provided by opentlemetry. Please find an example [here](https://github.com/open-telemetry/opentelemetry-python/tree/main/docs/examples/logs).
diff --git a/frontend/src/container/OnboardingContainer/LogsManagement/Docker/Docker.tsx b/frontend/src/container/OnboardingContainer/LogsManagement/Docker/Docker.tsx
new file mode 100644
index 0000000000..972372c59d
--- /dev/null
+++ b/frontend/src/container/OnboardingContainer/LogsManagement/Docker/Docker.tsx
@@ -0,0 +1,38 @@
+import { MDXProvider } from '@mdx-js/react';
+import Header from 'container/OnboardingContainer/common/Header/Header';
+
+import ConnectionStatus from '../common/LogsConnectionStatus/LogsConnectionStatus';
+import Post from './docker.md';
+
+export default function Docker({
+ activeStep,
+}: {
+ activeStep: number;
+}): JSX.Element {
+ return (
+ <>
+ {activeStep === 2 && (
+
+
+
+
+
+
+
+
+
+ )}
+ {activeStep === 3 && (
+
+
+
+ )}
+ >
+ );
+}
diff --git a/frontend/src/container/OnboardingContainer/LogsManagement/Docker/docker.md b/frontend/src/container/OnboardingContainer/LogsManagement/Docker/docker.md
new file mode 100644
index 0000000000..e72a38dbf5
--- /dev/null
+++ b/frontend/src/container/OnboardingContainer/LogsManagement/Docker/docker.md
@@ -0,0 +1,70 @@
+## Collect Syslogs in SigNoz cloud
+
+### Setup Otel Collector as agent
+
+- Add `config.yaml`
+ ```yaml {22-26}
+ receivers:
+ filelog:
+ include: [/tmp/python.log]
+ start_at: beginning
+ operators:
+ - type: json_parser
+ timestamp:
+ parse_from: attributes.time
+ layout: '%Y-%m-%d,%H:%M:%S %z'
+ - type: move
+ from: attributes.message
+ to: body
+ - type: remove
+ field: attributes.time
+ processors:
+ batch:
+ send_batch_size: 10000
+ send_batch_max_size: 11000
+ timeout: 10s
+ exporters:
+ otlp:
+ endpoint: 'ingest.{region}.signoz.cloud:443'
+ tls:
+ insecure: false
+ headers:
+ 'signoz-access-token': ''
+ service:
+ pipelines:
+ logs:
+ receivers: [filelog]
+ processors: [batch]
+ exporters: [otlp/log]
+ ```
+
+````
+Depending on the choice of your region for SigNoz cloud, the otlp endpoint will vary according to this table.
+
+| Region | Endpoint |
+| ------ | -------------------------- |
+| US | ingest.us.signoz.cloud:443 |
+| IN | ingest.in.signoz.cloud:443 |
+| EU | ingest.eu.signoz.cloud:443 |
+
+* We will start our otel-collector container.
+```bash
+docker run -d --name signoz-host-otel-collector -p 2255:2255 --user root -v $(pwd)/config.yaml:/etc/otel/config.yaml signoz/signoz-otel-collector:0.79.0
+````
+
+### Run logspout to collect docker container logs and send it to local otel collector.
+
+Logspout helps in collecting Docker logs by connecting to Docker socket.
+
+- Run logspout
+
+ ```bash
+ docker run --net=host --rm --name="logspout" \
+ --volume=/var/run/docker.sock:/var/run/docker.sock \
+ gliderlabs/logspout \
+ syslog+tcp://:2255
+ ```
+
+ For finding the right host for your SigNoz cluster please follow the guide [here](../install/troubleshooting.md#signoz-otel-collector-address-grid).
+
+- If there are no errors your logs will be exported and will be visible on the SigNoz UI.
diff --git a/frontend/src/container/OnboardingContainer/LogsManagement/Kubernetes/Kubernetes.tsx b/frontend/src/container/OnboardingContainer/LogsManagement/Kubernetes/Kubernetes.tsx
new file mode 100644
index 0000000000..9c93ce5aa9
--- /dev/null
+++ b/frontend/src/container/OnboardingContainer/LogsManagement/Kubernetes/Kubernetes.tsx
@@ -0,0 +1,38 @@
+import { MDXProvider } from '@mdx-js/react';
+import Header from 'container/OnboardingContainer/common/Header/Header';
+
+import ConnectionStatus from '../common/LogsConnectionStatus/LogsConnectionStatus';
+import Post from './kubernetes.md';
+
+export default function Kubernetes({
+ activeStep,
+}: {
+ activeStep: number;
+}): JSX.Element {
+ return (
+ <>
+ {activeStep === 2 && (
+
+ );
+}
diff --git a/frontend/src/container/OnboardingContainer/LogsManagement/Nodejs/Nodejs.tsx b/frontend/src/container/OnboardingContainer/LogsManagement/Nodejs/Nodejs.tsx
new file mode 100644
index 0000000000..5ebc044205
--- /dev/null
+++ b/frontend/src/container/OnboardingContainer/LogsManagement/Nodejs/Nodejs.tsx
@@ -0,0 +1,38 @@
+import { MDXProvider } from '@mdx-js/react';
+import Header from 'container/OnboardingContainer/common/Header/Header';
+
+import ConnectionStatus from '../common/LogsConnectionStatus/LogsConnectionStatus';
+import Post from './nodejs.md';
+
+export default function Nodejs({
+ activeStep,
+}: {
+ activeStep: number;
+}): JSX.Element {
+ return (
+ <>
+ {activeStep === 2 && (
+
+
+
+
+
+
+
+
+
+ )}
+ {activeStep === 3 && (
+
+
+
+ )}
+ >
+ );
+}
diff --git a/frontend/src/container/OnboardingContainer/LogsManagement/Nodejs/nodejs.md b/frontend/src/container/OnboardingContainer/LogsManagement/Nodejs/nodejs.md
new file mode 100644
index 0000000000..eebc1c1876
--- /dev/null
+++ b/frontend/src/container/OnboardingContainer/LogsManagement/Nodejs/nodejs.md
@@ -0,0 +1,29 @@
+# Collecting NodeJS winston logs
+
+If you are using `winston` as your logging library in your Nodejs application, you can export these logs to SigNoz very easily using various transports provided by `winston`.
+
+## Collecting Nodejs logs when application is deployed on Docker or Kubernetes
+
+When your application is deployed in Docker or a Kubernetes cluster the logs from the console are automatically collected and stored in the node. The SigNoz collector will automatically collect the logs and it will be visible on the SigNoz UI.
+
+You can add a console transport very easily as stated here.
+
+```
+logger.add(new winston.transports.Console(options));
+```
+
+## Collecting Nodejs logs when application is deployed on a Host
+
+When you run your application directly on the host, you will be required to add a intermediary medium ex:- a file, where you can export your logs and the otel-collector can read them and push to signoz.
+
+You can add a file transport very easily as stated here.
+
+```
+logger.add(new winston.transports.File(options));
+```
+
+Once you run your application and the logs are added to a file, you can configure otel collector to read from that file.
+
+For configuring it you can follow the guide [here](./collecting_application_logs_file.md#collecting-application-logs-from-log-file).
+
+Once you configure the otel collector the logs will be visible on the UI.
diff --git a/frontend/src/container/OnboardingContainer/LogsManagement/SysLogs/SysLogs.tsx b/frontend/src/container/OnboardingContainer/LogsManagement/SysLogs/SysLogs.tsx
new file mode 100644
index 0000000000..eb00380e44
--- /dev/null
+++ b/frontend/src/container/OnboardingContainer/LogsManagement/SysLogs/SysLogs.tsx
@@ -0,0 +1,38 @@
+import { MDXProvider } from '@mdx-js/react';
+import Header from 'container/OnboardingContainer/common/Header/Header';
+
+import ConnectionStatus from '../common/LogsConnectionStatus/LogsConnectionStatus';
+import Post from './syslogs.md';
+
+export default function SysLogs({
+ activeStep,
+}: {
+ activeStep: number;
+}): JSX.Element {
+ return (
+ <>
+ {activeStep === 2 && (
+
+
+
+
+
+
+
+
+
+ )}
+ {activeStep === 3 && (
+
+
+
+ )}
+ >
+ );
+}
diff --git a/frontend/src/container/OnboardingContainer/LogsManagement/SysLogs/syslogs.md b/frontend/src/container/OnboardingContainer/LogsManagement/SysLogs/syslogs.md
new file mode 100644
index 0000000000..32ed6eb13f
--- /dev/null
+++ b/frontend/src/container/OnboardingContainer/LogsManagement/SysLogs/syslogs.md
@@ -0,0 +1,83 @@
+## Collect Syslogs in SigNoz cloud
+
+If you don’t already have a SigNoz cloud account, you can sign up [here](https://signoz.io/teams/).
+
+
+
+
+- Add otel collector binary to your VM by following this [guide](https://signoz.io/docs/tutorial/opentelemetry-binary-usage-in-virtual-machine/).
+- Add the syslog reciever to `config.yaml` to otel-collector.
+
+ ```yaml {2-10}
+ receivers:
+ syslog:
+ tcp:
+ listen_address: '0.0.0.0:54527'
+ protocol: rfc3164
+ location: UTC
+ operators:
+ - type: move
+ from: attributes.message
+ to: body
+ ```
+
+ Here we are collecting the logs and moving message from attributes to body using operators that are available.
+ You can read more about operators [here](./logs.md#operators-for-parsing-and-manipulating-logs).
+
+ For more configurations that are available for syslog receiver please check [here](https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/receiver/syslogreceiver).
+
+- Next we will modify our pipeline inside `config.yaml` of otel-collector to include the receiver we have created above.
+
+ ```yaml {4}
+ service:
+ ....
+ logs:
+ receivers: [otlp, syslog]
+ processors: [batch]
+ exporters: [otlp]
+ ```
+
+- Now we can restart the otel collector so that new changes are applied and we can forward our logs to port `54527`.
+
+- Modify your `rsyslog.conf` file present inside `/etc/` by running the following command:
+
+ ```bash
+ sudo vim /etc/rsyslog.conf
+ ```
+
+ and adding the this line at the end
+
+ ```
+ template(
+ name="UTCTraditionalForwardFormat"
+ type="string"
+ string="<%PRI%>%TIMESTAMP:::date-utc% %HOSTNAME% %syslogtag:1:32%%msg:::sp-if-no-1st-sp%%msg%"
+ )
+
+ *.* action(type="omfwd" target="0.0.0.0" port="54527" protocol="tcp" template="UTCTraditionalForwardFormat")
+ ```
+
+ For production use cases it is recommended to use something like below:
+
+ ```
+ template(
+ name="UTCTraditionalForwardFormat"
+ type="string"
+ string="<%PRI%>%TIMESTAMP:::date-utc% %HOSTNAME% %syslogtag:1:32%%msg:::sp-if-no-1st-sp%%msg%"
+ )
+
+ *.* action(type="omfwd" target="0.0.0.0" port="54527" protocol="tcp"
+ action.resumeRetryCount="10"
+ queue.type="linkedList" queue.size="10000" template="UTCTraditionalForwardFormat")
+ ```
+
+ So that you have retires and queue in place to de-couple the sending from the other logging action.
+
+ The value of `target` might vary depending on where SigNoz is deployed, since it is deployed on the same host I am using `0.0.0.0` for more help you can visit [here](../install/troubleshooting.md#signoz-otel-collector-address-grid).
+
+- Now restart your rsyslog service by running `sudo systemctl restart rsyslog.service`
+- You can check the status of service by running `sudo systemctl status rsyslog.service`
+- If there are no errors your logs will be visible on SigNoz UI.
+
+
+
diff --git a/frontend/src/container/OnboardingContainer/LogsManagement/common/LogsConnectionStatus/LogsConnectionStatus.styles.scss b/frontend/src/container/OnboardingContainer/LogsManagement/common/LogsConnectionStatus/LogsConnectionStatus.styles.scss
new file mode 100644
index 0000000000..aba389dd74
--- /dev/null
+++ b/frontend/src/container/OnboardingContainer/LogsManagement/common/LogsConnectionStatus/LogsConnectionStatus.styles.scss
@@ -0,0 +1,98 @@
+.connection-status-container {
+ .full-docs-link {
+ margin-bottom: 36px;
+
+ .header {
+ display: flex;
+ align-items: center;
+ gap: 16px;
+ margin: 16px 0;
+
+ img {
+ height: 40px;
+ }
+
+ h1 {
+ font-size: 18px;
+ display: flex;
+ align-items: center;
+ color: #e5e7eb;
+ gap: 16px;
+ margin: 0px;
+ }
+ }
+ }
+
+ .status-container {
+ display: flex;
+ justify-content: space-between;
+ gap: 24px;
+
+ .title {
+ text-transform: capitalize;
+ }
+ }
+
+ .service-info,
+ .language-info,
+ .status-info,
+ .details-info {
+ display: flex;
+ gap: 8px;
+ flex-direction: column;
+ }
+
+ .language-info {
+ .language {
+ text-transform: capitalize;
+ }
+ }
+
+ .service-info {
+ flex: 2;
+ }
+
+ .language-info {
+ flex: 2;
+ }
+
+ .status-info {
+ flex: 1;
+ }
+
+ .details-info {
+ flex: 3;
+ }
+
+ .status {
+ display: flex;
+ gap: 8px;
+
+ svg {
+ width: 16px;
+ height: 16px;
+ }
+ }
+}
+
+$lightModeFontColor: rgb(29, 29, 29);
+
+.lightMode {
+ .connection-status-container {
+ .header .title {
+ color: $lightModeFontColor;
+
+ h1 {
+ color: $lightModeFontColor;
+ }
+ }
+
+ .status-container {
+ color: $lightModeFontColor;
+ }
+ }
+}
+
+.text-capitalize {
+ text-transform: capitalize;
+}
diff --git a/frontend/src/container/OnboardingContainer/LogsManagement/common/LogsConnectionStatus/LogsConnectionStatus.tsx b/frontend/src/container/OnboardingContainer/LogsManagement/common/LogsConnectionStatus/LogsConnectionStatus.tsx
new file mode 100644
index 0000000000..40750b6abb
--- /dev/null
+++ b/frontend/src/container/OnboardingContainer/LogsManagement/common/LogsConnectionStatus/LogsConnectionStatus.tsx
@@ -0,0 +1,250 @@
+import './LogsConnectionStatus.styles.scss';
+
+import {
+ CheckCircleTwoTone,
+ CloseCircleTwoTone,
+ LoadingOutlined,
+} from '@ant-design/icons';
+import { PANEL_TYPES } from 'constants/queryBuilder';
+import Header from 'container/OnboardingContainer/common/Header/Header';
+import { useGetExplorerQueryRange } from 'hooks/queryBuilder/useGetExplorerQueryRange';
+import { useEffect, useState } from 'react';
+import { SuccessResponse } from 'types/api';
+import { ILog } from 'types/api/logs/log';
+import { MetricRangePayloadProps } from 'types/api/metrics/getQueryRange';
+import { Query } from 'types/api/queryBuilder/queryBuilderData';
+import { EQueryType } from 'types/common/dashboard';
+import { DataSource } from 'types/common/queryBuilder';
+
+interface ConnectionStatusProps {
+ logType: string;
+}
+
+const enum ApplicationLogsType {
+ FROM_LOG_FILE = 'from-log-file',
+ USING_OTEL_COLLECTOR = 'using-otel-sdk',
+}
+
+export default function LogsConnectionStatus({
+ logType,
+}: ConnectionStatusProps): JSX.Element {
+ const [loading, setLoading] = useState(true);
+ const [isReceivingData, setIsReceivingData] = useState(false);
+ const [pollingInterval, setPollingInterval] = useState(15000); // initial Polling interval of 15 secs , Set to false after 5 mins
+ const [retryCount, setRetryCount] = useState(20); // Retry for 5 mins
+
+ const requestData: Query = {
+ queryType: EQueryType.QUERY_BUILDER,
+ builder: {
+ queryData: [
+ {
+ dataSource: DataSource.LOGS,
+ queryName: 'A',
+ aggregateOperator: 'noop',
+ aggregateAttribute: {
+ id: '------false',
+ dataType: '',
+ key: '',
+ isColumn: false,
+ type: '',
+ },
+ filters: {
+ items: [],
+ op: 'AND',
+ },
+ expression: 'A',
+ disabled: false,
+ having: [],
+ stepInterval: 60,
+ limit: null,
+ orderBy: [
+ {
+ columnName: 'timestamp',
+ order: 'desc',
+ },
+ ],
+ groupBy: [],
+ legend: '',
+ reduceTo: 'sum',
+ offset: 0,
+ pageSize: 100,
+ },
+ ],
+ queryFormulas: [],
+ },
+ clickhouse_sql: [],
+ id: '',
+ promql: [],
+ };
+
+ const { data, isFetching, error, isError } = useGetExplorerQueryRange(
+ requestData,
+ PANEL_TYPES.LIST,
+ {
+ keepPreviousData: true,
+ refetchInterval: pollingInterval,
+ enabled: true,
+ },
+ );
+
+ const verifyLogsData = (
+ response?: SuccessResponse,
+ ): void => {
+ if (response || !isError) {
+ setRetryCount(retryCount - 1);
+
+ if (retryCount < 0) {
+ setLoading(false);
+ setPollingInterval(false);
+ }
+ }
+
+ const currentData = data?.payload.data.newResult.data.result || [];
+ if (currentData.length > 0 && currentData[0].list) {
+ const currentLogs: ILog[] = currentData[0].list.map((item) => ({
+ ...item.data,
+ timestamp: item.timestamp,
+ }));
+
+ for (let index = 0; index < currentLogs.length; index += 1) {
+ const log = currentLogs[index];
+
+ const attrStringObj = log?.attributes_string;
+
+ if (
+ (logType === 'kubernetes' &&
+ Object.prototype.hasOwnProperty.call(attrStringObj, 'k8s_pod_name')) ||
+ (logType === 'docker' &&
+ Object.prototype.hasOwnProperty.call(attrStringObj, 'container_id'))
+ ) {
+ // Logs Found, stop polling
+ setLoading(false);
+ setIsReceivingData(true);
+ setRetryCount(-1);
+ setPollingInterval(false);
+ break;
+ }
+ }
+ }
+ };
+
+ useEffect(() => {
+ verifyLogsData(data);
+ // eslint-disable-next-line react-hooks/exhaustive-deps
+ }, [isFetching, data, error, isError]);
+
+ const renderDocsReference = (): JSX.Element => {
+ switch (logType) {
+ case 'kubernetes':
+ return (
+
+ );
+
+ case 'docker':
+ return (
+
+ );
+
+ case 'syslogs':
+ return (
+
+ );
+ case 'nodejs':
+ return (
+
+ );
+
+ default:
+ return (
+
+ );
+ }
+ };
+
+ return (
+