You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add support for Azure Key Vault and updated deps (#204)
* udpate readme with auth details
* update log message re auth
* update tpl:
* get username and password from az key vault
* update godror
* update toml
* update prometheus
* update oci sdk
* update docs to prepare for release
Signed-off-by: Mark Nelson <[email protected]>
>**Note:** If you are using `podman` you must specify the `:z` suffix on the volume mount so that the container will be able to access the files in the volume. For example: `-v ./wallet:/wallet:z`
426
428
@@ -607,6 +609,27 @@ The exporter will read the password from a secret stored in OCI Vault if you set
607
609
608
610
> Note that the process must be running under a user that has the OCI CLI installed and configured correctly to access the desired tenancy and region. The OCI Profile used is `DEFAULT`.
609
611
612
+
### Using Azure Vault
613
+
614
+
The exporter will read the database username and password from secrets stored in Azure Key Vault if you set these environment variables:
615
+
616
+
- `AZ_VAULT_ID` should be set to the ID of the Azure Key Vault that you wish to use
617
+
- `AZ_VAULT_USERNAME_SECRET` should be set to the name of the secret in the Azure Key Vault which contains the database username
618
+
- `AZ_VAULT_PASSWORD_SECRET` should be set to the name of the secret in the Azure Key Vault which contains the database password
619
+
620
+
#### Authentication
621
+
622
+
If you are running the exporter outside Azure, we recommend using [application service principal](https://learn.microsoft.com/en-us/azure/developer/go/sdk/authentication/authentication-on-premises-apps).
623
+
624
+
If you are running the exporter inside Azure, we recommend using a [managed identity](https://learn.microsoft.com/en-us/azure/developer/go/sdk/authentication/authentication-azure-hosted-apps).
625
+
626
+
You should set the following additional environment variables to allow the exporter to authenticate to Azure:
627
+
628
+
- `AZURE_TENANT_ID` should be set to your tenant ID
629
+
- `AZURE_CLIENT_ID` should be set to the client ID to authenticate to Azure
630
+
- `AZURE_CLIENT_SECRET` should be set to the client secret to authenticate to Azure
631
+
632
+
610
633
## Custom metrics
611
634
612
635
The exporter allows definition of arbitrary custom metrics in one or more TOML files. To specify this file to the
@@ -715,7 +738,7 @@ An exmaple of [custom metrics for Transacational Event Queues](./custom-metrics-
715
738
If you run the exporter as a container image and want to include your custom metrics in the image itself, you can use the following example `Dockerfile` to create a new image:
716
739
717
740
```Dockerfile
718
-
FROM container-registry.oracle.com/database/observability-exporter:1.5.5
741
+
FROM container-registry.oracle.com/database/observability-exporter:1.6.0
0 commit comments