oracle-db-appdev-monitoring icon indicating copy to clipboard operation
oracle-db-appdev-monitoring copied to clipboard

Environment variables as labels ?

Open agkcn opened this issue 10 months ago • 1 comments

Hi,

Great tool !!

I had few questions -

  1. Is there a way to add additional labels that are not the column names in the table ? for example, can I add $HOSTNAME, $ENVIRONMENT as labels which could be exported as environment variable on the host?

  2. do the meters/metric name always have to start with oracledb ? Can we rename that ?

  3. Is it possible to query an external Api for metadata and merge with the SQL query to add additional labels ?

agkcn avatar Feb 06 '25 06:02 agkcn

Hi @agkcn thanks for your feebback and questions, let us take a look and get back to you on these soon!

markxnelson avatar Feb 06 '25 19:02 markxnelson

In the upcoming 2.0.3 release, it will be possible to add custom labels per database. You may use environment variables for the values

databases:
  mydb:
    labels:
      hostname: $HOSTNAME
      environment: $ENVIRONMENT

anders-swanson avatar Aug 19 '25 18:08 anders-swanson