Splunk Observability Cloud

Instrumenting Database Calls

rboyd9
New Member

Hi,

We have a custom python service being monitored by APM using the Opentelemetry agent. We have been successful in tracing spans related to our unsupported database driver (clickhouse-driver) but are wondering if there is some tag we can use to get APM to recognize these calls as database calls for the purposes of the "Database Query Performance" screen. I had hoped we could just fill out a bunch of the `db.*` semantic conventions but none have so far worked to get it to show as a database call (though the instrumented data do show up in the span details). Any tips?

Labels (1)
0 Karma

bishida
Splunk Employee
Splunk Employee

Hi,
It's possible that the database you're using isn't supported for Database Query Performance. I suggest checking the supported list here:
https://docs.splunk.com/observability/en/apm/db-query-perf/db-perf-reference.html#supported-dbs

Also, you could check your APM MetricSets in settings->APM MetricSets and make sure that Database Query Performance is enabled and active.

0 Karma

rboyd9
New Member

Correct, it is not a supported db driver, that is what I'm wondering here; what attributes does the agent send to get Observability Cloud to recognize it as database? For instance, I'm populating things like `db.name`, `db.statement`, and `db.system` and wondering if any further values could be populated (either `sf_` values or opentelemetry semantic conventions) to get this to work the way I want

0 Karma

bishida
Splunk Employee
Splunk Employee

I think the db.system would have to match one of the systems listed in the supported databases list. On the backend, there is likely an "allow list" that checks if the database system is supported for Query Performance before it will show up in the UI. What is the value of your db.system when you use this clickhouse driver?

0 Karma
Get Updates on the Splunk Community!

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Accelerating Observability as Code with the Splunk AI Assistant

We’ve seen in previous posts what Observability as Code (OaC) is and how it’s now essential for managing ...