align monitoring-user grants across CDB/PDB/RDS/ADB - #1445
RamanaReddy8801 wants to merge 13 commits into
Conversation
…dd db.system.version
…ry diagnostics to postgresql-otel restart_nrdot
…le, mssql, postgresql and mysql nrdot recipes
|
Quick one on the MySQL RDS/Aurora recipes ( Checked the Is dropping TLS intentional for the RDS/Aurora variants too, or should |
|
On the preset consolidation — for Oracle specifically ( Is dropping host metrics from the Oracle presets an intentional, already-aligned scope decision? If so, all good — just want to make sure it's called out as a behavior change for existing installs rather than a quiet side effect of the preset cleanup. |
Summary
Aligns the Oracle, PostgreSQL, MySQL and MSSQL NRDOT recipes with New Relic's published OpenTelemetry database docs. It covers monitoring-user grants, collector config, the config presets, and multi-instance pipeline generation. A few grant and config additions go beyond the docs and were made on request; they are listed separately below.
Recipes are under
recipes/newrelic/infrastructure/nrdot/{oracle,postgresql,mysql,mssql}-otel/.All four databases
Presets renamed and reworked (Oracle, PostgreSQL, MySQL, MSSQL)
NRDOT configurationprompt is now1) Basic 2) Advanced. It wasDatabase only / Host + Databaseon Oracle andStandard / Full-featureon the others.hostmetrics,resource_detection, and thefilter/transformprocessors. The presets now differ only in the metrics list:collection_intervalis now a fixed15sin both presets. MSSQL Full-feature previously used30s.Multi-instance pipelines consolidated (Oracle, PostgreSQL, MSSQL)
metrics/<x>andlogs/<x>pipeline pairs. They now generate one metrics pipeline and one logs pipeline listing every instance's receiver, for examplereceivers: [nrpostgresql/db1, nrpostgresql/db2]. This matches the documented multi-receiver pattern.Oracle
Grants, verified against the docs.newrelic.com host-cdb, host-pdb, rds and adb pages
V_$SQL_PLANis replaced byV_$SQL_PLAN_STATISTICS_ALLinoci-linux(CDB and PDB paths) and the RDS recipes. The plain view lacks the execution statistics the receiver needs.oci-linuxCDB path addsV_$PDBSandCDB_SERVICES, which the docs mark mandatory. It also adds the optionalV_$ASM_DISKGROUP_STATandV_$ASM_DISK_STAT.oci-linuxPDB path addsCDB_SERVICES.Grants beyond the docs, added on request
oci-linuxCDB path:CDB_DATA_FILES,CDB_PROCEDURESandCDB_OBJECTS.V_$SQLSTATSis removed, andV_$PROCESSandV_$TRANSACTIONare added.V_$PROCESSandV_$TRANSACTIONare added. The rest already matched the docs.Collector config
resource/add_event_nameprocessor is removed from all recipes and from both pipelines. The receiver already emitsserver.addressandserver.port.resource_attributesoverrides are replaced by a singleoracle.db.editionoverride.db.server.top_procedureanddb.server.query_planevents are added, along with atop_procedure_collectionblock (1000 samples, top 250, 60s).otlphttptootlp(gRPC) and add the missing:4317toOTLP_ENDPOINT.v$sysmetricmetrics are now enabled.PostgreSQL
MySQL
Receiver (both presets)
Collector config, Advanced only: now follows the documented advanced-config structure
the otlp pipelines are still written once.
Collector config, Basic: unchanged structure
nrdot-config-samples/mysql-otel is regenerated from the updated recipes.
MSSQL (all 8 recipes)
top_query_collectionandquery_sample_collectionvalues are corrected (now 1000 samples and top 250).collect_full_query_textandallowed_comment_keysare moved to the correct nesting.db.server.query_plananddb.server.top_procedureevents and atop_procedure_collectionblock are added.resource_attributesblock is added withdb.system.versionandsqlserver.db.edition.resource/sqlserverprocessor and thebatchprocessor are removed.otlphttptootlp(gRPC,:4317), and asending_queueblock is added.nrsqlserver,metrics,logs). The old Full-feature special case is gone, because the generic host passthrough pipelines it collided with are removed.Known issues before merge
TEMPORARY DIAGNOSTIC (remove before merge)block inrestart_nrdot. Remove it before merging, or state here that it is intentional.