TLDR Priya wanted to view host level metrics in SigNoz's standalone docker app. Ashu guided them to enable a dashboard and import a JSON to view metrics. After more queries, Prashant clarified how to display metrics correctly for different hosts.
Hi Priya That will come under `Dashboards` tab. You would need to create a hostmetrics dashboard.
Check out these docs:
Hi Ashu fo the response so I have installed SigNoz on Docker Standalone and in above doc SIGNOZ_INGESTION_KEY is needed what is that how to get it ?
Can you check the docs under self-host section?
so I already have signoz up and running and its all all the containers up. I have instrumented my go application as well using this doc
Is SigNoz and your application running on the same host?
yes
Can you try these steps:
• Go to Dashboards
• Click on `+New Dashboard`
• Click on `Import json`
• Paste JSON from this
Thanks Ashu but just to understand how exactly it will collect the host metrics via the json ?
Like for controllers i am starting a span using otel tracer and adding the attributes i need and thats coming under traces, dont i need to add cpde for host metrivs as well?
By defualt, when you install SigNoz, the hostmetrics receiver is enabled. You can read more about the receiver here:
Thanks Ashu it worked.
just one last question this dashboard is showing hostname as signoz_host where to change this name ?
Also is there any way to see what exactly data it is storing which is getting used in the dashboard .. just to verify if getting the stats from the host where the application is running. Also what if the application is running on different host and signoz is on different host. where is this metrics coming from how to ensure that ?..
By defualt, when you install SigNoz, the hostmetrics receiver is enabled then its collecting the metrics from the machine where signoz is running right ?
> By defualt, when you install SigNoz, the hostmetrics receiver is enabled then its collecting the metrics from the machine where signoz is running right ? Yes > Also what if the application is running on different host and signoz is on different host. where is this metrics coming from how to ensure that ?.. If the application is running on a different host, you would need to install otel-collector binary there and configure it to send data to the machine where SigNoz is installed. > just one last question this dashboard is showing hostname as signoz_host where to change this name ? Prashant would be able to help you on this. > Also is there any way to see what exactly data it is storing which is getting used in the dashboard .. just to verify if getting the stats from the host where the application is running. <@4K1456> is there any way to do this? I am guessing this is a clickhouse table where the data is stored.
Thank you Ashu <@4K1555> <@4K1456> if you xan help understanding above questions
Priya In the hostmetrics dashboard shared above by Ashu , hostname is a variable. More sources i.e. VM/K8s nodes you send data from, more hosts will be available in that option
```"variables": { "hostname": { "customValue": "", "description": "Hostname of the instance", "modificationUUID": "f8ed0d75-f0e7-4c82-978e-22bfe98a5c2b", "multiSelect": false, "name": "hostname", "queryValue": "SELECT DISTINCT(JSONExtractString(labels, 'host_name'))\nFROM signoz_metrics.time_series_v2\nWHERE not has(JSONExtractKeys(labels), 'k8s_node_name')", "selectedValue": "signoz-host", "showALLOption": false, "sort": "DISABLED", "textboxValue": "", "type": "QUERY" }``` I believe its coming from above json that we imported in dashboard, can we change it to actual host name ? how to see the data stored in click house
Lets say my go application is running in a cluster of 5 machines and need to send the machine metrics to signoz ui.. now how to change the hostname so that dashboard shows the metrics for each of the hosts
Ashu I have few more questions: 1. do we support sampling here ? (like collect traces for 1 out of 10 api calls) 2. process level metrics ( how much of cpu, memory etc is getting consumed by my application) 3. if my application is making db connection (redis connection) how to #db connections etc. Thank you for helping and answering all questions
> I believe its coming from above json that we imported in dashboard, can we change it to actual host name ? how to see the data stored in click house Did you import `hostmetrics-with-variable.json`? If yes, that `signoz-host` default value that is only shown once. But when hostname variable dropdown is clicked, you should see list of your VMs.
> Lets say my go application is running in a cluster of 5 machines and need to send the machine metrics to signoz ui.. now how to change the hostname so that dashboard shows the metrics for each of the hosts
Also, in case of K8s nodes, you will need to import
Priya
Tue, 10 Oct 2023 09:27:32 UTCHello <#C01HWUTP4HH|general> I am using signoz standalone docker app, I can see section metrics like explained in the official website. Basically I want to see the host level metrics like cpu, memory etc. How to see that ?