Docs » Splunk Observability Cloud でサポートされているインテグレーション » データベースのアプリケーション・レシーバーを設定する » SAP HANA

SAP HANA 🔗

Splunk Distribution of OpenTelemetry Collectorは、Smart Agent レシーバーと hana モニタータイプを使用して、SAP Hanaデータベースからメトリクスを取得します。

このインテグレーションはKubernetes、Linux、Windowsで利用できます。

メリット 🔗

インテグレーションを設定すると、これらの機能にアクセスできるようになります:

前提条件 🔗

モニタリングユーザーは関連するモニタリングビューへの SELECT アクセスを必要とします。SAP HANA モニタータイプを設定する前に、次の SQL スクリプトを実行して監視ロールを作成し、監視ユーザーに適用します:

--Create the user
CREATE RESTRICTED USER otel_monitoring_user PASSWORD <password>;

--Enable user login
ALTER USER otel_monitoring_user ENABLE CLIENT CONNECT;

--Create the monitoring role
CREATE ROLE OTEL_MONITORING;

--Grant permissions to the relevant views
GRANT CATALOG READ TO OTEL_MONITORING;
GRANT SELECT ON SYS.M_BACKUP_CATALOG TO OTEL_MONITORING;
GRANT SELECT ON SYS.M_BLOCKED_TRANSACTIONS TO OTEL_MONITORING;
GRANT SELECT ON SYS.M_CONNECTIONS TO OTEL_MONITORING;
GRANT SELECT ON SYS.M_CS_ALL_COLUMNS TO OTEL_MONITORING;
GRANT SELECT ON SYS.M_CS_TABLES TO OTEL_MONITORING;
GRANT SELECT ON SYS.M_DATABASE TO OTEL_MONITORING;
GRANT SELECT ON SYS.M_DISKS TO OTEL_MONITORING;
GRANT SELECT ON SYS.M_HOST_RESOURCE_UTILIZATION TO OTEL_MONITORING;
GRANT SELECT ON SYS.M_LICENSES TO OTEL_MONITORING;
GRANT SELECT ON SYS.M_RS_TABLES TO OTEL_MONITORING;
GRANT SELECT ON SYS.M_SERVICE_COMPONENT_MEMORY TO OTEL_MONITORING;
GRANT SELECT ON SYS.M_SERVICE_MEMORY TO OTEL_MONITORING;
GRANT SELECT ON SYS.M_SERVICE_REPLICATION TO OTEL_MONITORING;
GRANT SELECT ON SYS.M_SERVICE_STATISTICS TO OTEL_MONITORING;
GRANT SELECT ON SYS.M_SERVICE_THREADS TO OTEL_MONITORING;
GRANT SELECT ON SYS.M_SERVICES TO OTEL_MONITORING;
GRANT SELECT ON SYS.M_VOLUME_IO_TOTAL_STATISTICS TO OTEL_MONITORING;
GRANT SELECT ON SYS.M_WORKLOAD TO OTEL_MONITORING;
GRANT SELECT ON _SYS_STATISTICS.STATISTICS_CURRENT_ALERTS TO OTEL_MONITORING;

--Add the OTEL_MONITOR role to the monitoring user
GRANT OTEL_MONITORING TO otel_monitoring_user;

インストール 🔗

このインテグレーションを導入するには、以下の手順に従ってください:

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

  2. [設定] セクションの説明に従ってインテグレーションを設定します。

  3. Splunk Distribution of OpenTelemetry Collector を再起動します。

設定 🔗

Smart Agent モニターとCollector のインテグレーションを使用するには、以下の手順に従います:

  1. Smart Agent レシーバーを設定ファイルに含めます。

  2. レシーバーセクションおよびパイプラインセクションの両方で、Collector 構成にモニタータイプを追加します。

🔗

このインテグレーションを有効にするには、Collector構成に以下を追加します:

receivers:
  smartagent/hana:
    type: hana
    ... # Additional config

その他の設定オプションを参照してください:

receivers:
  smartagent/hana:
    type: hana
    host: myhost.hana.us.hanacloud.ondemand.com
    port: <sap_hana_port>
    username: <username>
    password: <password>

次に、設定ファイルの service.pipelines.metrics.receivers セクションにモニターを追加します:

service:
  pipelines:
    metrics:
      receivers: [smartagent/hana]

コンフィギュレーション設定 🔗

次の表に、このインテグレーションの設定オプションを示します:

オプション

必須

タイプ

説明

tlsServerName

いいえ

string

ServerName を使用してホスト名を検証します。このオプションのデフォルトは

Host です (指定されていない場合)。

insecureSkipVerify

いいえ

bool

クライアントがサーバーの証明書を検証するかどうかを制御します。

チェーンとホスト名を指定します。デフォルト値は false です。

rootCAFiles

いいえ

list of strings

ルート証明書へのパス(オプション)

メトリクス 🔗

これらは、このインテグレーションで利用可能なメトリクスとディメンションです:

NameCategoryDescriptionType
sap.hana.connection.countDefault

Number of connections

gauge
sap.hana.connection.message.received.countDefault

Total count of messages received

gauge
sap.hana.connection.message.received.sizeDefault

Total size of messages received

gauge
sap.hana.connection.message.sent.countDefault

Total count of messages sent

gauge
sap.hana.connection.message.sent.sizeDefault

Total size of messages sent

gauge
sap.hana.connection.record.affectedDefault

The sum of the record count affected by DML/DDL statements

gauge
sap.hana.connection.record.fetchedDefault

Number of records fetched by select statements

gauge
sap.hana.disk.total_sizeDefault

Total device size returned by the operating system in bytes

gauge
sap.hana.disk.used_sizeDefault

Size of used disk space in bytes

gauge
sap.hana.host.cpu.idleDefault

CPU idle time in milliseconds

counter
sap.hana.host.cpu.systemDefault

CPU time spent in kernel mode

counter
sap.hana.host.cpu.userDefault

CPU time spent in user mode in milliseconds

counter
sap.hana.host.cpu.wioDefault

CPU time spent in wait IO (Linux only, Windows always 0) in milliseconds

counter
sap.hana.host.file.openDefault

Number of open files

gauge
sap.hana.host.memory.allocation_limitDefault

Allocation limit for all processes in bytes

gauge
sap.hana.host.memory.codeDefault

Code size, including shared libraries of instance processes in bytes

gauge
sap.hana.host.memory.physical.freeDefault

Free physical memory on the host in bytes

gauge
sap.hana.host.memory.physical.usedDefault

Used physical memory on the host in bytes

gauge
sap.hana.host.memory.sharedDefault

Shared memory size of instance processes in bytes

gauge
sap.hana.host.memory.swap.freeDefault

Free swap memory on the host in bytes

gauge
sap.hana.host.memory.swap.usedDefault

Used swap memory on the host in bytes

gauge
sap.hana.host.memory.total_allocatedDefault

Size of the memory pool for all instance processes in bytes

gauge
sap.hana.host.memory.total_usedDefault

Amount of memory from the memory pool that is currently being used by SAP HANA processes in bytes

gauge
sap.hana.io.append.countDefault

Number of appends

counter
sap.hana.io.read.async.countDefault

Number of triggered asynchronous reads

counter
sap.hana.io.read.countDefault

Number of synchronous reads

counter
sap.hana.io.read.failedDefault

Number of failed reads

counter
sap.hana.io.read.sizeDefault

Size of read data in bytes

counter
sap.hana.io.read.timeDefault

Total read time in microseconds

counter
sap.hana.io.total.timeDefault

Total write time in microseconds

counter
sap.hana.io.write.async.countDefault

Number of triggered asynchronous writes

counter
sap.hana.io.write.countDefault

Number of synchronous writes

counter
sap.hana.io.write.failedDefault

Number of failed writes

counter
sap.hana.io.write.sizeDefault

Size of written data in bytes

counter
sap.hana.io.write.timeDefault

Total write time in microseconds

counter
sap.hana.service.component.memory.usedDefault

Amount of memory from the memory pool currently in use by component

gauge
sap.hana.service.cpu.utilizationDefault

CPU utilization in percent

gauge
sap.hana.service.file.openDefault

Number of open files

gauge
sap.hana.service.memory.allocation_limitDefault

Maximum configured memory pool size in bytes

gauge
sap.hana.service.memory.allocation_limit_effectiveDefault

Effective maximum memory pool size in bytes, considering the pool sizes of other processes

gauge
sap.hana.service.memory.codeDefault

Code size, including shared libraries in bytes

gauge
sap.hana.service.memory.heap.allocatedDefault

Heap part of the memory pool in bytes

gauge
sap.hana.service.memory.heap.usedDefault

Amount of pool heap memory in use in bytes

gauge
sap.hana.service.memory.logicalDefault

Virtual memory size in bytes

gauge
sap.hana.service.memory.physicalDefault

Physical memory size in bytes

gauge
sap.hana.service.memory.shared.allocatedDefault

Shared memory part of the memory pool in bytes

gauge
sap.hana.service.memory.shared.usedDefault

Amount of shared memory pool in use in bytes

gauge
sap.hana.service.memory.stackDefault

Stack size

gauge
sap.hana.service.memory.total_usedDefault

Amount of memory in use from the memory pool

gauge
sap.hana.statement.active.countDefault

Number of active statements

gauge
sap.hana.statement.active.execution.memory.maxDefault

Max memory size used during execution

gauge
sap.hana.statement.active.execution.memory.meanDefault

Average memory size used during execution

gauge
sap.hana.statement.active.execution.memory.sumCustom

Sum of memory size used during execution

gauge
sap.hana.statement.active.execution.sumCustom

Sum of statement execution time

gauge
sap.hana.statement.active.execution.time.maxDefault

Maximum time of statement execution

gauge
sap.hana.statement.active.execution.time.meanDefault

Average time of statement execution

gauge
sap.hana.statement.expensive.countDefault

Number of occurances of the statement

counter
sap.hana.statement.expensive.cpu_timeDefault

CPU time consumed to compute the statement in microseconds

counter
sap.hana.statement.expensive.durationDefault

Time elapsed during execution of the statement in microseconds

counter
sap.hana.statement.expensive.errorsDefault

Number of errors

counter
sap.hana.statement.expensive.lock_wait_durationDefault

Accumulated lock wait duration

counter
sap.hana.statement.expensive.recordsDefault

Number of records

counter
sap.hana.table.record.countDefault

Number of records in the table

gauge
sap.hana.table.sizeDefault

Allocated memory size for fixed-size and variable-size part

gauge

dimensions

NameDescription
app_userApplication user name
component_nameLogical component
connection_statusConnection status (RUNNING, IDLE, QUEUING)
db_userUser name
hana_hostSAP Hana host name
operationType of operation (prepare, execute, fetch, or close)
schema_nameSchema name
service_nameService name
statement_hashUnique identifier for an SQL string.
table_nameTable name
table_typeType of the table (ROW, COLUMN, COLLECTION)
typeType of contained files
usage_typeResource type like LOG, DATA, TRACE, LOG_BACKUP and DATA_BACKUP

備考 🔗

  • Splunk Observability Cloudで利用可能なメトリクスタイプの詳細は、メトリクスタイプ を参照してください。

  • ホストベースのサブスクリプションプランでは、デフォルトのメトリクスは、ホスト、コンテナ、バンドルメトリクスなど、Splunk Observability Cloudのホストベースのサブスクリプションに含まれるメトリクスです。カスタムメトリクスはデフォルトでは提供されず、料金が発生する場合があります。詳細については、メトリクスカテゴリ を参照してください。

  • MTSベースのサブスクリプションプランでは、すべてのメトリクスがカスタムです。

  • メトリクスを追加するには、その他のメトリクスの追加extraMetrics の設定方法を参照してください。

トラブルシューティング 🔗

Splunk Observability Cloudをご利用のお客様で、Splunk Observability Cloudでデータを確認できない場合は、以下の方法でサポートを受けることができます。

Splunk Observability Cloudをご利用のお客様

見込み客および無料トライアルユーザー様

  • Splunk Answers のコミュニティサポートで質問し、回答を得る

  • Join the Splunk #observability user group Slack channel to communicate with customers, partners, and Splunk employees worldwide. To join, see Chat groups in the Get Started with Splunk Community manual.

このページは 2025年02月11日 に最終更新されました。