Skip to content

Commit

Permalink
change default port to 9853
Browse files Browse the repository at this point in the history
  • Loading branch information
ThePrez committed Aug 6, 2022
1 parent a0c280a commit c26c0f2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
==============================================================
```

Expand Down Expand Up @@ -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

Expand All @@ -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
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<groupId>com.ibm.jesseg</groupId>
<artifactId>ibmi-prom-client</artifactId>
<packaging>jar</packaging>
<version>0.6.0</version>
<version>0.7.0</version>


<properties>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/ibm/jesseg/prometheus/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
@@ -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:
Expand Down

0 comments on commit c26c0f2

Please sign in to comment.