I am using v17.x alloy agent with oracle exporter and unable to use the DB Connection string with SID, running in to issue : ORA-12514: TNS:listener does not currently know of service requested in connect descriptor" database=default
The connection string is working well with service name, but unable to work with SID, any suggestions/recommendation to use sid in connection string ? I am using this currently ( oracle://user:password@myhost:1521/service )
One thing worth checking: which Oracle driver is your exporter using, godror or go-ora? They handle connection strings differently, and support for full TNS descriptors may depend on the driver.
godror should support this approach, although I’m not entirely sure whether Alloy accepts the descriptor directly through its connection_string parameter.
By the way, I know oracledb_exporter quite well. In fact, it was the starting point for my own open-source project, Harry – Performance Scraper for Oracle Database:
Harry takes Oracle monitoring further by preserving historical performance data in PostgreSQL and visualizing it with Grafana.
Hope this helps! Let us know if the TNS descriptor works.