シンプルな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 エントリーを追加します:

YAML
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 パイプラインにレシーバーを含めます。例:

YAML
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 )

ヒストグラム

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

概要

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

トラブルシューティング

If you are a Splunk Observability Cloud customer and are not able to see your data in Splunk Observability Cloud, you can get help in the following ways.

Available to Splunk Observability Cloud customers

Available to prospective customers and free trial users

  • Ask a question and get answers through community support at Splunk Answers.

  • Join the Splunk community #observability Slack channel to communicate with customers, partners, and Splunk employees worldwide.