You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by GitBox <gi...@apache.org> on 2022/03/31 18:45:25 UTC

[GitHub] [solr-operator] johgoe opened a new issue #427: Problems with istio and prometheus

johgoe opened a new issue #427:
URL: https://github.com/apache/solr-operator/issues/427


   Seems that my cluster runs into https://github.com/prometheus/prometheus/issues/10213
   
   the current port configuration of search-prom-exporter-solr-metrics service looks like
   ```
     ports:
     - name: solr-metrics
       port: 80
       protocol: TCP
       targetPort: 8080
   ```
   
   but istio requires the http protocol to be definied by port name prefix
   
   ```
     ports:
     - name: http-solr-metrics
       port: 80
       protocol: TCP
       targetPort: 8080
   ```
   
   or by appProtocol
   ```
     ports:
     - name: http-solr-metrics
       port: 80
       protocol: TCP
       targetPort: 8080
       appProtocol: http
   ```
   
   I would prefer a solution which is able to add an app protocol
   
   My current SolrPrometheusExporter looks like this
   
   ```
   apiVersion: solr.apache.org/v1beta1
   kind: SolrPrometheusExporter
   metadata:
     name: search-prom-exporter
   spec:
     customKubeOptions:
       podOptions:
         resources:
           requests:
             cpu: 300m
             memory: 900Mi
     solrReference:
       cloud:
         name: "search"
     numThreads: 6
   
   ```
   
   My current serviceMonitor looks like this
   
   ```
   apiVersion: monitoring.coreos.com/v1
   kind: ServiceMonitor
   metadata:
     labels:
       control-plane: controller-manager
     name: controller-manager-metrics-monitor
   spec:
     selector:
       matchLabels:
         solr-prometheus-exporter: search-prom-exporter
     namespaceSelector:
       matchNames:
         - search
     endpoints:
       - port: solr-metrics
         scheme: https
         tlsConfig:
           caFile: /etc/prometheus/secrets/istio.default/root-cert.pem
           certFile: /etc/prometheus/secrets/istio.default/cert-chain.pem
           insecureSkipVerify: true
           keyFile: /etc/prometheus/secrets/istio.default/key.pem
         interval: 10s
         scrapeTimeout: 10s
   
   ```


-- 
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-unsubscribe@solr.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org