https://pinot.apache.org/ logo
c

Charles

03/24/2021, 1:36 PM
Hi All, I got an error Caused by: java.net.BindException: Address already in use at sun.nio.ch.Net.bind0(Native Method) at sun.nio.ch.Net.bind(Net.java:433) at sun.nio.ch.Net.bind(Net.java:425) at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:220) at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:85) at sun.net.httpserver.ServerImpl.bind(ServerImpl.java:133) at sun.net.httpserver.HttpServerImpl.bind(HttpServerImpl.java:54) at io.prometheus.jmx.shaded.io.prometheus.client.exporter.HTTPServer.<init>(HTTPServer.java:145) at io.prometheus.jmx.shaded.io.prometheus.jmx.JavaAgent.premain(JavaAgent.java:31) ... 6 more FATAL ERROR in native method: processing of -javaagent failed When I deploying controller, broker, server with -javaagent:jmx_prometheus_javaagent-0.12.0.jar=9066 in one vm server, Do you know how to send metrics to prometheus:9066 in one node
d

Daniel Lavoie

03/24/2021, 1:39 PM
the prometheus exporter is not a client. It’s a server. so when you define
jmx_prometheus_javaagent-0.12.0.jar=9066
, it opens a port 9066 on your Pinot process for Prometheus to scrape metrics.
This configuration is not for your prometheus server port. You need a distinct port. and configure a prometheus scrape config that reference this pinot host and port.
c

Charles

03/24/2021, 1:46 PM
Thx, I can config different ports in prometheus to collect those metrics
d

Daniel Lavoie

03/24/2021, 1:46 PM
Yes
It,s all part of your prometheus scrape config
👍 1
If everything is running on one node, you will need distinct port on the javaagent config for each pinot component
c

Charles

03/24/2021, 1:48 PM
yes I just changed <