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 prometheus library #28716

Merged
merged 8 commits into from
Nov 3, 2021
Merged

Conversation

ChrsMark
Copy link
Member

@ChrsMark ChrsMark commented Oct 29, 2021

Copy of #28023

What does this PR do?

This PR updates the github.com/prometheus/prometheus and makes the proper LICENCE overrides for the dependencies:

go get github.com/prometheus/[email protected]
make notice

This is a prerequisite for #27269

Detailed licence checks for libs:
1. github.com/ajstarks/svgo -> CC-BY-4.0
2. github.com/bmizerany/pat -> from README.md
3. github.com/cactus/go-statsd-client/statsd -> MIT
4. github.com/dnaeon/go-vcr -> BSD-2-Clause
5. github.com/golang/freetype -> GPL-2.0
6. github.com/hudl/fargo -> [MIT] from README.md
7. github.com/influxdata/line-protocol -> MIT
8. github.com/lightstep/lightstep-tracer-common/golang/gogo -> MIT
9. github.com/pascaldekloe/goe -> CC0-1.0
10. github.com/streadway/handy -> [BSD 2-Clause ] from README.md
11. gonum.org/v1/plot -> BSD-3-Clause

@botelastic botelastic bot added the needs_team Indicates that the issue/PR needs a Team:* label label Oct 29, 2021
@mergify
Copy link
Contributor

mergify bot commented Oct 29, 2021

This pull request does not have a backport label. Could you fix it @ChrsMark? 🙏
To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-v./d./d./d is the label to automatically backport to the 7./d branch. /d is the digit

NOTE: backport-skip has been added to this pull request.

@ChrsMark ChrsMark self-assigned this Oct 29, 2021
@mergify mergify bot added the backport-skip Skip notification from the automated backport with mergify label Oct 29, 2021
@ChrsMark ChrsMark added Team:Integrations Label for the Integrations team and removed backport-skip Skip notification from the automated backport with mergify labels Oct 29, 2021
@elasticmachine
Copy link
Collaborator

Pinging @elastic/integrations (Team:Integrations)

@botelastic botelastic bot removed the needs_team Indicates that the issue/PR needs a Team:* label label Oct 29, 2021
@mergify
Copy link
Contributor

mergify bot commented Oct 29, 2021

This pull request does not have a backport label. Could you fix it @ChrsMark? 🙏
To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-v./d./d./d is the label to automatically backport to the 7./d branch. /d is the digit

NOTE: backport-skip has been added to this pull request.

@mergify mergify bot added the backport-skip Skip notification from the automated backport with mergify label Oct 29, 2021
@ChrsMark
Copy link
Member Author

@ruflin @jsoriano it seems that even with the partial updates of the related libraries this upgrade brings a lot of changes by itself. So I'm not sure if we can avoid having a PR with a lot of changes in order to upgrade the prometheus library.

@jsoriano
Copy link
Member

@ruflin @jsoriano it seems that even with the partial updates of the related libraries this upgrade brings a lot of changes by itself. So I'm not sure if we can avoid having a PR with a lot of changes in order to upgrade the prometheus library.

Ok, let's go with it.

Copy link
Member

@jsoriano jsoriano left a comment

Choose a reason for hiding this comment

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

LGTM if jenkins agrees.

github.com/devigned/tab v0.1.2-0.20190607222403-0c15cf42f9a2 // indirect
github.com/dgraph-io/badger/v3 v3.2103.1
github.com/digitalocean/go-libvirt v0.0.0-20180301200012-6075ea3c39a1
github.com/dlclark/regexp2 v1.1.7-0.20171009020623-7632a260cbaf // indirect
github.com/docker/docker v1.4.2-0.20190924003213-a8608b5b67c7
github.com/docker/docker v20.10.7+incompatible
Copy link
Member

Choose a reason for hiding this comment

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

In case this version is needed for something, take into account that there is a replace for docker that we cannot easily remove without breaking community beats (see #28621 (comment)).

@elasticmachine
Copy link
Collaborator

elasticmachine commented Oct 29, 2021

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview preview

Expand to view the summary

Build stats

  • Start Time: 2021-11-03T12:36:40.138+0000

  • Duration: 217 min 25 sec

  • Commit: 43d28d9

Test stats 🧪

Test Results
Failed 0
Passed 53588
Skipped 5234
Total 58822

💚 Flaky test report

Tests succeeded.

🤖 GitHub comments

To re-run your PR in the CI, just comment with:

  • /test : Re-trigger the build.

  • /package : Generate the packages and run the E2E tests.

  • /beats-tester : Run the installation tests with beats-tester.

@@ -30,7 +30,7 @@ require (
github.com/apoydence/eachers v0.0.0-20181020210610-23942921fe77 // indirect
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5
github.com/aws/aws-lambda-go v1.13.3
github.com/aws/aws-sdk-go v1.19.48
github.com/aws/aws-sdk-go v1.38.60
Copy link
Member

Choose a reason for hiding this comment

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

@kaiyan-sheng As a follow up, would be good to figure out why we have 2 aws sdk ..

Copy link
Member

@ruflin ruflin left a comment

Choose a reason for hiding this comment

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

I'm good moving forward with this. Somehow CI has a complaint.

Signed-off-by: chrismark <[email protected]>
Signed-off-by: chrismark <[email protected]>
Signed-off-by: chrismark <[email protected]>
@ChrsMark
Copy link
Member Author

ChrsMark commented Nov 3, 2021

Update here. No need for the overrides in overrides.json, this was an issue that I had locally because of the GOFLAGS="-mod=mod" that was set on my end. It was resolved under other scope discussing with @jsoriano :).

Also I remove the replace for docker since this PR will hit 8.0.

Copy link
Member

@jsoriano jsoriano left a comment

Choose a reason for hiding this comment

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

👍

Signed-off-by: chrismark <[email protected]>
@mergify
Copy link
Contributor

mergify bot commented Nov 3, 2021

This pull request is now in conflicts. Could you fix it? 🙏
To fixup this pull request, you can check out it locally. See documentation: https://help.github.com/articles/checking-out-pull-requests-locally/

git fetch upstream
git checkout -b test_prom_upgrade upstream/test_prom_upgrade
git merge upstream/master
git push upstream test_prom_upgrade

@@ -27,6 +27,7 @@ https:/elastic/beats/compare/v7.0.0-alpha2...master[Check the HEAD d
- Enable IMDSv2 support for `add_cloud_metadata` processor on AWS. {issue}22101[22101] {pull}28285[28285]
- Update kubernetes.namespace from keyword to group field and add name, labels, annotations, uuid as its fields {pull}27917[27917]
- Previously, RE2 and thus Golang had a bug where `(|a)*` matched more characters than `(|a)+`. To stay consistent with PCRE, the bug was fixed. Configurations that rely on the old, buggy behaviour has to be adjusted. See more about Golang bug: https:/golang/go/issues/46123 {pull}27543[27543]
- Remove replace for docker library. {pull}28716[28716]
Copy link
Member

Choose a reason for hiding this comment

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

This is not a user facing change 🙂 In any case we could say something as Update docker client.

Signed-off-by: chrismark <[email protected]>
@ChrsMark ChrsMark merged commit dc02c08 into elastic:master Nov 3, 2021
@jsoriano
Copy link
Member

jsoriano commented Dec 8, 2021

@ChrsMark it seems this change is not in 8.0 branch, can you please backport it if needed?

@jsoriano
Copy link
Member

jsoriano commented Dec 8, 2021

Ok, seen in an email thread that this is not needed in 8.0 branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-skip Skip notification from the automated backport with mergify Team:Integrations Label for the Integrations team v8.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants