Overview
Request 1150280 new
This is a replacement for golang-github-justwatchcom-elasticsearch_exporter.
It is the same application, but the sourced moved to a new location on GitHub, and
updating the old and broken package containing an obsolete organization in its name
did not make sense.
One additional change is the use of a dedicated system user in order to not allow
different Prometheus components on a machine to interfere with each other.
There is one "bug" when upgrading the package on machines with existing
golang-github-justwatchcom-elasticsearch_exporter installations - the service is
disabled during the upgrade (likely during the uninstall of the obsoleted package),
and needs to be manually re-enabled/started by the administrator.
Since this is just hosted in a devel project, I think it is not a big issue, but
happy to hear about better ideas.
Request History
crameleon created request
This is a replacement for golang-github-justwatchcom-elasticsearch_exporter.
It is the same application, but the sourced moved to a new location on GitHub, and
updating the old and broken package containing an obsolete organization in its name
did not make sense.
One additional change is the use of a dedicated system user in order to not allow
different Prometheus components on a machine to interfere with each other.
There is one "bug" when upgrading the package on machines with existing
golang-github-justwatchcom-elasticsearch_exporter installations - the service is
disabled during the upgrade (likely during the uninstall of the obsoleted package),
and needs to be manually re-enabled/started by the administrator.
Since this is just hosted in a devel project, I think it is not a big issue, but
happy to hear about better ideas.
One more change I forgot to mention:
ExecReload
was dropped, the application hot-reloads certificates when they change on disk without the need for sending a signal.The exporter uses
promu
for building. Let's leverage it here as well. Please compare e.g. https://build.opensuse.org/package/show/server:monitoring/golang-github-prometheus-prometheusHi, building this with
promu build
results in:Using
-v
it seems to invokego build
without the needed arguments, which I pass in my customgo build
call:I think most of the used custom build options are not recommended anymore. Please compare this request:
https://build.opensuse.org/request/show/1145684
Building with
promu
has the advantage of setting the right BuildDate and BuildUser for reproducible builds.Reproducible builds can be achieved using settings in the project configuration:
https://en.opensuse.org/index.php?title=openSUSE:Reproducible_Builds#With_OBS
Why are the custom options not recommended?
Other openSUSE packagers faced the issue with building PIE using
promu
as well, and upstream suggests patchingflags.yaml
:https://github.com/prometheus/promu/issues/158
This sounds like unnecessary overhead, given
promu
just being a wrapper aroundgo build
, the latter of which I can invoke directly with the needed arguments.I understand the desire to use a common build tool, but it does in my opinion not help using wrappers which merely make it more complicated.
@STorresi, @aeneas_jaissle, @aldemir_a, @bitshuffler, @bnicholes, @ciriarte, @dakechi, @darix, @deadpoint, @dstoecker, @ecsos, @jcavalheiro, @lrupp, @marostegui, @mcaj, @mge1512, @mnhauke, @mseben, @netmask, @peternixon, @psmt, @rhomann, @schubi2, @shapbot, @witekbedyk, @worldcitizen, @wrosenauer: review reminder