Skip to content

insights: modify promql query to include pg data for codeinsights-db

Warren Gifford requested to merge insights/pg-stat-promql-query into main

Created by: leonore

closes #34187 (closed), which describes the issue in detail.

The issue is fixed by hacking the query a bit and adding an OR with a promql query that will get the pg metrics specifically for codeinsights-db.

Test plan

this shows it working on dogfood

Locally, the codeinsights-db is integrated with the main db so this might not work- though from my local testing the metrics don't work the same, as I can only see postgres_exporter connections. The change didn't break anything though.

before: image

after: image

Merge request reports

Loading