Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Build linux binary from source in 0.4.0 #275

Closed
guruguruguru opened this issue Feb 1, 2023 · 11 comments
Closed

Build linux binary from source in 0.4.0 #275

guruguruguru opened this issue Feb 1, 2023 · 11 comments

Comments

@guruguruguru
Copy link

guruguruguru commented Feb 1, 2023

Hi,

linux was removed from the Makefile. How can I now build the exporter now?

Edit: I am trying the go-build but this results in:

./main.go:620:39: cannot use *tlsconfigFile (variable of type string) as type *web.FlagConfig in argument to web.ListenAndServe

Thanks,
Dennis

@vutkin
Copy link
Contributor

vutkin commented Feb 1, 2023

Have you tried to run next command for build?

make oci.pc prereq
make go-build

@guruguruguru
Copy link
Author

Hi @vutkin
yes I did. With go-build I get the error above:

./main.go:620:39: cannot use *tlsconfigFile (variable of type string) as type *web.FlagConfig in argument to web.ListenAndServe

@vutkin
Copy link
Contributor

vutkin commented Feb 1, 2023

@vutkin
Copy link
Contributor

vutkin commented Feb 1, 2023

sorry, forgot to add

make oci.pc prereq

@guruguruguru
Copy link
Author

Hi @vutkin
make oci.pc is running fine.
As I am building on Oracle Linux the make prereq won't run but I do these steps accordingly.

I still don't know what to do with the error during the build in main.go

@vutkin
Copy link
Contributor

vutkin commented Feb 1, 2023

Do you build from master or tag 0.4.0?

looks like some package cause this error:
image
Screenshot 2023-02-01 at 15 00 30

@guruguruguru
Copy link
Author

I tried both, 0.4.0 and master. Also, I build for Oracle 10,11,12,19 and not 21 but this does not seem to be the issue.

golang version is 1.18.9

@vutkin
Copy link
Contributor

vutkin commented Feb 1, 2023

Please try this commit: b4155d2, it works for me

@guruguruguru
Copy link
Author

Yes, works, thank you.

@guruguruguru
Copy link
Author

FYI: it also builds on CentOS7 now, Oracle 10, 11, 12

pelov added a commit to pelov/oracledb_exporter that referenced this issue Feb 1, 2023
@guruguruguru
Copy link
Author

Tank you very much for your support here!

pelov added a commit to pelov/oracledb_exporter that referenced this issue Feb 3, 2023
pelov added a commit to pelov/oracledb_exporter that referenced this issue Feb 5, 2023
@Yannig Yannig closed this as completed in 44ce18c Feb 6, 2023
schmikei added a commit to observIQ/oracledb_exporter that referenced this issue Apr 14, 2023
* remove metric scrape interval as it should be up to the invoker how to run

* feat: add gh workflows (iamseth#265)

* Bump github.com/BurntSushi/toml from 1.2.0 to 1.2.1 (iamseth#271)

Bumps [github.com/BurntSushi/toml](https://github.com/BurntSushi/toml) from 1.2.0 to 1.2.1.
- [Release notes](https://github.com/BurntSushi/toml/releases)
- [Commits](BurntSushi/toml@v1.2.0...v1.2.1)

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

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump github.com/prometheus/exporter-toolkit from 0.7.3 to 0.8.2 (iamseth#272)

Bumps [github.com/prometheus/exporter-toolkit](https://github.com/prometheus/exporter-toolkit) from 0.7.3 to 0.8.2.
- [Release notes](https://github.com/prometheus/exporter-toolkit/releases)
- [Changelog](https://github.com/prometheus/exporter-toolkit/blob/master/CHANGELOG.md)
- [Commits](prometheus/exporter-toolkit@v0.7.3...v0.8.2)

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

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump github.com/prometheus/client_golang from 1.13.0 to 1.14.0 (iamseth#274)

Bumps [github.com/prometheus/client_golang](https://github.com/prometheus/client_golang) from 1.13.0 to 1.14.0.
- [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.13.0...v1.14.0)

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

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump github.com/prometheus/common from 0.37.0 to 0.39.0 (iamseth#273)

Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.37.0 to 0.39.0.
- [Release notes](https://github.com/prometheus/common/releases)
- [Commits](prometheus/common@v0.37.0...v0.39.0)

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

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* fix: Fixed github action runs against forked repos (iamseth#280)

* chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

fix: fix typo

fix: fix typo

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

fix: fix typo

* chore: savepoint

chore: savepoint

feat: test gh action pr-cleanup (#2)

* feat: test gh action pr-cleanup

* chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

* chore: savepoint

* chore: savepoint

* chore: savepoint

* chore: savepoint

* chore: savepoint

* chore: savepoint

* chore: savepoint

* feat: do a release 0.4.1 (#3)

* chore: savepoint

* chore: savepoint

* chore: savepoint

* feat: do a release 0.4.2 (iamseth#4)

* chore: savepoint

* chore: savepoint (iamseth#5)

* chore: savepoint

* chore: savepoint

* chore: savepoint

* feat: do release 0.4.4 (iamseth#6)

* feat: do a release 0.4.4

* chore: savepoint

* chore: savepoint

* chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

chore: savepoint

* fix: fix GitHub release failed with status: 403 (iamseth#282)

* Fix 0.4.0 compilation problem (iamseth#277)

* Fix parsing kingpin flags according to exporter-toolkit v0.8.2

Fixes iamseth#275

Signed-off-by: Nikolay Pelov <[email protected]>

* Update README file to reflect the changed options from exporter-toolkit.

* Update release version to 0.4.1

---------

Signed-off-by: Nikolay Pelov <[email protected]>

* Improve logging after the switch to github.com/go-kit/kit/log (iamseth#278)

Signed-off-by: Nikolay Pelov <[email protected]>

* refact: refact PR/release github-actions  (iamseth#286)

* refact: refact PR github action a bit

* chore: savepoint

* chore: savepoint

* Caiwc/multi target (iamseth#234)

* feat(): support scrape multi target

rebase branch && update Makefile version

* add multi-target explain to readme

* docs: correct dns example port of readme

---------

Co-authored-by: wccai <[email protected]>
Co-authored-by: wccai <wccai@easyops>

* README: add example of image hosted on github image registry

* Bump golang.org/x/net from 0.4.0 to 0.7.0 (iamseth#290)

Bumps [golang.org/x/net](https://github.com/golang/net) from 0.4.0 to 0.7.0.
- [Release notes](https://github.com/golang/net/releases)
- [Commits](golang/net@v0.4.0...v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump github.com/prometheus/common from 0.39.0 to 0.40.0 (iamseth#291)

Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.39.0 to 0.40.0.
- [Release notes](https://github.com/prometheus/common/releases)
- [Commits](prometheus/common@v0.39.0...v0.40.0)

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

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump github.com/prometheus/common from 0.40.0 to 0.41.0 (iamseth#292)

Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.40.0 to 0.41.0.
- [Release notes](https://github.com/prometheus/common/releases)
- [Commits](prometheus/common@v0.40.0...v0.41.0)

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

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump github.com/prometheus/exporter-toolkit from 0.8.2 to 0.9.0 (iamseth#294)

Bumps [github.com/prometheus/exporter-toolkit](https://github.com/prometheus/exporter-toolkit) from 0.8.2 to 0.9.0.
- [Release notes](https://github.com/prometheus/exporter-toolkit/releases)
- [Changelog](https://github.com/prometheus/exporter-toolkit/blob/master/CHANGELOG.md)
- [Commits](prometheus/exporter-toolkit@v0.8.2...v0.9.0)

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

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump github.com/prometheus/exporter-toolkit from 0.9.0 to 0.9.1 (iamseth#295)

Bumps [github.com/prometheus/exporter-toolkit](https://github.com/prometheus/exporter-toolkit) from 0.9.0 to 0.9.1.
- [Release notes](https://github.com/prometheus/exporter-toolkit/releases)
- [Changelog](https://github.com/prometheus/exporter-toolkit/blob/master/CHANGELOG.md)
- [Commits](prometheus/exporter-toolkit@v0.9.0...v0.9.1)

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

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Bump github.com/prometheus/common from 0.41.0 to 0.42.0 (iamseth#296)

Bumps [github.com/prometheus/common](https://github.com/prometheus/common) from 0.41.0 to 0.42.0.
- [Release notes](https://github.com/prometheus/common/releases)
- [Commits](prometheus/common@v0.41.0...v0.42.0)

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

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Fix broken link (iamseth#298)

* 👷 Update packages versions + clean up

* Update packages versions + clean up
* Use Oracle image to retrieve binaries
* Use FQN for docker image

* 🐛 Fix oraclelinux image build

* 🔧 Use a parameter to set oracle client version

* remove percent and hyphen (iamseth#302)

Some oracledb tables return names with % and -

* try to resolve scrape interval of 0 implications

* fix scrape interval nil check

* fix synchronization

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Nikolay Pelov <[email protected]>
Co-authored-by: Viktor Utkin <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Nikolay Pelov <[email protected]>
Co-authored-by: caiwc <[email protected]>
Co-authored-by: wccai <[email protected]>
Co-authored-by: wccai <wccai@easyops>
Co-authored-by: Yannig Perré <[email protected]>
Co-authored-by: markruler <[email protected]>
Co-authored-by: Yannig <[email protected]>
Co-authored-by: Egor Sidortsov <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants