Hello Everyone, I have signoz installed in my gcp ...
# support
p
Hello Everyone, I have signoz installed in my gcp cluster, and i have enabled logs, metrics ans traces, now i have one compute instance running (not in cluster) in which php application is running, now i want to get a logs of that application in my existing signoz which is running in my gke cluster, i do not want to install signoz separately on my compute instance.. so how can i do that, can anyone guide me regarding this?
n
Try using the otel sdk ? • https://opentelemetry.io/docs/languages/php/https://github.com/open-telemetry/opentelemetry-php/tree/main/examples the other way is to write logs to a file and then collect them using a collector https://signoz.io/docs/userguide/collect_logs_from_file/
p
Hello @nitya-signoz, in this doc which you have provided "https://signoz.io/docs/userguide/collect_logs_from_file/", here it shows that how we can do that with a signoz cloud, but i am using a self-hosted signoz, so does this same steps work with a self-hosted signoz?
n
p
ok got it, thanks for your support.👍
Hello @nitya-signoz, i want to enable everything like traces, metrics and logs, so can i follow this link for this purpose? https://signoz.io/docs/tutorial/opentelemetry-binary-usage/#setup-otel-collector-as-agent can you tell me that what this does exactly, and in which situation we can use this..
n
Yeah you can use that, lets say your signoz is deployed on instance-A . You want to collect data from instance-B, instance-C etc, in that case you can just deploy the collector in B and C to collect/forward the data to signoz deployed in instance-A
p
ok got your point, as per my knowledge otel-collector only collects a traces or metrics or logs, it does not go in an application and scrape a metrics, so do i need to make a change or add something in a application code, so that otel-collector get a metrics and logs, or has you said that we only have deploy a otel collector in instance B, and our work is done.
n
Yes you will have to configure it. host mterics will be automatically collected, for applications you will have to configure the collector
check the receivers section
config.yaml
in the above doc