Monitoring and Collecting Logs for Go Application with SigNoz

TLDR zane.chen asked about creating and using SigNoz dashboard to monitor Go applications and collect self-logs. Srikanth provided solutions for dashboard monitoring and collecting logs but left questions on go-zero framework support unanswered.

Photo of zane.chen
zane.chen
Wed, 22 Feb 2023 11:14:00 UTC

Hi team, I’m studying this signoz and want to work on our work But I meet several problem, can you give me a favor? 1、How to create and use dashboard to monitor something (e.g. go application、service resource and myslq)? 2、How to collect go application self’s log to logs module (is not signoz log)

Photo of Srikanth
Srikanth
Wed, 22 Feb 2023 13:48:18 UTC

> 1、How to create and use dashboard to monitor something (e.g. go application、service resource and myslq)? Did you instrument your go application? Are you already sending any data to SigNoz? > 2、How to collect go application self’s log to logs module (is not signoz log) What is your log transportation mechanism? Do you have some existing setup in place?

Photo of zane.chen
zane.chen
Thu, 23 Feb 2023 01:36:48 UTC

1、yes, my go application has been instrumented in signoz, and can see it on services panel. I need to know how can i use dashboard to monitor my some infrustruct?

Photo of zane.chen
zane.chen
Thu, 23 Feb 2023 01:40:57 UTC

2、I selected docker contains mechanism to collect my go application log, no special setup in place. But no find application logs in log panel, only see request event record. I hope it likes ELK, can gather application logs.

Photo of Srikanth
Srikanth
Thu, 23 Feb 2023 01:48:16 UTC

> I need to know how can i use dashboard to monitor my some infrustruct? Can you be specific about this? What part are you interested in monitoring?

Photo of zane.chen
zane.chen
Thu, 23 Feb 2023 02:58:38 UTC

OK,just like prometheus and granfana, can monitor device cpu、memery、 io、disk, can monitor application request or error and exception, monitor middleware( e.g. mysql、tidb、clickhouse).

Photo of zane.chen
zane.chen
Thu, 23 Feb 2023 02:59:34 UTC

Photo of zane.chen
zane.chen
Thu, 23 Feb 2023 02:59:50 UTC

Photo of Srikanth
Srikanth
Thu, 23 Feb 2023 04:32:07 UTC

You can use the Prometheus receiver in signoz to scrape the infrastructure metrics

Photo of zane.chen
zane.chen
Thu, 23 Feb 2023 06:44:51 UTC

1、oka,let me try, thanks

Photo of zane.chen
zane.chen
Thu, 23 Feb 2023 06:45:53 UTC

the second problem, can you give me some suggestion? I selected docker contains mechanism to collect my go application log, no special setup in place. But no find application logs in log panel, only see request event record. I hope it likes ELK, can gather application logs.

Photo of Srikanth
Srikanth
Thu, 23 Feb 2023 06:53:48 UTC

Photo of zane.chen
zane.chen
Thu, 23 Feb 2023 08:05:56 UTC

this is trace, but i want logs from application inside to analyze error or business logic, just like below:

Photo of zane.chen
zane.chen
Thu, 23 Feb 2023 08:06:02 UTC

Photo of zane.chen
zane.chen
Thu, 23 Feb 2023 08:08:26 UTC

and can go-zero framework be supported by signoz? my go application used go-zero framework not gin

Photo of zane.chen
zane.chen
Fri, 24 Feb 2023 01:35:24 UTC

hello?

Photo of Palash
Palash
Mon, 27 Feb 2023 11:59:08 UTC

<@4K1788>