Hello all.
In my current solution I have:
- 3 Elasticsearch Nodes
- 1 Kibana Node
I then have have Filebeat installed in 12 other servers, from which I collect the logs.
In my Master Elastic Server, I have Heartbeat installed.
There, I also have 12 monitor-XX.yaml files, one for each of the 12 servers, from which I monitor a series of HTTP endpoints.
The HTTP endpoints to monitor are exactly the same across all 12 serves.
The only difference is the initial part of the URL and the AppKey from Headers.
I'm now trying to implement this solution using the Fleet Management and Agents.
- I installed the Fleet server in one of my Elasticsearch servers.
- It is using the Fleet Policy that was created earlier
- I installed one agent in one of my 12 servers which is using the "Server A Policy"
- I went to Settings in Synthetics page and created a Private Location named "Server A" which is linked with "Server A Policy"
- I linked the newly created Monitor to that location
- I was able to successfully monitor one HTTP endpoint on that location.
Since the HTTP monitors are the same for each server, being the only difference a parameter inside the URL, how can I set a variable and assign a value?
My idea was that the URL would be something like this:
http://{serverName}-example.com
I tried using the Global parameters but I can't see how to make it dependent on the policy.
Is this solution possible?
Creating a {serverName} variable that I can assign different values?
I usually have 10 monitors in each of the 12 servers.
So in reality I want to create only 10 monitors that will be dependent of that {serverName}.
Thanks.