You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So, I was trying to think of ways to add prometheus monitoring all my agents.
But prometheus is based on a pull model, which means each agent would need a VPN or an open port (all of them are behind NAT, and spread across the globe).
The second is not even a choice as I don't control the networks, apart maybe from very few.
VPN is viable but, is just another thing to setup, but not really needed in my case apart from the monitoring thing.
I was thinking that I already have an open connection to the agent with MeshCentral.
So, my question now is, is there a way to create unique URLs for all agents?
Something like https://mc.domain.com/agentX/<exporter_port>/<exporter_path>
(rendered: https://mc.domain.com/agentX/9980/metrics)
Assuming that I would be able to do a call to the above URL and meshcentral would do a call to the agent's context of "localhost:9980/metrics" and fetch the data
So I can generate a "target's" list for prometheus to scrape all those URLs?
Something very close to that, would be using MeshRouter and mapping ports, but that's gonna be a pain to automate.
Another would be something like WebRelay, but afaik you have a limit on open connections?
Fairly new to advanced things of MeshCentral. So it might already do that, but don't know how to search it!
At least few searches didn't get me anywhere
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
So, I was trying to think of ways to add prometheus monitoring all my agents.
But prometheus is based on a pull model, which means each agent would need a VPN or an open port (all of them are behind NAT, and spread across the globe).
The second is not even a choice as I don't control the networks, apart maybe from very few.
VPN is viable but, is just another thing to setup, but not really needed in my case apart from the monitoring thing.
I was thinking that I already have an open connection to the agent with MeshCentral.
So, my question now is, is there a way to create unique URLs for all agents?
Something like
https://mc.domain.com/agentX/<exporter_port>/<exporter_path>
(rendered:
https://mc.domain.com/agentX/9980/metrics
)So I can generate a "target's" list for prometheus to scrape all those URLs?
Something very close to that, would be using MeshRouter and mapping ports, but that's gonna be a pain to automate.
Another would be something like WebRelay, but afaik you have a limit on open connections?
Fairly new to advanced things of MeshCentral. So it might already do that, but don't know how to search it!
At least few searches didn't get me anywhere
Beta Was this translation helpful? Give feedback.
All reactions