Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Summer Cleaning🧹 #60

Merged
merged 22 commits into from
Aug 13, 2024
Merged

Summer Cleaning🧹 #60

merged 22 commits into from
Aug 13, 2024

Conversation

kashalls
Copy link
Owner

@kashalls kashalls commented Aug 7, 2024

Pretty much clean up the code so it looks "normal" and use a lot of infrastructure we have figured out in eduw.

Fixes #36 & #6.

  • Moves /query to /{metric}
  • Cleanup code, move env to env config
  • Adds logging through zap
  • Chi router instead of plain http
  • Ratelimit support

@kashalls kashalls marked this pull request as ready for review August 7, 2024 22:21
@kashalls kashalls self-assigned this Aug 7, 2024
@kashalls kashalls merged commit 301616e into main Aug 13, 2024
2 checks passed

func With(fields ...zap.Field) *zap.Logger {
return logger.With(fields...)
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing newline at the end of the file

org.opencontainers.image.source="https://github.com/kashalls/kromgo"
ENTRYPOINT ["/kromgo/kromgo"]
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing new line at the end of the file

requestFormat := r.URL.Query().Get("format")

return log.With(zap.String("req_method", r.Method), zap.String("req_path", r.URL.Path), zap.String("metric", requestMetric), zap.String("format", requestFormat))
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing new line at the end of the file

@onedr0p
Copy link

onedr0p commented Aug 13, 2024

Never mind, saw this was merged 😄

szinn referenced this pull request in szinn/k8s-homelab Aug 16, 2024
…0 ) (#4143)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [ghcr.io/kashalls/kromgo](https://togithub.com/kashalls/kromgo) |
minor | `0.3.1` -> `v0.4.0` |

---

### Release Notes

<details>
<summary>kashalls/kromgo (ghcr.io/kashalls/kromgo)</summary>

### [`v0.4.0`](https://togithub.com/kashalls/kromgo/releases/tag/v0.4.0)

[Compare
Source](https://togithub.com/kashalls/kromgo/compare/v0.3.1...v0.4.0)

#### New Features

-   Moved /query to /{metric}
-   /query will be removed in a future release.
- Added badge support courtesy of
[@&#8203;vaskozl](https://togithub.com/vaskozl)
-   Cleaned up code.
-   Moved to Chi Router v5.
-   Added internal rate limiting.
-   Added logging using zap.
- Environment config for setting Server Host and Port as well as Metric
Servers. Eventually I plan to add metrics for stuff like how often a
specific metric is requested etc...

#### What's Changed

- chore(deps): update docker/setup-buildx-action action to v3.3.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/35](https://togithub.com/kashalls/kromgo/pull/35)
- chore(deps): update golang docker tag to v1.22.2 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/34](https://togithub.com/kashalls/kromgo/pull/34)
- fix(deps): update module github.com/prometheus/common to v0.52.2 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/33](https://togithub.com/kashalls/kromgo/pull/33)
- chore(deps): update stefanzweifel/git-auto-commit-action action to
v5.0.1 by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/38](https://togithub.com/kashalls/kromgo/pull/38)
- chore(deps): update actions/checkout digest to
[`a5ac7e5`](https://togithub.com/kashalls/kromgo/commit/a5ac7e5) by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/40](https://togithub.com/kashalls/kromgo/pull/40)
- chore(deps): update actions/checkout action to v4.1.6 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/41](https://togithub.com/kashalls/kromgo/pull/41)
- chore(deps): update golang docker tag to v1.22.3 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/42](https://togithub.com/kashalls/kromgo/pull/42)
- fix(deps): update module github.com/prometheus/client_golang to
v1.19.1 by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/43](https://togithub.com/kashalls/kromgo/pull/43)
- fix(deps): update module github.com/prometheus/common to v0.53.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/37](https://togithub.com/kashalls/kromgo/pull/37)
- fix(deps): update module gopkg.in/yaml.v2 to v3 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/39](https://togithub.com/kashalls/kromgo/pull/39)
- chore(deps): update docker/build-push-action action to v5.4.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/49](https://togithub.com/kashalls/kromgo/pull/49)
- chore(deps): update golang docker tag to v1.22.4 - autoclosed by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/48](https://togithub.com/kashalls/kromgo/pull/48)
- fix(deps): update module github.com/prometheus/common to v0.54.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/46](https://togithub.com/kashalls/kromgo/pull/46)
- chore(deps): update docker/login-action action to v3.2.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/45](https://togithub.com/kashalls/kromgo/pull/45)
- fix(deps): update module github.com/prometheus/common to v0.55.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/53](https://togithub.com/kashalls/kromgo/pull/53)
- chore(deps): update actions/checkout digest to
[`692973e`](https://togithub.com/kashalls/kromgo/commit/692973e) by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/51](https://togithub.com/kashalls/kromgo/pull/51)
- chore(deps): update actions/checkout action to v4.1.7 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/50](https://togithub.com/kashalls/kromgo/pull/50)
- chore(deps): update docker/build-push-action action to v6 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/52](https://togithub.com/kashalls/kromgo/pull/52)
- chore(deps): update docker/login-action action to v3.3.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/57](https://togithub.com/kashalls/kromgo/pull/57)
- chore(deps): update docker/setup-buildx-action action to v3.5.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/56](https://togithub.com/kashalls/kromgo/pull/56)
- chore(deps): update golang docker tag to v1.22.5 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/54](https://togithub.com/kashalls/kromgo/pull/54)
- chore(deps): update docker/build-push-action action to v6.5.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/55](https://togithub.com/kashalls/kromgo/pull/55)
- chore(deps): update docker/setup-buildx-action action to v3.6.1 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/58](https://togithub.com/kashalls/kromgo/pull/58)
- chore(deps): update docker/build-push-action action to v6.6.1 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/61](https://togithub.com/kashalls/kromgo/pull/61)
- Summer Cleaning🧹 by [@&#8203;kashalls](https://togithub.com/kashalls)
in
[https://github.com/kashalls/kromgo/pull/60](https://togithub.com/kashalls/kromgo/pull/60)
- fix(deps): update module github.com/go-chi/httprate to v0.12.1 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/64](https://togithub.com/kashalls/kromgo/pull/64)
- fix(deps): update module github.com/caarlos0/env/v11 to v11.2.2 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/63](https://togithub.com/kashalls/kromgo/pull/63)
- Add format=badge which directly serves badges by
[@&#8203;vaskozl](https://togithub.com/vaskozl) in
[https://github.com/kashalls/kromgo/pull/67](https://togithub.com/kashalls/kromgo/pull/67)
- fix(deps): update module github.com/prometheus/client_golang to
v1.20.0 by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/66](https://togithub.com/kashalls/kromgo/pull/66)
- chore: test no side effects by
[@&#8203;kashalls](https://togithub.com/kashalls) in
[https://github.com/kashalls/kromgo/pull/68](https://togithub.com/kashalls/kromgo/pull/68)

#### New Contributors

- [@&#8203;vaskozl](https://togithub.com/vaskozl) made their first
contribution in
[https://github.com/kashalls/kromgo/pull/67](https://togithub.com/kashalls/kromgo/pull/67)

**Full Changelog**:
kashalls/kromgo@v0.3.1...v0.4.0

</details>

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4zNy4wIiwidXBkYXRlZEluVmVyIjoiMzguMzcuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsicmVub3ZhdGUvY29udGFpbmVyIiwidHlwZS9taW5vciJdfQ==-->

Co-authored-by: repo-jeeves[bot] <106431701+repo-jeeves[bot]@users.noreply.github.com>
kireque referenced this pull request in kireque/home-ops Aug 16, 2024
…0 ) (#889)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [ghcr.io/kashalls/kromgo](https://togithub.com/kashalls/kromgo) |
minor | `0.3.1` -> `v0.4.0` |

---

### Release Notes

<details>
<summary>kashalls/kromgo (ghcr.io/kashalls/kromgo)</summary>

### [`v0.4.0`](https://togithub.com/kashalls/kromgo/releases/tag/v0.4.0)

[Compare
Source](https://togithub.com/kashalls/kromgo/compare/v0.3.1...v0.4.0)

#### New Features

-   Moved /query to /{metric}
-   /query will be removed in a future release.
- Added badge support courtesy of
[@&#8203;vaskozl](https://togithub.com/vaskozl)
-   Cleaned up code.
-   Moved to Chi Router v5.
-   Added internal rate limiting.
-   Added logging using zap.
- Environment config for setting Server Host and Port as well as Metric
Servers. Eventually I plan to add metrics for stuff like how often a
specific metric is requested etc...
- ⚠️ Metric and Health Monitoring endpoints were moved to a new default
port of 8888. You can change this with HEALTH_HOST and HEALTH_PORT ENV.

#### What's Changed

- chore(deps): update docker/setup-buildx-action action to v3.3.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/35](https://togithub.com/kashalls/kromgo/pull/35)
- chore(deps): update golang docker tag to v1.22.2 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/34](https://togithub.com/kashalls/kromgo/pull/34)
- fix(deps): update module github.com/prometheus/common to v0.52.2 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/33](https://togithub.com/kashalls/kromgo/pull/33)
- chore(deps): update stefanzweifel/git-auto-commit-action action to
v5.0.1 by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/38](https://togithub.com/kashalls/kromgo/pull/38)
- chore(deps): update actions/checkout digest to
[`a5ac7e5`](https://togithub.com/kashalls/kromgo/commit/a5ac7e5) by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/40](https://togithub.com/kashalls/kromgo/pull/40)
- chore(deps): update actions/checkout action to v4.1.6 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/41](https://togithub.com/kashalls/kromgo/pull/41)
- chore(deps): update golang docker tag to v1.22.3 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/42](https://togithub.com/kashalls/kromgo/pull/42)
- fix(deps): update module github.com/prometheus/client_golang to
v1.19.1 by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/43](https://togithub.com/kashalls/kromgo/pull/43)
- fix(deps): update module github.com/prometheus/common to v0.53.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/37](https://togithub.com/kashalls/kromgo/pull/37)
- fix(deps): update module gopkg.in/yaml.v2 to v3 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/39](https://togithub.com/kashalls/kromgo/pull/39)
- chore(deps): update docker/build-push-action action to v5.4.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/49](https://togithub.com/kashalls/kromgo/pull/49)
- chore(deps): update golang docker tag to v1.22.4 - autoclosed by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/48](https://togithub.com/kashalls/kromgo/pull/48)
- fix(deps): update module github.com/prometheus/common to v0.54.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/46](https://togithub.com/kashalls/kromgo/pull/46)
- chore(deps): update docker/login-action action to v3.2.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/45](https://togithub.com/kashalls/kromgo/pull/45)
- fix(deps): update module github.com/prometheus/common to v0.55.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/53](https://togithub.com/kashalls/kromgo/pull/53)
- chore(deps): update actions/checkout digest to
[`692973e`](https://togithub.com/kashalls/kromgo/commit/692973e) by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/51](https://togithub.com/kashalls/kromgo/pull/51)
- chore(deps): update actions/checkout action to v4.1.7 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/50](https://togithub.com/kashalls/kromgo/pull/50)
- chore(deps): update docker/build-push-action action to v6 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/52](https://togithub.com/kashalls/kromgo/pull/52)
- chore(deps): update docker/login-action action to v3.3.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/57](https://togithub.com/kashalls/kromgo/pull/57)
- chore(deps): update docker/setup-buildx-action action to v3.5.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/56](https://togithub.com/kashalls/kromgo/pull/56)
- chore(deps): update golang docker tag to v1.22.5 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/54](https://togithub.com/kashalls/kromgo/pull/54)
- chore(deps): update docker/build-push-action action to v6.5.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/55](https://togithub.com/kashalls/kromgo/pull/55)
- chore(deps): update docker/setup-buildx-action action to v3.6.1 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/58](https://togithub.com/kashalls/kromgo/pull/58)
- chore(deps): update docker/build-push-action action to v6.6.1 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/61](https://togithub.com/kashalls/kromgo/pull/61)
- Summer Cleaning🧹 by [@&#8203;kashalls](https://togithub.com/kashalls)
in
[https://github.com/kashalls/kromgo/pull/60](https://togithub.com/kashalls/kromgo/pull/60)
- fix(deps): update module github.com/go-chi/httprate to v0.12.1 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/64](https://togithub.com/kashalls/kromgo/pull/64)
- fix(deps): update module github.com/caarlos0/env/v11 to v11.2.2 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/63](https://togithub.com/kashalls/kromgo/pull/63)
- Add format=badge which directly serves badges by
[@&#8203;vaskozl](https://togithub.com/vaskozl) in
[https://github.com/kashalls/kromgo/pull/67](https://togithub.com/kashalls/kromgo/pull/67)
- fix(deps): update module github.com/prometheus/client_golang to
v1.20.0 by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/66](https://togithub.com/kashalls/kromgo/pull/66)
- chore: test no side effects by
[@&#8203;kashalls](https://togithub.com/kashalls) in
[https://github.com/kashalls/kromgo/pull/68](https://togithub.com/kashalls/kromgo/pull/68)

#### New Contributors

- [@&#8203;vaskozl](https://togithub.com/vaskozl) made their first
contribution in
[https://github.com/kashalls/kromgo/pull/67](https://togithub.com/kashalls/kromgo/pull/67)

**Full Changelog**:
kashalls/kromgo@v0.3.1...v0.4.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://togithub.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4zNy4wIiwidXBkYXRlZEluVmVyIjoiMzguMzcuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsicmVub3ZhdGUvY29udGFpbmVyIiwidHlwZS9taW5vciJdfQ==-->

Co-authored-by: kireque-bot[bot] <143391978+kireque-bot[bot]@users.noreply.github.com>
lumiere-bot bot referenced this pull request in coolguy1771/home-ops Aug 17, 2024
…5242)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [ghcr.io/kashalls/kromgo](https://togithub.com/kashalls/kromgo) |
minor | `0.3.1` -> `v0.4.1` |

---

### Release Notes

<details>
<summary>kashalls/kromgo (ghcr.io/kashalls/kromgo)</summary>

### [`v0.4.1`](https://togithub.com/kashalls/kromgo/releases/tag/v0.4.1)

[Compare
Source](https://togithub.com/kashalls/kromgo/compare/v0.4.0...v0.4.1)

#### What's Changed

- Adds `?format=badge&style=<flat|flat-square|plastic>` for 3 different
badge styles.
- chore(deps): update golang docker tag to v1.23 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/59](https://togithub.com/kashalls/kromgo/pull/59)

**Full Changelog**:
kashalls/kromgo@v0.4.0...v0.4.1

### [`v0.4.0`](https://togithub.com/kashalls/kromgo/releases/tag/v0.4.0)

[Compare
Source](https://togithub.com/kashalls/kromgo/compare/v0.3.1...v0.4.0)

#### New Features

-   Moved /query to /{metric}
-   /query will be removed in a future release.
- Added badge support courtesy of
[@&#8203;vaskozl](https://togithub.com/vaskozl)
-   Cleaned up code.
-   Moved to Chi Router v5.
-   Added internal rate limiting.
-   Added logging using zap.
- Environment config for setting Server Host and Port as well as Metric
Servers. Eventually I plan to add metrics for stuff like how often a
specific metric is requested etc...
- ⚠️ Metric and Health Monitoring endpoints were moved to a new default
port of 8888. You can change this with HEALTH_HOST and HEALTH_PORT ENV.

#### What's Changed

- chore(deps): update docker/setup-buildx-action action to v3.3.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/35](https://togithub.com/kashalls/kromgo/pull/35)
- chore(deps): update golang docker tag to v1.22.2 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/34](https://togithub.com/kashalls/kromgo/pull/34)
- fix(deps): update module github.com/prometheus/common to v0.52.2 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/33](https://togithub.com/kashalls/kromgo/pull/33)
- chore(deps): update stefanzweifel/git-auto-commit-action action to
v5.0.1 by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/38](https://togithub.com/kashalls/kromgo/pull/38)
- chore(deps): update actions/checkout digest to
[`a5ac7e5`](https://togithub.com/kashalls/kromgo/commit/a5ac7e5) by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/40](https://togithub.com/kashalls/kromgo/pull/40)
- chore(deps): update actions/checkout action to v4.1.6 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/41](https://togithub.com/kashalls/kromgo/pull/41)
- chore(deps): update golang docker tag to v1.22.3 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/42](https://togithub.com/kashalls/kromgo/pull/42)
- fix(deps): update module github.com/prometheus/client_golang to
v1.19.1 by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/43](https://togithub.com/kashalls/kromgo/pull/43)
- fix(deps): update module github.com/prometheus/common to v0.53.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/37](https://togithub.com/kashalls/kromgo/pull/37)
- fix(deps): update module gopkg.in/yaml.v2 to v3 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/39](https://togithub.com/kashalls/kromgo/pull/39)
- chore(deps): update docker/build-push-action action to v5.4.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/49](https://togithub.com/kashalls/kromgo/pull/49)
- chore(deps): update golang docker tag to v1.22.4 - autoclosed by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/48](https://togithub.com/kashalls/kromgo/pull/48)
- fix(deps): update module github.com/prometheus/common to v0.54.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/46](https://togithub.com/kashalls/kromgo/pull/46)
- chore(deps): update docker/login-action action to v3.2.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/45](https://togithub.com/kashalls/kromgo/pull/45)
- fix(deps): update module github.com/prometheus/common to v0.55.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/53](https://togithub.com/kashalls/kromgo/pull/53)
- chore(deps): update actions/checkout digest to
[`692973e`](https://togithub.com/kashalls/kromgo/commit/692973e) by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/51](https://togithub.com/kashalls/kromgo/pull/51)
- chore(deps): update actions/checkout action to v4.1.7 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/50](https://togithub.com/kashalls/kromgo/pull/50)
- chore(deps): update docker/build-push-action action to v6 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/52](https://togithub.com/kashalls/kromgo/pull/52)
- chore(deps): update docker/login-action action to v3.3.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/57](https://togithub.com/kashalls/kromgo/pull/57)
- chore(deps): update docker/setup-buildx-action action to v3.5.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/56](https://togithub.com/kashalls/kromgo/pull/56)
- chore(deps): update golang docker tag to v1.22.5 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/54](https://togithub.com/kashalls/kromgo/pull/54)
- chore(deps): update docker/build-push-action action to v6.5.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/55](https://togithub.com/kashalls/kromgo/pull/55)
- chore(deps): update docker/setup-buildx-action action to v3.6.1 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/58](https://togithub.com/kashalls/kromgo/pull/58)
- chore(deps): update docker/build-push-action action to v6.6.1 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/61](https://togithub.com/kashalls/kromgo/pull/61)
- Summer Cleaning🧹 by [@&#8203;kashalls](https://togithub.com/kashalls)
in
[https://github.com/kashalls/kromgo/pull/60](https://togithub.com/kashalls/kromgo/pull/60)
- fix(deps): update module github.com/go-chi/httprate to v0.12.1 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/64](https://togithub.com/kashalls/kromgo/pull/64)
- fix(deps): update module github.com/caarlos0/env/v11 to v11.2.2 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/63](https://togithub.com/kashalls/kromgo/pull/63)
- Add format=badge which directly serves badges by
[@&#8203;vaskozl](https://togithub.com/vaskozl) in
[https://github.com/kashalls/kromgo/pull/67](https://togithub.com/kashalls/kromgo/pull/67)
- fix(deps): update module github.com/prometheus/client_golang to
v1.20.0 by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/66](https://togithub.com/kashalls/kromgo/pull/66)
- chore: test no side effects by
[@&#8203;kashalls](https://togithub.com/kashalls) in
[https://github.com/kashalls/kromgo/pull/68](https://togithub.com/kashalls/kromgo/pull/68)

#### New Contributors

- [@&#8203;vaskozl](https://togithub.com/vaskozl) made their first
contribution in
[https://github.com/kashalls/kromgo/pull/67](https://togithub.com/kashalls/kromgo/pull/67)

**Full Changelog**:
kashalls/kromgo@v0.3.1...v0.4.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://togithub.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4zNy4wIiwidXBkYXRlZEluVmVyIjoiMzguMzkuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsicmVub3ZhdGUvY29udGFpbmVyIiwidHlwZS9taW5vciJdfQ==-->

Co-authored-by: lumiere-bot[bot] <98047013+lumiere-bot[bot]@users.noreply.github.com>
Darkflame72 referenced this pull request in Darkflame72/home-ops Aug 18, 2024
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [ghcr.io/kashalls/kromgo](https://togithub.com/kashalls/kromgo) |
minor | `0.3.1` -> `v0.4.1` |

---

### Release Notes

<details>
<summary>kashalls/kromgo (ghcr.io/kashalls/kromgo)</summary>

### [`v0.4.1`](https://togithub.com/kashalls/kromgo/releases/tag/v0.4.1)

[Compare
Source](https://togithub.com/kashalls/kromgo/compare/v0.4.0...v0.4.1)

#### What's Changed

- Adds `?format=badge&style=<flat|flat-square|plastic>` for 3 different
badge styles.
- chore(deps): update golang docker tag to v1.23 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/59](https://togithub.com/kashalls/kromgo/pull/59)

**Full Changelog**:
kashalls/kromgo@v0.4.0...v0.4.1

### [`v0.4.0`](https://togithub.com/kashalls/kromgo/releases/tag/v0.4.0)

[Compare
Source](https://togithub.com/kashalls/kromgo/compare/v0.3.1...v0.4.0)

#### New Features

-   Moved /query to /{metric}
-   /query will be removed in a future release.
- Added badge support courtesy of
[@&#8203;vaskozl](https://togithub.com/vaskozl)
-   Cleaned up code.
-   Moved to Chi Router v5.
-   Added internal rate limiting.
-   Added logging using zap.
- Environment config for setting Server Host and Port as well as Metric
Servers. Eventually I plan to add metrics for stuff like how often a
specific metric is requested etc...
- ⚠️ Metric and Health Monitoring endpoints were moved to a new default
port of 8888. You can change this with HEALTH_HOST and HEALTH_PORT ENV.

#### What's Changed

- chore(deps): update docker/setup-buildx-action action to v3.3.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/35](https://togithub.com/kashalls/kromgo/pull/35)
- chore(deps): update golang docker tag to v1.22.2 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/34](https://togithub.com/kashalls/kromgo/pull/34)
- fix(deps): update module github.com/prometheus/common to v0.52.2 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/33](https://togithub.com/kashalls/kromgo/pull/33)
- chore(deps): update stefanzweifel/git-auto-commit-action action to
v5.0.1 by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/38](https://togithub.com/kashalls/kromgo/pull/38)
- chore(deps): update actions/checkout digest to
[`a5ac7e5`](https://togithub.com/kashalls/kromgo/commit/a5ac7e5) by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/40](https://togithub.com/kashalls/kromgo/pull/40)
- chore(deps): update actions/checkout action to v4.1.6 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/41](https://togithub.com/kashalls/kromgo/pull/41)
- chore(deps): update golang docker tag to v1.22.3 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/42](https://togithub.com/kashalls/kromgo/pull/42)
- fix(deps): update module github.com/prometheus/client_golang to
v1.19.1 by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/43](https://togithub.com/kashalls/kromgo/pull/43)
- fix(deps): update module github.com/prometheus/common to v0.53.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/37](https://togithub.com/kashalls/kromgo/pull/37)
- fix(deps): update module gopkg.in/yaml.v2 to v3 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/39](https://togithub.com/kashalls/kromgo/pull/39)
- chore(deps): update docker/build-push-action action to v5.4.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/49](https://togithub.com/kashalls/kromgo/pull/49)
- chore(deps): update golang docker tag to v1.22.4 - autoclosed by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/48](https://togithub.com/kashalls/kromgo/pull/48)
- fix(deps): update module github.com/prometheus/common to v0.54.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/46](https://togithub.com/kashalls/kromgo/pull/46)
- chore(deps): update docker/login-action action to v3.2.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/45](https://togithub.com/kashalls/kromgo/pull/45)
- fix(deps): update module github.com/prometheus/common to v0.55.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/53](https://togithub.com/kashalls/kromgo/pull/53)
- chore(deps): update actions/checkout digest to
[`692973e`](https://togithub.com/kashalls/kromgo/commit/692973e) by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/51](https://togithub.com/kashalls/kromgo/pull/51)
- chore(deps): update actions/checkout action to v4.1.7 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/50](https://togithub.com/kashalls/kromgo/pull/50)
- chore(deps): update docker/build-push-action action to v6 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/52](https://togithub.com/kashalls/kromgo/pull/52)
- chore(deps): update docker/login-action action to v3.3.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/57](https://togithub.com/kashalls/kromgo/pull/57)
- chore(deps): update docker/setup-buildx-action action to v3.5.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/56](https://togithub.com/kashalls/kromgo/pull/56)
- chore(deps): update golang docker tag to v1.22.5 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/54](https://togithub.com/kashalls/kromgo/pull/54)
- chore(deps): update docker/build-push-action action to v6.5.0 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/55](https://togithub.com/kashalls/kromgo/pull/55)
- chore(deps): update docker/setup-buildx-action action to v3.6.1 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/58](https://togithub.com/kashalls/kromgo/pull/58)
- chore(deps): update docker/build-push-action action to v6.6.1 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/61](https://togithub.com/kashalls/kromgo/pull/61)
- Summer Cleaning🧹 by [@&#8203;kashalls](https://togithub.com/kashalls)
in
[https://github.com/kashalls/kromgo/pull/60](https://togithub.com/kashalls/kromgo/pull/60)
- fix(deps): update module github.com/go-chi/httprate to v0.12.1 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/64](https://togithub.com/kashalls/kromgo/pull/64)
- fix(deps): update module github.com/caarlos0/env/v11 to v11.2.2 by
[@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/63](https://togithub.com/kashalls/kromgo/pull/63)
- Add format=badge which directly serves badges by
[@&#8203;vaskozl](https://togithub.com/vaskozl) in
[https://github.com/kashalls/kromgo/pull/67](https://togithub.com/kashalls/kromgo/pull/67)
- fix(deps): update module github.com/prometheus/client_golang to
v1.20.0 by [@&#8203;renovate](https://togithub.com/renovate) in
[https://github.com/kashalls/kromgo/pull/66](https://togithub.com/kashalls/kromgo/pull/66)
- chore: test no side effects by
[@&#8203;kashalls](https://togithub.com/kashalls) in
[https://github.com/kashalls/kromgo/pull/68](https://togithub.com/kashalls/kromgo/pull/68)

#### New Contributors

- [@&#8203;vaskozl](https://togithub.com/vaskozl) made their first
contribution in
[https://github.com/kashalls/kromgo/pull/67](https://togithub.com/kashalls/kromgo/pull/67)

**Full Changelog**:
kashalls/kromgo@v0.3.1...v0.4.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "every weekend" (UTC), Automerge - At
any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View the
[repository job
log](https://developer.mend.io/github/Darkflame72/home-ops).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4yNi4xIiwidXBkYXRlZEluVmVyIjoiMzguMjYuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsicmVub3ZhdGUvY29udGFpbmVyIiwidHlwZS9taW5vciJdfQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

debug logging
2 participants