シンプルなPrometheusレシーバー

Simple Prometheus レシーバーは、Splunk Distribution of OpenTelemetry Collector が Prometheus フォーマットと互換性のある単一のソースからメトリクスを収集できるようにします。

Simple Prometheus は Prometheus レシーバーのラッパーで、Splunk Distribution of OpenTelemetry Collector が単一のテレメトリソースから Prometheus フォーマットでメトリクスを収集できるようにします。サポートされているパイプラインのタイプは metrics です。

大規模な設定を必要とする複数のターゲットから Prometheus メトリクスをスクレイピングするには、Prometheus レシーバーを使用します。詳細については、「Prometheus レシーバー」 を参照してください。

メリット

Simple Prometheus レシーバーは、Prometheus レシーバーよりも必要な設定が少なくなります。Prometheus 設定を使用しなくても、単一の Prometheus エンドポイントの設定を定義できます。レシーバーは、メトリクス名、値、タイムスタンプ、ラベルを保持しながら、Prometheus メトリクスを OpenTelemetry メトリクスに変換します。

はじめに

以下の手順に従って、コンポーネントの設定とアクティベーションを行ってください:

  1. Splunk Distribution of the OpenTelemetry Collector をホストまたはコンテナプラットフォームにデプロイします:

  2. 次のセクションで説明するように、Simple Prometheus レシーバーを設定します。

  3. Collector を再起動します。

サンプル構成

追加の Prometheus レシーバーをアクティブにするには、次の例のように Collector 設定ファイルの receivers セクションに新しい prometheus_simple エントリーを追加します:

receivers:
  prometheus_simple/endpointname:
    collection_interval: 10s
    use_service_account: true
    endpoint: "172.17.0.5:9153"
    tls:
      ca_file: "/path/to/ca"
      cert_file: "/path/to/cert"
      key_file: "/path/to/key"
      insecure_skip_verify: true

設定を完了するには、構成ファイルの service セクションの metrics パイプラインにレシーバーを含めます。例:

service:
  pipelines:
    metrics:
      receivers:
        - prometheus_simple/endpointname
注意: 設定から prometheus/internal レシーバーを削除しないでください。内部メトリクスは Splunk Distribution of OpenTelemetry Collector のデフォルトダッシュボードにフィードされます。

設定

以下の表は、Prometheusレシーバーの設定オプションを示しています:

同梱

https://raw.githubusercontent.com/splunk/collector-config-tools/main/cfg-metadata/receiver/prometheus_simple.yaml

メトリクス

Simple Prometheus レシーバーは、以下の変換ルールに従って Prometheus メトリクスを OpenTelemetry メトリクスに変換します:

Prometheusのメトリクスタイプ

OpenTelemetryのメトリクスタイプ

カウンター(単調)

合計 (データ型 double )

不明

ゲージ (データ型 double )

ヒストグラム

ヒストグラム(累積分布)

概要

サマリー(パーセンタイル)

トラブルシューティング

__ ___ ___ _ ______ _____________ _____ ________ ___ ___ ___ ____ __ ___ ____ ____ __ ______ _____________ ______ ___ ___ ___ ____ __ ___ _________ _____

_________ __ ______ _____________ _____ _________

_________ __ ___________ _________ ___ ____ _____ _____

  • ___ _ ________ ___ ___ _______ _______ _________ _______ __ ______ ________

  • ____ ___ ______ ______________ ____ _____ _____ _______ __ ___________ ____ __________ _________ ___ ______ _________ __________ __ _____ ___ ____ _______