Top
Enterprise Postgres 18 for Kubernetes User's Guide

E.3.1 Create a Service

To allow Prometheus to scrape metrics from Fluent Bit, you need to create a Service in OpenShift.

Sample YAML file for create a Service:

   apiVersion: v1
   kind: Service
   metadata:
     name: <service-name>
     namespace: <namespace>
     labels:
       app: <fluent-bit-pod-name>
       fepclustername: <fepcluster-name>
   spec:
     ports:
       - name: prometheus-metrics
         port: 80
         targetPort: 24231
         protocol: TCP
     selector:
       app: <fluent-bit-pod-name>