Hitachi

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


3.7.10 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のバージョンに合わせて読み替えてください。

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

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

namespace: my-namespace
 
image: myregistry.example.com/myproject/prometheus:V.R.S※3
imagePullSecrets:
- name: regcred
imagePullPolicy: IfNotPresent
 
requests:
  cpu: "500m"
  memory: "500Mi"
 
limits:
  cpu: "500m"
  memory: "500Mi"
 
http:
  port: 30014
 
scrapeNamespace:
  mediator: my-namespace
  sqlparticipant: my-namespace※1
  entity: my-namespace
  orchestrator: my-namespace
  jaegercollector: my-namespace
 
scrapePort:
  mediator: 20554
  sqlparticipant: 20555※2
  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: "10000"
      maxShards: "50"
      maxSamplesPerSend: "2000"
 
dependencyCheck:
  image: myregistry.example.com/myproject/dependency-checker:V.R.S※3
  imagePullPolicy: IfNotPresent
  enabled: true
  retryCount: 30
  retryIntervalSeconds: 10
  connectTimeoutSeconds: 10
  readTimeoutSeconds: 10
注※1

SQL-Participantを使用する場合の例を記述しています。

  • TCC-Participantを使用する場合は、「tccparticipant: my-namespace」に置き換えてください。

  • TP1-Bridgeを使用する場合は、「tp1bridge: my-namespace」に置き換えてください。

注※2

SQL-Participantを使用する場合の例を記述しています。

  • TCC-Participantを使用する場合は、「tccparticipant: 8080」に置き換えてください。

  • TP1-Bridgeを使用する場合は、「tp1bridge: 20554」に置き換えてください。

注※3

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

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