Splunk Observability Cloud

Database not showing under Databse Monitoring Overview

Arun2
Engager

Hi team,

 

I have configured Otel collector on MS SQL Server with host metrics and SQL Metrics. Host metrics started populating under Infrastructure but DB metrics are not showing under Database Monitoring Overview page.

 

In the server event viewer logs, I could see SQL metrics are beings crapped and exported without any error. Not sure if I am missing anything or any config required from Splunk end.

 

I am using Windows based authentication, so used this string in the collector 

datasource: "sqlserver://localhost:1433?encrypt=disable&integratedSecurity=true" . It is a test server built for this.

 

Kindly help on this.

Labels (1)
0 Karma

bishida
Splunk Employee
Splunk Employee

Here are some ideas for troubleshooting dbmon.

- Check service account has all required permissions. https://help.splunk.com/en/splunk-observability-cloud/manage-data/splunk-distribution-of-the-opentel...

- Check your sqlserver receiver has config for both metrics and events

- Check you've created the exporter correctly

- Check that you've configured both metrics and logs pipelines correctly, ensuring they have identical processors listed.

End results should look something like this:

# sql server receiver for dbmonreceivers:  sqlserver:    collection_interval: 10s    username: otel-user    password: otel-user-password    server: your-server-name    port: 1433    resource_attributes:      sqlserver.computer.name:        enabled: true      sqlserver.instance.name:        enabled: true    events:      db.server.query_sample:        enabled: true      db.server.top_query:        enabled: true    metrics:
      
sqlserver.database.count:        enabled: true
      sqlserver.database.io:
        enabled: true      sqlserver.database.latency:        enabled: true      sqlserver.database.operations:        enabled: true

# create exporterexporters:  otlp_http/dbmon:    headers:      X-SF-Token: ${SPLUNK_ACCESS_TOKEN}      X-splunk-instrumentation-library: dbmon    logs_endpoint: ${SPLUNK_INGEST_URL}/v3/event    sending_queue:      batch:        flush_timeout: 15s        max_size: 10485760        sizer: bytes

# set pipelines. ensure processors are identicalservice:  pipelines:    metrics/dbmon:      receivers:        - sqlserver      processors:        - memory_limiter        - batch      exporters:        - signalfx    logs/dbmon:      receivers:        - sqlserver      processors:        - memory_limiter        - batch      exporters:        - otlp_http/dbmon
0 Karma

Arun2
Engager

@bishida , Thanks for you timeon checking this and updating. I have used the similar configuration only as given below.

 

But the problem is data is coming to Splunk Observability Cloud under Infrastructure Overview , also DB metric if I search under Metric Finder able to find.

 

But want to understand how to view the data under Database Monitoring Overview page.

I am using Windpws based authentication with Local user same as Otel collector running, hence used this string in the configuration "datasource: "sqlserver://localhost:1433/MSSQLSERVER?trusted_connection=true&encrypt=disable""

0 Karma

bishida
Splunk Employee
Splunk Employee

If you don't see anything in APM -> Database Monitoring Overview, then you must not be getting "events" data yet. Make sure you have the "events" configured in your receiver and make sure you have a dedicated "logs" pipeline for those events. If there's a problem with your connection string, you can try to troubleshoot log messages. If you have your Windows event logs flowing to Splunk, just search them there. If not, try the event viewer in Windows and filter by "collector" application logs.

Arun2
Engager

Hi,

 

Thanks again for the update. It worked this time able to view the data in APM - > DB Overview page

 

I belive these are thec hanges I have made, so otlp_http/dbmon this exporter is specifically for Events? And DB is viewable in DBM only if Events are forwarded? COuld you explain me or share me documentation to understand the concept behind this. Also the reason for creating pipelines with this naming metrics/dbmon & logs/dbmon

 

# create exporter
exporters:
  otlp_http/dbmon:
    headers:
      X-SF-Token: ${SPLUNK_ACCESS_TOKEN}
      X-splunk-instrumentation-library: dbmon
    logs_endpoint: ${SPLUNK_INGEST_URL}/v3/event
    sending_queue:
      batch:
        flush_timeout: 15s
        max_size: 10485760
        sizer: bytes

Updated the Pipelines

# set pipelines. ensure processors are identical
service:
  pipelines:
    metrics/dbmon:
      receivers:
        - sqlserver
      processors:
        - memory_limiter
        - batch
      exporters:
        - signalfx
    logs/dbmon:
      receivers:
        - sqlserver
      processors:
        - memory_limiter
        - batch
      exporters:
        - otlp_http/dbmon

0 Karma

bishida
Splunk Employee
Splunk Employee

Hi,

Glad it's working!

Yes, here's a summary of what's going on here. Dbmon goes above and beyond of what is done traditionally with the sqlserver OTel receiver that only collects metrics. By adding the "logs" pipeline and the "events (logs)" collection in the receiver, we're able to collect specific SQL queries and associate them with Explain Plans and trace correlation. So what you've been able to do is collect  additional telemetry beyond just the db metrics.

The SQL queries are formatted more like logs rather than metric time series, so we have 2 different export paths for the 2 different types of data. The additional exporter you configured handles the "log formatted" data (the SQL queries). The naming convention you see in the pipelines is essentially just for clarity and helps keep it separate from your existing pipelines.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Announcing Modern Navigation: A New Era of Splunk User Experience

We are excited to introduce the Modern Navigation feature in the Splunk Platform, available to both cloud and ...

Kubernetes Alerts That Work Out of the Box with AutoDetect detectors in Splunk ...

A deployment rolls out slowly, one pod sits not ready for a few minutes, and whoever is on call gets an alert ...

Observability at Your Fingertips Directly From Splunk Platform—for Free

At .conf, we announced our roadmap to bring observability foundations to Splunk Platform. Bringing metrics and ...