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

Fixes missing labels from the generated metrics and adds a test for it #115

Closed

Conversation

prateeknayak
Copy link

We have been using avalanche to test out remote write capability in our distributed metrics architecture, we noticed that avalanche wasn't adding any labels let alone the --const-labels to the metrics. The solution in the PR should hopefully fix it.
Following are the changes in the PR

  • Added a test to check for labels in the generated metrics
  • Updated line 516-517 in metrics/serve.go to fix the issue

limscoder and others added 30 commits August 20, 2018 09:16
…ity#4)

Create our own registry so we don't include any other metrics that
Prometheus client_golang adds by default.
Add option to send via remote_write API; update to Go 1.12.1
…us-community#8)

* Use go modules and implement remote write samples count flag.


* concurent send


* added continious profiling.


* fix dockerfile


* fix remotePprof wait


* fix the series update lock race


* total samples count


* nits


* update ts for each request


* improve the cache for docker build


* nits
…ite API (prometheus-community#11)

* Mention that Avalanche supports load testing via Prometheus remote_write API

* README.md: move Thanos to remote_write section
* Fix time interval handling

* Change to NewTicker from Ticker

Keep ticker reference to avoid "leaking"

* Update write.go
…nant-id

Allow the tenant ID to be specified for remote_write [Rebase]
bwplotka and others added 20 commits October 1, 2024 09:17
…nity#83)

* Update common Prometheus files


* Added format command.


---------

Co-authored-by: bwplotka <[email protected]>
…theus-community#95)

Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.20.3 to 1.20.4.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
- [Commits](prometheus/client_golang@v1.20.3...v1.20.4)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…ommunity#94)

Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.57.0 to 0.60.0.
- [Release notes](https://github.com/prometheus/common/releases)
- [Changelog](https://github.com/prometheus/common/blob/main/RELEASE.md)
- [Commits](prometheus/common@v0.57.0...v0.60.0)

---
updated-dependencies:
- dependency-name: github.com/prometheus/common
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
… well; improved flag docs and tests for complex type series calculation. (prometheus-community#93)
…heus-community#99)

See related discussion: prometheus-community#97 (comment)

> I think we should move this default to zero. Essentially I don't see real case of changing metric names in any application. Metric names are generally stable AFAIK, do you know any cases where that's not true? Are they often?


cc @jmichalek132
Prior to this commit, unbounded number of write would have been trigged from avalanche based on number of samples and batch size. Adding a new flag to limit the concurrency will be useful to simulate prometheus remote write sharding.
…munity#111)

Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](stretchr/testify@v1.9.0...v1.10.0)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…theus-community#107)

Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.20.4 to 1.20.5.
- [Release notes](https://github.com/prometheus/client_golang/releases)
- [Changelog](https://github.com/prometheus/client_golang/blob/main/CHANGELOG.md)
- [Commits](prometheus/client_golang@v1.20.4...v1.20.5)

---
updated-dependencies:
- dependency-name: github.com/prometheus/client_golang
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…ommunity#105)

Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.60.0 to 0.60.1.
- [Release notes](https://github.com/prometheus/common/releases)
- [Changelog](https://github.com/prometheus/common/blob/main/RELEASE.md)
- [Commits](prometheus/common@v0.60.0...v0.60.1)

---
updated-dependencies:
- dependency-name: github.com/prometheus/common
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Refactor remote write flags into init method


* Fix lint


* Implement suggestions


* Address comments


---------
@prateeknayak prateeknayak changed the title Fixes missing labesl from the generated metrics and adds a test for it Fixes missing labels from the generated metrics and adds a test for it Jan 2, 2025
@prateeknayak prateeknayak force-pushed the fix-missing-labels branch 2 times, most recently from 73ff744 to ee3865e Compare January 2, 2025 00:22
@prateeknayak prateeknayak deleted the fix-missing-labels branch January 2, 2025 00:29
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.