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

Upgrade to prometheus 2.55 #2868

Merged
merged 2 commits into from
Mar 5, 2025
Merged

Upgrade to prometheus 2.55 #2868

merged 2 commits into from
Mar 5, 2025

Conversation

ptodev
Copy link
Collaborator

@ptodev ptodev commented Feb 27, 2025

PR Description

This is an incremental step towards an upgrade to Prometheus 3.

Notes to the Reviewer

PR Checklist

  • CHANGELOG.md updated
  • Documentation added
  • Tests updated
  • Config converters updated

@ptodev ptodev requested review from clayton-cornell and a team as code owners February 27, 2025 12:34
@ptodev ptodev changed the title Upgrade to prometheus 2 55 Upgrade to prometheus 2.55 Feb 27, 2025
@ptodev ptodev force-pushed the upgrade-to-prometheus-2_55 branch from c667866 to e7ed631 Compare February 27, 2025 12:54
Copy link
Contributor

github-actions bot commented Feb 27, 2025

💻 Deploy preview deleted.

@@ -71,6 +74,8 @@ type Arguments struct {
ScrapeClassicHistograms bool `alloy:"scrape_classic_histograms,attr,optional"`
// Whether to scrape native histograms.
ScrapeNativeHistograms bool `alloy:"scrape_native_histograms,attr,optional"`
// File to which scrape failures are logged.
ScrapeFailureLogFile string `alloy:"scrape_failure_log_file,attr,optional"`
Copy link
Collaborator

Choose a reason for hiding this comment

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

I wonder if we can make this more generic, before we commit to this. Looking at the callback this is the filename in the NewManager callback, could we override that with a new entity that would allow use to have a generic output and then have a local.output.file, output to logs, and other outputs.

Copy link
Collaborator Author

@ptodev ptodev Mar 5, 2025

Choose a reason for hiding this comment

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

As we discussed offline, we could polish this further at a later date. Given that it's a feature for debugging, breaking changes to it would be fine. My personal opinion is that:

  • It'd be best to integrate this with the debug logs of the component. But I haven't done it yet since I'm not sure if it'd spam too much, or if there's some other reason for having a separate file that I could be missing.
  • I'd rather not add this feature to live debugging since live debugging is for seeing the data flowing through a component. It's good to have a clear separation between this and the component's own telemetry.
  • I'd prefer not to have a complex way to send this log to other components... it's just part of the component's own logs and we should try treat it the same way as its regular logs.

Ideally we should have the ability to enable debug logging for a specific component instance, and maybe even set what sort of features in a component should be doing debug logging. Then we can integrate such debug logs very easily.

Copy link
Collaborator

@mattdurham mattdurham left a comment

Choose a reason for hiding this comment

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

Looks reasonable, but want to take a second to talk about scrape failure log before committing to it.

Copy link
Contributor

@clayton-cornell clayton-cornell left a comment

Choose a reason for hiding this comment

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

Approving for docs

@clayton-cornell clayton-cornell added the type/docs Docs Squad label across all Grafana Labs repos label Feb 27, 2025
Copy link
Collaborator

@mattdurham mattdurham left a comment

Choose a reason for hiding this comment

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

LGTM

ptodev added 2 commits March 5, 2025 13:37
* Add an http headers arg
* Add a scrape_failure_log_file argument
* Update go mod
* Add `http_headers` to doc
* Validate HTTP headers
@ptodev ptodev force-pushed the upgrade-to-prometheus-2_55 branch from 4fab89c to 320de87 Compare March 5, 2025 13:39
@ptodev ptodev merged commit b4d6d26 into main Mar 5, 2025
35 checks passed
@ptodev ptodev deleted the upgrade-to-prometheus-2_55 branch March 5, 2025 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/docs Docs Squad label across all Grafana Labs repos
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants