diff --git a/README.md b/README.md index 78cb66e..fe6a4ef 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ You Should see a series of messages about collectors being registered. If you se following message, the client is running successfully: ``` ============================================================== -Successfully started Prometheus client on port 8910 +Successfully started Prometheus client on port 9853 ============================================================== ``` @@ -59,7 +59,7 @@ is determined by the following, in order of precedence: - The `PORT` environment variable - The `promclient.port` Java system property - The `port` value of the JSON configuration file -- The default value of 8910 +- The default value of 9853 # Prometheus Configuration @@ -70,7 +70,7 @@ in the following sample configuration: scrape_configs: - job_name: 'prometheusibmi' static_configs: - - targets: ['1.2.3.4:8910'] + - targets: ['1.2.3.4:9853'] ``` # JSON Configuration @@ -79,7 +79,7 @@ See [config.json](./config.json) for an example JSON file, which contains the following: ```json { - "port": 8910, + "port": 9853, "queries": [{ "name": "System Statistics", diff --git a/pom.xml b/pom.xml index 2ab2274..d55a998 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.ibm.jesseg ibmi-prom-client jar - 0.6.0 + 0.7.0 diff --git a/src/main/java/com/ibm/jesseg/prometheus/Config.java b/src/main/java/com/ibm/jesseg/prometheus/Config.java index 7237585..23177a2 100644 --- a/src/main/java/com/ibm/jesseg/prometheus/Config.java +++ b/src/main/java/com/ibm/jesseg/prometheus/Config.java @@ -20,7 +20,7 @@ public class Config { - public static final int DEFAULT_PORT = 8910; + public static final int DEFAULT_PORT = 9853; private final JSONObject m_json; private AppLogger m_logger; private File m_file; diff --git a/src/main/resources/com/ibm/jesseg/prometheus/prometheus.yml b/src/main/resources/com/ibm/jesseg/prometheus/prometheus.yml index 90b3ef4..dcb265b 100644 --- a/src/main/resources/com/ibm/jesseg/prometheus/prometheus.yml +++ b/src/main/resources/com/ibm/jesseg/prometheus/prometheus.yml @@ -1,7 +1,7 @@ name: Prometheus client dir: . start_cmd: java -jar prom-client-ibmi.jar -check_alive: '8910' +check_alive: '9853' batch_mode: 'false' environment_vars: