Metrics of multiple tomcat

I have a RedHat server where 2 tomcat are deployed.
I configure Grafana to track metrics of the first tomcat but I don’t know how to configure json file of the server to track the metrics of the second tomcat
Can I regitered in the same json informations of the second json ?

Json is like this :
hostname = servername
port = port tomcat1
login = name of remote user jmx
password : password of remote user jmx


I would suggest you use prometheus and create a job to handle your two instances (use JMX exporter)

Good Luck