Skip to content

Commit 4d55afe

Browse files
committed
secure stuff log in debug lvl + little grammar changes
1 parent 4a15dc7 commit 4d55afe

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,19 +89,19 @@ qmgrConnectionParams:
8989
# How long to wait until metrics are published by queue manager (milliseconds).
9090
# Value must be at least 10000 (periodicity with which metrics are published by MQ).
9191
connTimeout: 12000
92-
# Use TLS connection to queue manager?
92+
# Use TLS connection to queue manager? If useTLS equals "false" than all connection parameters below will be ignored.
9393
useTLS: true
9494
# Path to keystore file
9595
keystorePath: /opt/mq_exporter/keystores/keystore.jks
96-
# keystore password
96+
# Keystore password
9797
keystorePassword: testpass2
98-
# path to truststore file
98+
# Path to truststore file
9999
truststorePath: /opt/mq_exporter/keystores/truststore.jks
100-
# truststore password
100+
# Truststore password
101101
truststorePassword: testpass2
102102
# SSL protocol
103103
sslProtocol: TLSv1.2
104-
# cipherSuite
104+
# CipherSuite
105105
cipherSuite: TLS_RSA_WITH_AES_256_CBC_SHA256
106106

107107
# Prometheus connection information -------------------------------

src/main/java/ru/cinimex/exporter/Config.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public Config(String path) {
6969
this.scrapeInterval = (Integer) pcfParameters.get("scrapeInterval");
7070
boolean useTLS = (boolean) qmgrConnectionParams.get("useTLS");
7171
if (useTLS) {
72-
logger.info("secured connection to queue manager will be used");
72+
logger.debug("Secured connection to queue manager will be used");
7373
mqSecurityProperties = new MQSecurityProperties(
7474
useTLS,
7575
(String) qmgrConnectionParams.get("keystorePath"),
@@ -80,7 +80,7 @@ public Config(String path) {
8080
(String) qmgrConnectionParams.get("cipherSuite")
8181
);
8282
} else {
83-
logger.info("unsecured connection to queue manager will be used");
83+
logger.debug("Unsecured connection to queue manager will be used");
8484
}
8585
logger.info("Successfully parsed configuration file!");
8686
}

src/main/resources/exporter_config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ qmgrConnectionParams:
1919
# How long to wait until metrics are published by queue manager (milliseconds).
2020
# Value must be at least 10000 (periodicity with which metrics are published by MQ).
2121
connTimeout: 12000
22-
# Use TLS connection to queue manager?
22+
# Use TLS connection to queue manager? If useTLS equals "false" than all connection parameters below will be ignored.
2323
useTLS: true
2424
# Path to keystore file
2525
keystorePath: /opt/mq_exporter/keystores/keystore.jks

0 commit comments

Comments
 (0)