Can I get metrics available through Prometheus into Azure Monitor, specifically into log analytics? (VM'S). I am running a couple of VM's inside Azure portal and I have my own private besu nodes running on them. I have my metrics set up inside the Prometheus but I was hoping to hook it up securely to Grafana but I tried everything and I can't. So the next thing is to see if can I get the metrics available through Prometheus into azure monitor, specifically into log analytics. The aim is to get the sync status, and the highest block number on each node, into log analytics so we can see what each is doing. That way we know, on a quick look, the status of each node and by extension, the condition of the private chain. What worries me is that although I have alerts if blocks stop being created or nodes lose peers we cannot see it quickly.
Prometheus is one option to give us those stats. If we can get data from Prometheus into log analytics that would solve the problem.
Can anyone help me with how I can go about it or any links? All I am seeing is for containers but I want for my VMs.
Hi Darragh,
You can use Function Apps to scrape metrics and send them to a Log Analytics Data Collector API. Still, from my experience, I can say that it's hard to query data in Prometheus format with KQL. Instead, I'd add the Application Insights instrumentation to the application or proceed with building the Prometheus setup.