Skip to content

Commit

Permalink
Merge branch 'main' into remove-trailing-space-labels
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrahimkk-moideen committed Oct 28, 2024
2 parents a758779 + ac333d1 commit 8bf161c
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ log is based on the [Keep a CHANGELOG](http://keepachangelog.com/) project.

## Unreleased

## Fixed

- nil pointer dereference during a scrape [#97](https://github.com/Comcast/fishymetrics/issues/97)

## [0.12.0]

## Added

- Add ability to reference different vault paths for credential retrieval [#25](https://github.com/Comcast/fishymetrics/issues/25)
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ This app can support any chassis that has the redfish API available. If one need

To run it:

```
```console
$ ./fishymetrics --help
usage: fishymetrics [<flags>]

Expand Down Expand Up @@ -209,13 +209,13 @@ make build

#### docker image

```
```bash
make docker
```

### Testing

```
```bash
make test
```

Expand Down
3 changes: 3 additions & 0 deletions common/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ func Fetch(uri, host, profile string, client *retryablehttp.Client) func() ([]by
for retryCount < 3 && resp.StatusCode == http.StatusNotFound {
time.Sleep(client.RetryWaitMin)
resp, err = DoRequest(client, req)
if err != nil {
return nil, err
}
retryCount = retryCount + 1
}
if err != nil {
Expand Down
3 changes: 3 additions & 0 deletions exporter/moonshot/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,9 @@ func fetch(uri, device, metricType, host, profile string, client *retryablehttp.
for retryCount < 3 && resp.StatusCode == http.StatusNotFound {
time.Sleep(client.RetryWaitMin)
resp, err = common.DoRequest(client, req)
if err != nil {
return nil, device, metricType, err
}
retryCount = retryCount + 1
}
if err != nil {
Expand Down

0 comments on commit 8bf161c

Please sign in to comment.