endpoints:#This field specifies the endpoints that Prometheus should scrape for metrics. You can specify the port, path, and other information for each endpoint.
-interval:15s
port:hello2-metrics
scrapeTimeout:14s
path:/actuator/prometheus
namespaceSelector:
matchNames:
-default
selector:#This field specifies how Prometheus should discover the target service to monitor. You can use labels, namespaces, and other selectors to choose the target service.