Apache Web Serverレシーバー
Apache Web Serverレシーバーは、Apache Web Serverインスタンスから統計情報を取得します。
Apache Web Server レシーバは、server-status?auto endpointを利用し Apache Web Server インスタンスから統計情報を取得します。サポートされているパイプラインのタイプは metrics です。詳細については「パイプラインでデータを処理する」を参照してください。
前提条件
このレシーバーはApache Web Serverバージョン2.4以降をサポートしています。
サーバー統計を受信するには、サーバーの httpd.conf ファイルを設定して、ステータスのサポートを有効にする必要があります。詳細については、Apache の公式ドキュメントの https://httpd.apache.org/docs/2.4/mod/mod_status.html を参照してください。
はじめに
以下の手順に従って、コンポーネントの設定とアクティベーションを行ってください:
-
Splunk Distribution of the OpenTelemetry Collector をホストまたはコンテナプラットフォームにデプロイします:
-
次のセクションで説明するようにレシーバーを設定します。
-
Collector を再起動します。
サンプル構成
Apache Web Serverレシーバーをアクティブにするには設定ファイルのreceivers セクションに apache を追加します:
receivers:
apache:
endpoint: "http://localhost:8080/server-status?auto"
collection_interval: 10s
設定を完了するには、設定ファイルの service セクションの metrics パイプラインに、レシーバーを含めます:
service:
pipelines:
metrics:
receivers: [apache]
設定オプション
以下の設定が必要です:
-
endpoint。デフォルトでは"http://localhost:8080/server-status?auto"です。httpd ステータスのエンドポイント URL です。
以下の設定はオプションです:
設定
次の表は、Apache Web Serverレシーバーの設定オプションを示しています:
同梱
https://raw.githubusercontent.com/splunk/collector-config-tools/main/cfg-metadata/receiver/apache.yaml
メトリクス
以下のメトリクス、リソース属性、および属性が使用できます。
同梱
https://raw.githubusercontent.com/splunk/collector-config-tools/main/metric-metadata/apachereceiver.yaml
トラブルシューティング
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
-
Submit a case in the Splunk Support Portal.
-
Contact Splunk Support.
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.