Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

add TLS option from Prometheus community #243

Merged
merged 7 commits into from
Sep 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 15 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,8 @@ Usage of oracledb_exporter:
Number of maximum idle connections in the connection pool. (default "0")
--database.maxOpenConns string
Number of maximum open connections in the connection pool. (default "10")
--web.secured-metrics boolean
Expose metrics using https server. (default "false")
--web.ssl-server-cert string
Path to the PEM encoded certificate file.
--web.ssl-server-key string
Path to the PEM encoded key file.
--web.config
Specify which web configuration file to load
```

# Default metrics
Expand Down Expand Up @@ -510,3 +506,16 @@ The root cause is Oracle's reaction of quering ASM-related views without ASM use
```
$ find $ORACLE_BASE/diag/rdbms -name '*.tr[cm]' -mtime +14 -delete
```


## TLS and basic authentication

Apache Exporter supports TLS and basic authentication. This enables better
control of the various HTTP endpoints.

To use TLS and/or basic authentication, you need to pass a configuration file
using the `--web.config` parameter. The format of the file is described
[in the exporter-toolkit repository](https://github.com/prometheus/exporter-toolkit/blob/master/docs/web-configuration.md).

Note that the TLS and basic authentication settings affect all HTTP endpoints:
/metrics for scraping, /probe for probing, and the web UI.
15 changes: 6 additions & 9 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,12 @@ module github.com/iamseth/oracledb_exporter
go 1.14

require (
gopkg.in/alecthomas/kingpin.v2 v2.2.6
github.com/BurntSushi/toml v0.3.1
github.com/beorn7/perks v1.0.0
github.com/golang/protobuf v1.3.1
github.com/go-kit/kit v0.9.0
github.com/go-kit/log v0.1.0
github.com/mattn/go-oci8 v0.0.8
github.com/matttproud/golang_protobuf_extensions v1.0.1
github.com/prometheus/client_golang v1.0.0
github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90
github.com/prometheus/common v0.6.0
github.com/prometheus/procfs v0.0.2
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a
github.com/prometheus/client_golang v1.11.0
github.com/prometheus/common v0.29.0
github.com/prometheus/exporter-toolkit v0.7.1
gopkg.in/alecthomas/kingpin.v2 v2.2.6
)
Loading