I have this components that publishes messages to a broker I want to export the same message to prometheus
public class ModuleAMessagePublisher {
@Inject
@InternalBroker
private MessagePublisher messagePublisher;
public void publish(String topic, final String message) {
log.info("<><><><><><><><><> (MQ) PUBLISH MODULEA MESSAGE: <><><><><><<>\n", message);
messagePublisher.publish(topic, message);
// code for prometheus to be added here
}
}
I'm so new to using prometheus and I'm not sure if it's possible to be done or how can it be done