Skip to content

Commit bd81088

Browse files
readme updates (#3)
* add list of default metrics in readme * readme updates
1 parent 96f81f2 commit bd81088

File tree

2 files changed

+20
-17
lines changed

2 files changed

+20
-17
lines changed

README.md

Lines changed: 19 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -33,32 +33,35 @@ Docker image can be pushed to $DOCKER_REGISTRY using the following.
3333

3434
`./push.sh`
3535

36-
### Running
36+
### Run
3737

3838
Ensure the environment variable DATA_SOURCE_NAME (and TNS_ADMIN if appropriate) is set correctly before starting.
39-
DATA_SOURCE_NAME should be in Oracle EZCONNECT format:
40-
<https://docs.oracle.com/en/database/oracle/oracle-database/19/netag/configuring-naming-methods.html#GUID-B0437826-43C1-49EC-A94D-B650B6A4A6EE>
41-
19c Oracle Client supports enhanced EZCONNECT, you are able to failover to standby DB or gather some heavy metrics from active standby DB and specify some additional parameters. Within 19c client you are able to connect 12c primary/standby DB too :)
4239

4340
For Example:
4441

4542
```bash
46-
# export Oracle location:
47-
export DATA_SOURCE_NAME=system/password@oracle-sid
48-
# or using a complete url:
49-
export DATA_SOURCE_NAME=user/password@//myhost:1521/service
50-
# 19c client for primary/standby configuration
51-
export DATA_SOURCE_NAME=user/password@//primaryhost:1521,standbyhost:1521/service
52-
# 19c client for primary/standby configuration with options
53-
export DATA_SOURCE_NAME=user/password@//primaryhost:1521,standbyhost:1521/service?connect_timeout=5&transport_connect_timeout=3&retry_count=3
54-
# 19c client for ASM instance connection (requires SYSDBA)
55-
export DATA_SOURCE_NAME=user/password@//primaryhost:1521,standbyhost:1521/+ASM?as=sysdba
56-
# Then run the exporter
57-
/path/to/binary/oracle-db-monitoring-exporter --log.level error --web.listen-address 0.0.0.0:9161
43+
export DATA_SOURCE_NAME="%USER%/$(dbpassword)@%PDB_NAME%_tp"
44+
```
45+
46+
Kubernetes Secrets, etc. an of course be used to store password.
47+
48+
OCI Vault support for storing/accessing password values is built into exporters and is enabled by simply setting the OCI_REGION and VAULT_SECRET_OCID variables.
49+
50+
For Example:
51+
52+
```bash
53+
export OCI_REGION="us-ashburn-1"
54+
export VAULT_SECRET_OCID="ocid..."
5855
```
5956

6057
The only other required environment variable is DEFAULT_METRICS value which is set to the location of the config file.
6158

59+
For Example:
60+
61+
```bash
62+
export DEFAULT_METRICS="/msdataworkshop/observability/db-metrics-%EXPORTER_NAME%-exporter-metrics.toml"
63+
```
64+
6265
Run using Java:
6366

6467
`java -jar target/observability-exporter-0.1.0.jar`

examples/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Observability Exporter Example
22

33

4-
Please refer to the Unified Observability in Grafana with converged Oracle Database Workshop at http://bit.ly/unifiedobservability and it's corresponding repos https://github.com/oracle/microservices-datadriven/tree/main/grabdish/observability for complete examples.
4+
Please refer to the Unified Observability in Grafana with converged Oracle Database Workshop at http://bit.ly/unifiedobservability and it's corresponding repos https://github.com/oracle/microservices-datadriven/tree/main/grabdish/observability/db-metrics-exporter for complete examples.
55

66
More examples will be provided here in the near future.
77

0 commit comments

Comments
 (0)