Skip to content

Commit 4942a23

Browse files
Merge pull request #101 from Comcast/modify-fishymetrics-port
Modify fishymetrics port
2 parents ee5a16d + 8123570 commit 4942a23

File tree

6 files changed

+18
-14
lines changed

6 files changed

+18
-14
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ log is based on the [Keep a CHANGELOG](http://keepachangelog.com/) project.
66

77
## Unreleased
88

9+
## [0.12.1]
10+
911
## Fixed
1012

1113
- nil pointer dereference during a scrape [#97](https://github.com/Comcast/fishymetrics/issues/97)
@@ -14,6 +16,7 @@ log is based on the [Keep a CHANGELOG](http://keepachangelog.com/) project.
1416

1517
- Removed trailing spaces in label values [#96](https://github.com/Comcast/fishymetrics/issues/96)
1618
- Add missing language fences to README [#95](https://github.com/Comcast/fishymetrics/pull/95)
19+
- Set Fishymetrics port default to 10023 [#100](https://github.com/Comcast/fishymetrics/issues/100)
1720

1821
## [0.12.0]
1922

README.md

+8-7
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Flags:
3333
--log.file-max-age="1" max file age in days before they are rotated if log-method is file
3434
--vector.endpoint="http://0.0.0.0:4444"
3535
vector endpoint to send structured json logs to
36-
--port="9533" exporter port
36+
--port="10023" exporter port
3737
--vault.addr="https://vault.com"
3838
Vault instance address to get chassis credentials from
3939
--vault.role-id="" Vault Role ID for AppRole
@@ -65,7 +65,7 @@ BMC_USERNAME=<string>
6565
BMC_PASSWORD=<string>
6666
BMC_TIMEOUT=<duration> (Default: 15s)
6767
BMC_SCHEME=<string> (Default: https)
68-
EXPORTER_PORT=<int> (Default: 9533)
68+
EXPORTER_PORT=<int> (Default: 10023)
6969
LOG_PATH=<string> (Default: /var/log/fishymetrics)
7070
VAULT_ADDRESS=<string>
7171
VAULT_ROLE_ID=<string>
@@ -104,7 +104,7 @@ _if deployed on ones localhost_
104104
</aside>
105105

106106
```bash
107-
curl http://localhost:9533/info
107+
curl http://localhost:10023/info
108108
```
109109

110110
### metrics URL
@@ -116,27 +116,27 @@ _if deployed on ones localhost_
116116
</aside>
117117

118118
```bash
119-
curl http://localhost:9533/metrics
119+
curl http://localhost:10023/metrics
120120
```
121121

122122
### redfish API `/scrape`
123123

124124
To test a scrape of a host's redfish API, you can curl `fishymetrics`
125125

126126
```bash
127-
curl 'http://localhost:9533/scrape?model=<model-name>&target=1.2.3.4'
127+
curl 'http://localhost:10023/scrape?model=<model-name>&target=1.2.3.4'
128128
```
129129

130130
If you have a credential profile configured you can add the extra URL query parameter
131131

132132
```bash
133-
curl 'http://localhost:9533/scrape?model=<model-name>&target=1.2.3.4&credential_profile=<profile-name>'
133+
curl 'http://localhost:10023/scrape?model=<model-name>&target=1.2.3.4&credential_profile=<profile-name>'
134134
```
135135

136136
There is plugin support which is passed a comma separated list of strings
137137

138138
```bash
139-
curl 'http://localhost:9533/scrape?model=<model-name>&target=1.2.3.4&plugins=example1,example2'
139+
curl 'http://localhost:10023/scrape?model=<model-name>&target=1.2.3.4&plugins=example1,example2'
140140
```
141141

142142
### Docker
@@ -186,6 +186,7 @@ scrape_configs:
186186
foo: bar
187187
metrics_path: /scrape
188188
scrape_interval: 5m
189+
scrape_timeout: 4m # Time limit to allow gathering metrics from multiple hardware components
189190
params:
190191
model: ["dl360"]
191192
relabel_configs:

cmd/fishymetrics/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ var (
6969
logFileMaxBackups = a.Flag("log.file-max-backups", "max file backups before they are rotated if log-method is file").Default("1").Envar("LOG_FILE_MAX_BACKUPS").String()
7070
logFileMaxAge = a.Flag("log.file-max-age", "max file age in days before they are rotated if log-method is file").Default("1").Envar("LOG_FILE_MAX_AGE").String()
7171
vectorEndpoint = a.Flag("vector.endpoint", "vector endpoint to send structured json logs to").Default("http://0.0.0.0:4444").Envar("VECTOR_ENDPOINT").String()
72-
exporterPort = a.Flag("port", "exporter port").Default("9533").Envar("EXPORTER_PORT").String()
72+
exporterPort = a.Flag("port", "exporter port").Default("10023").Envar("EXPORTER_PORT").String()
7373
vaultAddr = a.Flag("vault.addr", "Vault instance address to get chassis credentials from").Default("https://vault.com").Envar("VAULT_ADDRESS").String()
7474
vaultRoleId = a.Flag("vault.role-id", "Vault Role ID for AppRole").Default("").Envar("VAULT_ROLE_ID").String()
7575
vaultSecretId = a.Flag("vault.secret-id", "Vault Secret ID for AppRole").Default("").Envar("VAULT_SECRET_ID").String()

helm/fishymetrics/Chart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
apiVersion: v1
2-
appVersion: 0.12.0
2+
appVersion: 0.12.1
33
description: A Helm chart for a General Purpose Chassis Monitoring Exporter using the redfish API
44
maintainers:
55
66
name: Derrick DaCosta
77
88
name: Ibrahim Khalilullah Khan
99
name: fishymetrics
10-
version: 0.10.3
10+
version: 0.10.4

helm/fishymetrics/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ The following table lists the configurable parameters of the fishymetrics chart
3030
| Parameter | Description | Default |
3131
| ----------------------------------------------------------- | ------------------------------------------------------------------------------------------ | ------------------------- |
3232
| `image.repo` | container image repo for fishymetrics | `"comcast/fishymetrics"` |
33-
| `image.tag` | container image tag for fishymetrics | `"0.12.0"` |
33+
| `image.tag` | container image tag for fishymetrics | `"0.12.1"` |
3434
| `image.pullPolicy` | container image pull policy | `"IfNotPresent"` |
3535
| `replicas` | number of replica sets to initially deploy | `1` |
36-
| `exporter.port` | exporter port to listen on | `9533` |
36+
| `exporter.port` | exporter port to listen on | `10023` |
3737
| `log.level` | log level verbosity | `"info"` |
3838
| `log.method` | alternative method for logging in addition to stdout | `""` |
3939
| `log.filePath` | directory path where log files are written | `"/var/log/fishymetrics"` |

helm/fishymetrics/values.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
image:
22
repo: comcast/fishymetrics
3-
tag: 0.12.0
3+
tag: 0.12.1
44
pullPolicy: IfNotPresent
55

66
replicas: 1
77

88
exporter:
9-
port: "9533"
9+
port: "10023"
1010

1111
log:
1212
level: "info"

0 commit comments

Comments
 (0)