Hitachi

Hitachi Microservices Platform - Paxos Commit Transaction Orchestrator ユーザーズガイド


3.5.8 PrometheusのHelmチャートのカスタマイズ

PrometheusのHelmチャートをカスタマイズするために、helm show valuesコマンドを実行して、PrometheusのHelmチャートパッケージファイル(prometheus-V.R.S.tgz)からデフォルト設定のvalues.yamlを抽出してください。コマンド例を次に示します。

helm show values ./prometheus-V.R.S.tgz > ./prometheus-values.yaml

注 V.R.Sは使用するHMP-PCTOのバージョンに合わせて読み替えてください。

7.3.7 Prometheus」に記載されているHelmチャートのvalues.yamlの各パラメタについて、必須パラメタの定義、および任意パラメタを必要に応じてデフォルト値から変更してください。

Helmチャートのカスタマイズ例を次に示します。

namespace: my-namespace
 
image: myregistry.example.com/myproject/prometheus:V.R.S3
imagePullSecrets:
- name: regcred
imagePullPolicy: IfNotPresent
 
requests:
  cpu: "500m"
  memory: "500Mi"
 
limits:
  cpu: "500m"
  memory: "500Mi"
 
http:
  port: 30014
 
scrapeNamespace:
  mediator: my-namespace
  sqlparticipant: my-namespace1
  entity: my-namespace
  orchestrator: my-namespace
  jaegercollector: my-namespace
 
scrapePort:
  mediator: 20554
  sqlparticipant: 205552
  entity: 8080
  orchestrator: 8080
 
terminationGracePeriodSeconds: 300
 
livenessProbe:
  initialDelaySeconds: 30
  periodSeconds: 15
  failureThreshold: 3
  timeoutSeconds: 10
  successThreshold: 1
readinessProbe:
  initialDelaySeconds: 30
  periodSeconds: 5
  failureThreshold: 3
  timeoutSeconds: 4
  successThreshold: 1
 
prometheus:
  scrape:
    interval: 15s
  storage:
    retentionTime: 7d
  remoteWrite:
    queue:
      capacity: "2500"
      maxShards: "200"
      maxSamplesPerSend: "500"
 
dependencyCheck:
  image: myregistry.example.com/myproject/dependency-checker:V.R.S3
  imagePullPolicy: IfNotPresent
  enabled: true
  retryCount: 30
  retryIntervalSeconds: 10
  connectTimeoutSeconds: 10
  readTimeoutSeconds: 10
注※1

SQL-Participantを使用する場合の例を記述しています。TCC-Participantを使用する場合は次の記述に置き換えてください。

tccparticipant: my-namespace

注※2

SQL-Participantを使用する場合の例を記述しています。TCC-Participantを使用する場合は次の記述に置き換えてください。

tccparticipant: 8080

注※3

V.R.Sは使用するHMP-PCTOとPrometheusのバージョンに合わせて読み替えてください。

この例は、次のとおりパラメタの値を指定しています。