19 TimesTen Kubernetesオペレータ・メトリック

いくつかのTimesTen Kubernetesオペレータ(TimesTenオペレータ)メトリックがあり、Prometheusまたはその他のスクレイパーによって公開できます。これらのメトリックには、TimesTenオペレータ機能に関する情報、および管理対象のTimesTenClassicオブジェクトとTimesTenScaleoutオブジェクトの全体的なステータスが含まれます。

次の表に、TimesTenオペレータ・メトリックの詳細を示します。

表19-1 TimesTenオペレータ・メトリック

メトリック タイプ 説明

timesten_classic_state_normal

ゲージ

Normal状態のTimesTenClassicオブジェクトの数。

timesten_classic_state_not_normal

ゲージ

NormalまたはInitializing以外の状態のTimesTenClassicオブジェクトの数。

timesten_classic_state

ゲージ

各TimesTenClassicオブジェクトの状態。特定の状態は、stateラベルでレポートされます。

timesten_scaleout_state_normal

ゲージ

Normal状態のTimesTenScaleoutオブジェクトの数。

timesten_scaleout_state_not_normal

ゲージ

NormalまたはInitializing以外の状態のTimesTenScaleoutオブジェクトの数。

timesten_scaleout_state

ゲージ

各TimesTenScaleoutオブジェクトの状態。特定の状態は、stateラベルでレポートされます。

各メトリックには、次のラベルがあります。
  • namespace: メトリックが示すTimesTenオブジェクトのネームスペース。

  • name: メトリックが示すTimesTenオブジェクトの名前。

また、二次的な重要度の他のいくつかのラベルがあります。
  • container: メトリックを生成したコンテナの名前。たとえば、timesten-operatorです。

  • endpoint: メトリックの取得元のエンドポイントの名前。たとえば、metricsです。

  • instance: メトリックを生成したTimesTenオペレータ・ポッドのIPアドレスおよびポート。たとえば、10.244.1.111:8080です

  • job: ジョブの名前。たとえば、timesten-operatorです。

  • pod: メトリックを生成したTimesTenオペレータ・ポッドの名前。たとえば、timesten-operator-5f4f4c69f6-z9h2kです。

  • service。サービスの名前。たとえば、timesten-operatorです。

次に、サンプルのtimesten_classic_state_normalメトリックの例を示します。
timesten_classic_state_normal{container="timesten-operator", 
endpoint="metrics", instance="10.244.1.111:8080", job="timesten-operator", 
name="sample", namespace="mynamespace", pod="timesten-operator-5f4f4c69f6-z9h2k", 
service="timesten-operator"}

TimesTenClassicオブジェクト(この場合はsample)が正常かどうかに応じて、メトリックの値は1または0になります。

次に、サンプルのtimesten_classic_stateメトリックの例を示します。
timesten_classic_state{container="timesten-operator", 
endpoint="metrics", instance="10.244.1.111:8080", job="timesten-operator", 
name="sample", namespace="mynamespace", pod="timesten-operator-5f4f4c69f6-z9h2k", 
service="timesten-operator", state="Normal"}

TimesTenClassicオブジェクト(この場合はsample)がNormal状態であるかどうかに応じて、メトリックの値は1または0になります。

TimesTenオペレータがメトリックを公開する方法の詳細は、「TimesTen Kubernetesオペレータからのメトリックの公開」を参照してください。

ノート:

TimesTenオペレータは、他の多くの追加メトリックを自動的に公開します。これらの追加メトリックがリリースごとに存在するかどうかは保証できません。また、これらのメトリックは、特にTimesTenオペレータに関連するものでも有用でもない場合があります。