sanjay3290 commented on issue #483: URL: https://github.com/apache/solr-operator/issues/483#issuecomment-1334495894
> We have the same problem here. We are using the solr-operator 0.6 and prometheus 2.39.1 hosted in gke version 1.21. We aren't using the prometheus operator. I deployed the solr prometheus exporter with the following snippet: > > ``` > apiVersion: solr.apache.org/v1beta1 > kind: SolrPrometheusExporter > metadata: > name: solr-prom-exporter > spec: > customKubeOptions: > resources: > requests: > cpu: 300m > memory: 900Mi > solrReference: > basicAuthSecret: solr-cloud-k8s-oper-secret > cloud: > name: "apache-solr" > numThreads: 6 > ``` > > As you can see in the screenshot prometheus tries to connect to the pod on port 80 which is the wrong port. > >  > > Our workaround is to add a prometheus scraping annotation to the exporter pod: > > ``` > spec: > customKubeOptions: > podOptions: > annotations: > prometheus.io/port: "8080" > prometheus.io/path: /metrics > prometheus.io/scrape: "true" > prometheus.io/scheme: http > ``` even after adding pod annotation, prometheus still looking at port 80 on pod IP in my case. Something is seriously wrong with this.below is my exporter config. ``` apiVersion: solr.apache.org/v1beta1 kind: SolrPrometheusExporter metadata: name: solr-prom-exporter spec: customKubeOptions: podOptions: annotations: prometheus.io/port: "8080" prometheus.io/path: /metrics prometheus.io/scrape: "true" prometheus.io/scheme: http resources: requests: cpu: 300m memory: 900Mi solrReference: cloud: name: ["eks"](<img width="1898" alt="Screenshot 2022-12-01 at 3 54 04 PM" src="https://user-images.githubusercontent.com/24948667/205167285-48f6b9d7-4d70-4069-91b2-34125507e018.png">) numThreads: 6 ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org