Slackbot
10/10/2023, 9:27 AMAshu
Dashboards
tab. You would need to create a hostmetrics dashboard.
Check out these docs: https://signoz.io/docs/tutorial/opentelemetry-binary-usage-in-virtual-machine/Priya
10/10/2023, 11:01 AMAshu
Priya
10/10/2023, 11:26 AMAshu
Priya
10/10/2023, 11:49 AMAshu
+New Dashboard
• Click on Import json
• Paste JSON from this link in the window of Import JSON
This should work. @Prashant Shahi just wanted to confirm once, if the application and signoz are on the same machine, we don't need to install otel-collector separately, right?Priya
10/10/2023, 12:23 PMPriya
10/10/2023, 12:24 PMAshu
Priya
10/10/2023, 12:59 PMPriya
10/10/2023, 1:02 PMPriya
10/10/2023, 1:11 PMPriya
10/10/2023, 1:12 PMAshu
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 Shahi 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.@Srikanth Chekuri is there any way to do this? I am guessing this is a clickhouse table where the data is stored.
Priya
10/10/2023, 1:39 PMPrashant Shahi
10/10/2023, 1:52 PMPriya
10/10/2023, 1:56 PM"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 housePriya
10/10/2023, 6:40 PMPriya
10/11/2023, 5:52 AMPrashant Shahi
10/11/2023, 8:46 PMhostmetrics-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.Prashant Shahi
10/11/2023, 8:46 PMLets 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 hostsAlso, in case of K8s nodes, you will need to import hostmetrics-k8s.json instead.