Johannes Kastl 2024-11-13 15:33:45 +00:00 committed by Git OBS Bridge
commit c4cefed7ea
17 changed files with 651 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

29
Makefile Normal file
View File

@ -0,0 +1,29 @@
NAME = alloy
SPEC = alloy.spec
default: clean tar
clean:
rm -rf $(NAME) $(NAME)-*.obscpio $(NAME)-*.tar.gz ui-*.tar.gz vendor.tar.gz
tar:
osc service manualrun
@version=$$( awk '/^Version:/ {print $$2;exit;}' $(SPEC) ) && \
echo "Package version is $$version" && \
basename=$(NAME)-$$version && \
obscpio=$$basename.obscpio && \
ui=ui-$$version.tar && \
wd=$$(pwd) && \
tmpdir=$$(mktemp -d -p /tmp) && \
cd $$tmpdir && \
cpio -idv < $$wd/$$obscpio && \
cd $$basename && \
cd internal/web/ui/ && \
yarn --network-timeout=1200000 && \
yarn run build && \
cd .. && \
echo "Creating web assets tarball" && \
tar -cf $$wd/$$ui ui/ && \
cd $$wd && \
gzip -f $$ui && \
rm -rf $$tmpdir

14
PACKAGING_README.md Normal file
View File

@ -0,0 +1,14 @@
# Packaging Grafana Alloy
In addition to the source code in the tarball, this package also
needs the assets for the web UI. These can be generated by the
`Makefile` that is present in this package.
To do that, you need to have `make` and `yarn` installed locally.
1. Change the version in the `_service` file
2. Run `make`
3. Create a changelog entry
4. Commit the changes as usual
For the OBS workflow you also need `obs-service-go_modules` as well
as `obs-service-tar_scm` and `obs-service-recompress`.

8
_constraints Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0"?>
<constraints>
<hardware>
<memory>
<size unit="G">8</size>
</memory>
</hardware>
</constraints>

22
_service Normal file
View File

@ -0,0 +1,22 @@
<services>
<service name="obs_scm" mode="manual">
<param name="url">https://github.com/grafana/alloy</param>
<param name="scm">git</param>
<param name="exclude">.git</param>
<param name="revision">v1.5.0</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="versionrewrite-pattern">v(.*)</param>
<param name="changesgenerate">disable</param>
</service>
<service name="set_version" mode="manual">
</service>
<service name="go_modules" mode="manual">
</service>
<!-- services below are running at buildtime -->
<service name="tar" mode="buildtime">
</service>
<service name="recompress" mode="buildtime">
<param name="file">*.tar</param>
<param name="compression">gz</param>
</service>
</services>

4
_servicedata Normal file
View File

@ -0,0 +1,4 @@
<servicedata>
<service name="tar_scm">
<param name="url">https://github.com/grafana/alloy</param>
<param name="changesrevision">7d95579015e121941001f0f06167e873dc7aabcc</param></service></servicedata>

3
alloy-1.0.0.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:16686139cbf0aa7a7e2555a5ed92653dd06f83d40b6359cd17e8cd3df963ed2c
size 29902861

3
alloy-1.4.3.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:63f4fb9ce320f7467779b739ace15124ad45ccb911cfa4fb74a2cebcb5208997
size 31401485

3
alloy-1.5.0.obscpio Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ec70d9ad352f65f58ff9d5aa114d8d5f5705c7a52b9f4e295c0238a6072c35e3
size 31787533

390
alloy.changes Normal file
View File

@ -0,0 +1,390 @@
-------------------------------------------------------------------
Wed Nov 13 14:46:08 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- update to 1.5.0:
For a full list of changes, please refer to the CHANGELOG!
https://github.com/grafana/alloy/blob/v1.5.0/CHANGELOG.md
* Breaking changes
- import.git: The default value for revision has changed from
HEAD to main. (@ptodev) It is no longer allowed to set
revision to "HEAD", "FETCH_HEAD", "ORIG_HEAD", "MERGE_HEAD",
or "CHERRY_PICK_HEAD".
- The Otel update to v0.112.0 has a few breaking changes:
- [otelcol.processor.deltatocumulative] Change max_streams
default value to 9223372036854775807 (max int).
- open-telemetry/opentelemetry-collector-contrib#35048
- [otelcol.connector.spanmetrics] Change namespace default
value to traces.span.metrics.
- open-telemetry/opentelemetry-collector-contrib#34485
- [otelcol.exporter.logging] Removed in favor of the
otelcol.exporter.debug.
- open-telemetry/opentelemetry-collector#11337
* Features
- Add the function path_join to the stdlib. (@wildum)
- Add pyroscope.receive_http component to receive and forward
Pyroscope profiles (@marcsanmi)
- Add support to loki.source.syslog for the RFC3164 format
("BSD syslog"). (@sushain97)
- Add support to loki.source.api to be able to extract the
tenant from the HTTP X-Scope-OrgID header (@QuentinBisson)
- (Experimental) Add a loki.secretfilter component to redact
secrets from collected logs.
- (Experimental) Add a prometheus.write.queue component to add
an alternative to prometheus.remote_write which allowing the
writing of metrics to a prometheus endpoint. (@mattdurham)
- (Experimental) Add the arrary.combine_maps function to the
stdlib. (@ptodev, @wildum)
- Add support bundle generation via the API endpoint /-/support
(@dehaansa)
-------------------------------------------------------------------
Wed Oct 30 15:52:06 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- update to 1.4.3:
For a full list of changes, please refer to the CHANGELOG!
https://github.com/grafana/alloy/blob/v1.4.3/CHANGELOG.md
* Bugfixes
- Fix an issue where some faro.receiver would drop multiple
fields defined in payload.meta.browser, as fields were
defined in the struct.
- pyroscope.scrape no longer tries to scrape endpoints which
are not active targets anymore. (@wildum @mattdurham
@dehaansa @ptodev)
- Fixed a bug with loki.source.podlogs not starting in large
clusters due to short informer sync timeout.
(@elburnetto-intapp)
- prometheus.exporter.windows: Fixed bug with exclude regular
expression config arguments which caused missing metrics.
(@ptodev)
-------------------------------------------------------------------
Wed Oct 30 13:32:08 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- update to 1.4.2:
For a full list of changes, please refer to the CHANGELOG!
https://github.com/grafana/alloy/blob/v1.4.2/CHANGELOG.md
* Bugfixes
- Update windows_exporter from v0.27.2 vo v0.27.3: (@jkroepke)
- Fixes a bug where scraping Windows service crashes alloy
- Update yet-another-cloudwatch-exporter from v0.60.0 vo
v0.61.0: (@morremeyer)
- Fixes a bug where cloudwatch S3 metrics are reported as 0
- Issue 1687 - otelcol.exporter.awss3 fails to configure
(@cydergoth)
- Fix parsing of the Level configuration attribute in
debug_metrics config block
- Ensure "optional" debug_metrics config block really is
optional
- Fixed an issue with loki.process where stage.luhn and
stage.timestamp would not apply default configuration
settings correctly (@thampiotr)
- Fixed an issue with loki.process where configuration could be
reloaded even if there were no changes. (@ptodev, @thampiotr)
- Fix issue where loki.source.kubernetes took into account all
labels, instead of specific logs labels. Resulting in
duplication. (@mattdurham)
-------------------------------------------------------------------
Wed Oct 30 13:23:03 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- update to 1.4.1:
For a full list of changes, please refer to the CHANGELOG!
https://github.com/grafana/alloy/blob/v1.4.1/CHANGELOG.md
* Bugfixes
- Windows installer: Don't quote Alloy's binary path in the
Windows Registry. (@jkroepke)
-------------------------------------------------------------------
Wed Oct 30 13:06:50 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- update to 1.4.0:
For a full list of changes, please refer to the CHANGELOG!
https://github.com/grafana/alloy/blob/v1.4.0/CHANGELOG.md
* Security fixes
- Add quotes to windows service path to prevent path
interception attack. CVE-2024-8975 (@mattdurham)
* Breaking changes
- Some debug metrics for otelcol components have changed.
(@thampiotr) For example, otelcol.exporter.otlp's
exporter_sent_spans_ratio_total metric is now
otelcol_exporter_sent_spans_total.
- [otelcol.processor.transform] The functions
convert_sum_to_gauge and convert_gauge_to_sum must now be
used in the metric context rather than in the datapoint
context.
open-telemetry/opentelemetry-collector-contrib#34567
(@wildum)
- Upgrade Beyla from 1.7.0 to 1.8.2. A complete list of changes
can be found on the Beyla releases page:
https://github.com/grafana/beyla/releases. (@wildum) It
contains a few breaking changes for the component beyla.ebpf:
- renamed metric process.cpu.state to cpu.mode
- renamed metric beyla_build_info to
beyla_internal_build_info
* Features
- Added Datadog Exporter community component, enabling
exporting of otel-formatted Metrics and traces to Datadog.
(@polyrain) (Experimental) Add an otelcol.processor.interval
component to aggregate metrics and periodically forward the
latest values to the next component in the pipeline.
* Enhancements
- Clustering peer resolution through --cluster.join-addresses
flag has been improved with more consistent behaviour, better
error handling and added support for A/AAAA DNS records. If
necessary, users can temporarily opt out of this new
behaviour with the --cluster.use-discovery-v1, but this can
only be used as a temporary measure, since this flag will be
disabled in future releases. (@thampiotr)
- Added a new panel to Cluster Overview dashboard to show the
number of peers seen by each instance in the cluster. This
can help diagnose cluster split brain issues. (@thampiotr)
- Updated Snowflake exporter with performance improvements for
larger environments. Also added a new panel to track deleted
tables to the Snowflake mixin. (@Caleb-Hurshman)
- Add a otelcol.processor.groupbyattrs component to reassociate
collected metrics that match specified attributes from
opentelemetry. (@kehindesalaam)
- Update windows_exporter to v0.27.2. (@jkroepke) The
smb.enabled_list and smb_client.enabled_list doesn't have any
effect anymore. All sub-collectors are enabled by default.
* Bugfixes
- Fix a bug where the scrape timeout for a Probe resource was
not applied, overwriting the scrape interval instead.
(@morremeyer, @stefanandres)
- Fix a bug where custom components don't always get updated
when the config is modified in an imported directory.
(@ante012)
- Fixed an issue where providing <hostname>:<port> in
--cluster.join-addresses would only resolve with DNS to a
single address, instead of using all the available records.
(@thampiotr)
* Other
- Update OTel from v0.105.0 vo v0.108.0: (@wildum)
-------------------------------------------------------------------
Wed Oct 30 12:57:01 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- update to 1.3.4:
For a full list of changes, please refer to the CHANGELOG!
https://github.com/grafana/alloy/blob/v1.3.4/CHANGELOG.md
* Bugfixes
- Windows installer: Don't quote Alloy's binary path in the
Windows Registry. (@jkroepke)
-------------------------------------------------------------------
Wed Oct 30 12:45:20 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- update to 1.3.3 (1.3.2 was not released):
For a full list of changes, please refer to the CHANGELOG!
https://github.com/grafana/alloy/blob/v1.3.3/CHANGELOG.md
* Security fixes
- Add quotes to windows service path to prevent path
interception attack. CVE-2024-8975 (@mattdurham)
-------------------------------------------------------------------
Wed Oct 30 11:54:01 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- update to 1.3.1:
For a full list of changes, please refer to the CHANGELOG!
https://github.com/grafana/alloy/blob/v1.3.1/CHANGELOG.md
* Notable changes:
- Changed the cluster startup behaviour, reverting to the
previous logic where a failure to resolve cluster join peers
results in the node creating its own cluster. This is to
facilitate the process of bootstrapping a new cluster
following user feedback (@thampiotr)
- Fix a memory leak which would occur any time loki.process had
its configuration reloaded. (@ptodev)
-------------------------------------------------------------------
Wed Oct 30 11:36:13 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- update to 1.3.0:
For a full list of changes, please refer to the CHANGELOG!
https://github.com/grafana/alloy/blob/v1.3.0/CHANGELOG.md
* Breaking changes
- [otelcol.exporter.otlp,otelcol.exporter.loadbalancing]:
Change the default gRPC load balancing strategy. The default
value for the balancer_name attribute has changed to
round_robin open-telemetry/opentelemetry-collector#10319
* Breaking changes to non-GA functionality
- Update Public preview remotecfg argument from metadata to
attributes. (@erikbaranowski)
- The default value of the argument unmatched in the block
routes of the component beyla.ebpf was changed from unset to
heuristic (@marctc)
* Features
- Added community components support, enabling community
members to implement and maintain components. (@wildum)
- A new otelcol.exporter.debug component for printing OTel
telemetry from other otelcol components to the console.
(@BarunKGP)
-------------------------------------------------------------------
Wed Oct 30 11:20:07 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- update to 1.2.1:
For a full list of changes, please refer to the CHANGELOG!
https://github.com/grafana/alloy/blob/v1.2.1/CHANGELOG.md
* Bugfixes
- Fixed an issue with loki.source.kubernetes_events not
starting in large clusters due to short informer sync
timeout. (@nrwiersma)
- Updated ckit to fix an issue with armv7 panic on startup when
forming a cluster. (@imavroukakis)
- Fixed a clustering mode issue where a failure to perform
static peers discovery did not result in a fatal failure at
startup and could lead to potential split-brain issues.
(@thampiotr)
* Other
- Use Go 1.22.5 for builds. (@mattdurham)
-------------------------------------------------------------------
Wed Oct 30 10:11:44 UTC 2024 - opensuse_buildservice@ojkastl.de
- Update to version 1.2.0:
For a full list of changes, please refer to the CHANGELOG!
https://github.com/grafana/alloy/blob/v1.2.0/CHANGELOG.md#v120
* Breaking changes
- Updated OpenTelemetry to v0.102.1. (@mattdurham)
- Components
otelcol.receiver.otlp,otelcol.receiver.zipkin,otelcol.extension.jaeger_remote_sampling,
and otelcol.receiver.jaeger setting max_request_body_size
default changed from unlimited size to 20MiB. This is due
to CVE-2024-36129.
* Breaking changes to non-GA functionality
- Component otelcol.receiver.vcenter removed
vcenter.host.network.packet.errors,
vcenter.host.network.packet.count, and
vcenter.vm.network.packet.count.
- vcenter.host.network.packet.errors replaced by
vcenter.host.network.packet.error.rate.
- vcenter.host.network.packet.count replaced by
vcenter.host.network.packet.rate.
- vcenter.vm.network.packet.count replaced by
vcenter.vm.network.packet.rate.
* Features
- Add an otelcol.exporter.kafka component to send OTLP metrics,
logs, and traces to Kafka.
- Added live debugging to the UI. Live debugging streams data
as they flow through components for debugging telemetry data.
Individual components must be updated to support live
debugging. (@wildum)
- Added live debugging support for prometheus.relabel.
(@wildum)
- (Experimental) Add a otelcol.processor.deltatocumulative
component to convert metrics from delta temporality to
cumulative by accumulating samples in memory. (@rfratto)
- (Experimental) Add an otelcol.receiver.datadog component to
receive metrics and traces from Datadog. (@carrieedwards,
@jesusvazquez, @alexgreenbank, @fedetorres93)
* Enhancements
- (Public preview) Add native histogram support to
otelcol.receiver.prometheus. (@wildum)
- Added scrape_protocols option to prometheus.scrape, which
allows to control the preferred order of scrape protocols.
(@thampiotr)
- Improved filesystem error handling when working with
loki.source.file and local.file_match, which removes some
false-positive error log messages on Windows (@thampiotr)
- Updates receiver/vcenter to use new features and bugfixes
introduced in OTEL releases v0.100.0 and v0.101.0. Refer to
the v0.100.0 and v0.101.0 release notes for more detailed
information.
- Add yaml_decode to standard library. (@mattdurham, @djcode)
- Add base64_decode to standard library. (@hainenber)
- Updated OpenTelemetry Contrib to v0.102.0. (@mattdurham)
- otelcol.processor.resourcedetection: Added a tags config
argument to the azure detection mechanism. It exposes
regex-matched Azure resource tags as OpenTelemetry resource
attributes.
* Bugfixes
- Fixed an issue with prometheus.scrape in which targets that
move from one cluster instance to another could have a
staleness marker inserted and result in a gap in metrics
(@thampiotr)
- Fix panic when import.git is given a revision that does not
exist on the remote repo. (@hainenber)
- Fixed an issue with loki.source.docker where collecting logs
from targets configured with multiple networks would result
in errors. (@wildum)
-------------------------------------------------------------------
Wed Oct 30 10:05:16 UTC 2024 - opensuse_buildservice@ojkastl.de
- Update to version 1.1.1:
* Notable changes:
- Fix panic when component ID contains / in
otelcomponent.MustNewType(ID).(@qclaogui)
- Exit Alloy immediately if the port it runs on is not
available.
This port can be configured with --server.http.listen-addr or
using the default listen address127.0.0.1:12345.
(@mattdurham)
- Fix a panic in loki.source.docker when trying to stop a
target that was never started. (@wildum)
- Fix error on boot when using IPv6 advertise addresses without
explicitly specifying a port. (@matthewpi)
- Fix an issue where having long component labels (>63 chars)
on otelcol.auth components lead to a panic. (@tpaschalis)
- Update prometheus.exporter.snowflake with the latest version
of the exporter as of May 28, 2024 (@StefanKurek)
- Fixes issue where returned NULL values from database could
cause unexpected errors.
- Bubble up SSH key conversion error to facilitate failed
import.git. (@hainenber)
-------------------------------------------------------------------
Wed Oct 30 09:55:00 UTC 2024 - opensuse_buildservice@ojkastl.de
- Update to version 1.1.0:
* Features
- (Public preview) Add support for setting GOMEMLIMIT based on
cgroup setting. (@mattdurham)
- (Public preview) Introduce BoringCrypto Docker images. The
BoringCrypto image is tagged with the -boringcrypto suffix
and is only available on AMD64 and ARM64 Linux containers.
(@rfratto, @mattdurham)
- (Public preview) Introduce boringcrypto release assets.
BoringCrypto builds are publshed for Linux on AMD64 and ARM64
platforms. (@rfratto, @mattdurham)
- otelcol.exporter.loadbalancing: Add a new aws_cloud_map
resolver. (@ptodev)
- Introduce a otelcol.receiver.file_stats component from the
upstream OpenTelemetry filestatsreceiver component.
(@rfratto)
* Enhancements
- Update prometheus.exporter.kafka with the following
functionalities (@wildum):
- GSSAPI config
- enable/disable PA_FX_FAST
- set a TLS server name
- show the offset/lag for all consumer group or only the
connected ones
- set the minimum number of topics to monitor
- enable/disable auto-creation of requested topics if they
don't already exist
- regex to exclude topics / groups
- added metric kafka_broker_info
- In prometheus.exporter.kafka, the interpolation table used to
compute estimated lag metrics is now pruned on
metadata_refresh_interval instead of prune_interval_seconds.
(@wildum)
- Don't restart tailers in loki.source.kubernetes component by
above-average time deltas if K8s version is >= 1.29.1
(@hainenber)
- In mimir.rules.kubernetes, add support for running in a
cluster of Alloy instances by electing a single instance as
the leader for the mimir.rules.kubernetes component to avoid
conflicts when making calls to the Mimir API. (@56quarters)
-------------------------------------------------------------------
Tue May 21 09:01:35 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- use pkconfig(systemd) instead of systemd-devel
-------------------------------------------------------------------
Tue Apr 16 18:00:05 UTC 2024 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- new package alloy: OpenTelemetry Collector distribution with
programmable pipelines

4
alloy.obsinfo Normal file
View File

@ -0,0 +1,4 @@
name: alloy
version: 1.5.0
mtime: 1731497642
commit: 3a39c06613073f2cc76dab03c7cf8210569871e9

135
alloy.spec Normal file
View File

@ -0,0 +1,135 @@
#
# spec file for package alloy
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: alloy
Version: 1.5.0
Release: 0
Summary: OpenTelemetry Collector distribution with programmable pipelines
License: Apache-2.0
URL: https://github.com/grafana/alloy
Source0: %{name}-%{version}.tar.gz
Source1: vendor.tar.gz
Source2: ui-%{version}.tar.gz
Source3: PACKAGING_README.md
Source4: Makefile
BuildRequires: go >= 1.22.5
BuildRequires: pkgconfig(libsystemd)
BuildRequires: user(alloy)
# Require the system user and group
Requires(pre): user(alloy)
Requires(pre): group(alloy)
# for the sysconfig file
Requires(post): %fillup_prereq
# /usr/lib/go/1.23/pkg/tool/linux_386/link: mapping output file failed: cannot allocate memory
ExcludeArch: %{ix86}
%description
Grafana Alloy is an open source OpenTelemetry Collector distribution with
built-in Prometheus pipelines and support for metrics, logs, traces, and
profiles.
What can Alloy do?
* Programmable pipelines: Use a rich expression-based syntax for configuring
powerful observability pipelines.
* OpenTelemetry Collector Distribution: Alloy is a distribution of
OpenTelemetry Collector and supports dozens of its components, alongside new
components that make use of Alloy's programmable pipelines.
* Big tent: Alloy embraces Grafana's "big tent" philosophy, where Alloy can be
used with other vendors or open source databases. It has components to
perfectly integrate with multiple telemetry ecosystems:
- OpenTelemetry Collector
- Prometheus
- Grafana Loki
- Grafana Pyroscope
* Kubernetes-native: Use components to interact with native and custom
Kubernetes resources; no need to learn how to use a separate Kubernetes
operator.
* Shareable pipelines: Use modules to share your pipelines with the world.
* Automatic workload distribution: Configure Alloy instances to form a cluster
for automatic workload distribution.
* Centralized configuration support: Alloy supports retrieving its
configuration from a server for centralized configuration management.
* Debugging utilities: Use the built-in UI for visualizing and debugging
pipelines.
%prep
%autosetup -p 1 -a 1
pwd
cd internal/web/
tar xzf %{SOURCE2}
cd ../../
%build
# hash will be shortended by COMMIT_HASH:0:8 later
COMMIT_HASH="$(sed -n 's/commit: \(.*\)/\1/p' %_sourcedir/alloy.obsinfo)"
DATE_FMT="+%%Y-%%m-%%dT%%H:%%M:%%SZ"
BUILD_DATE=$(date -u -d "@${SOURCE_DATE_EPOCH}" "${DATE_FMT}" 2>/dev/null || date -u -r "${SOURCE_DATE_EPOCH}" "${DATE_FMT}" 2>/dev/null || date -u "${DATE_FMT}")
go build \
-mod=vendor \
-buildmode=pie \
-ldflags=" \
-X github.com/grafana/alloy/internal/build.Revision=${COMMIT_HASH:0:8} \
-X github.com/grafana/alloy/internal/build.Branch=HEAD \
-X github.com/grafana/alloy/internal/build.Version=v%{version} \
-X github.com/grafana/alloy/internal/build.BuildUser=geeko@obs \
-X github.com/grafana/alloy/internal/build.BuildDate=${BUILD_DATE}" \
-tags "builtinassets promtail_journal_enabled" \
-o bin/%{name} .
%install
# Install the binary.
install -D -m 0755 bin/%{name} %{buildroot}/%{_bindir}/%{name}
# systemd unit
install -D -m 0644 packaging/rpm/%{name}.service %{buildroot}/%{_unitdir}/%{name}.service
# configuration directory
install -d -m 0755 %{buildroot}/%{_sysconfdir}/%{name}
# sysconfig file
install -D -m 0644 packaging/environment-file %{buildroot}%{_fillupdir}/sysconfig.alloy
# working directory
install -d -m 0770 %{buildroot}/%{_sharedstatedir}/%{name}
install -d -m 0770 %{buildroot}/%{_sharedstatedir}/%{name}/data/
%pre
%service_add_pre %{name}.service
%post
%fillup_only
%service_add_post %{name}.service
%preun
%service_del_preun %{name}.service
%postun
%service_del_postun %{name}.service
%files
%doc README.md packaging/config.alloy
%license LICENSE
%{_bindir}/%{name}
%{_unitdir}/%{name}.service
%dir %attr(770,root,alloy) %config %{_sysconfdir}/%{name}
%dir %attr(770,alloy,alloy) %{_sharedstatedir}/%{name}
%{_fillupdir}/sysconfig.alloy
%changelog

3
ui-1.0.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a9325b0e24475d441f2aca6987a3ace02b88066ab187d9e7ecd36ed01b690a0d
size 57514307

3
ui-1.4.3.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d9775393894e7d3d79ca0b4cabfb6b3a06ad7e51757f00ecd3d7aae58127daac
size 115813577

3
ui-1.5.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:eee4071ea6c39dd977731a4afd8849b04f0848c1b8a8d78860036113f753f33f
size 115841347

3
vendor.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:42aaa63a739b6b7fd7ca11f71f193318f7226977d3f2516b0f0490eec68b7dee
size 52758191