ページの先頭行へ戻る
Enterprise Postgres 17 オペレーターユーザーズガイド

E.3.1 サービスの作成

PrometheusがFluent Bitからメトリクスを抽出できるようにするには、OpenShiftでサービスを作成する必要があります。

サービスを作成するためのYAMLファイルのサンプル

   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>