telegraf/telegraf.spec
Jordi Massaguer 30e343a43d Accepting request 597837 from home:mschnitzer
- Release 1.6.0
  * Release Notes
    - The mysql input plugin has been updated fix a number of type convertion issues. This may cause a field type error when inserting
      into InfluxDB due the change of types.
    - To address this we have introduced a new metric_version option to control enabling the new format. For in depth recommendations on
      upgrading please reference the mysql plugin documentation.
    - It is encouraged to migrate to the new model when possible as the old version is deprecated and will be removed in a future version.
    - The postgresql plugins now defaults to using a persistent connection to the database. In environments where TCP connections are
      terminated the max_lifetime setting should be set less than the collection interval to prevent errors.
    - The sqlserver input plugin has a new query and data model that can be enabled by setting query_version = 2. It is encouraged to
      migrate to the new model when possible as the old version is deprecated and will be removed in a future version.
    - An option has been added to the openldap input plugin that reverses metric name to improve grouping. This change is enabled
      when reverse_metric_names = true is set. It is encouraged to enable this option when possible as the old ordering is deprecated.
    - The new http input configured with data_format = "json" can perform the same task as the, now deprecated, httpjson input.
  * New Inputs
    http - Thanks to @grange74
    ipset - Thanks to @sajoupa
    nats - Thanks to @mjs & @levex
  * New Processors
    override - Thanks to @KarstenSchnitter
  * New Parsers
    dropwizard - Thanks to @atzoum
  * Features
    #3551: Add health status mapping from string to int in elasticsearch input.
    #3580: Add control over which stats to gather in basicstats aggregator.
    #3596: Add messages_delivered_get to rabbitmq input.
    #3632: Add wired field to mem input.
    #3619: Add support for gathering exchange metrics to the rabbitmq input.
    #3565: Add support for additional metrics on Linux in zfs input.
    #3524: Add available_entropy field to kernel input plugin.

OBS-URL: https://build.opensuse.org/request/show/597837
OBS-URL: https://build.opensuse.org/package/show/devel:languages:go/telegraf?expand=0&rev=4
2018-04-18 17:02:51 +00:00

76 lines
2.5 KiB
RPMSpec

#
# spec file for package telegraf
#
# Copyright (c) 2018 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: telegraf
Version: 1.6.0
Release: 0
License: MIT
Summary: The plugin-driven server agent for collecting & reporting metrics
Url: https://github.com/influxdata/telegraf
Group: System/Monitoring
Source: %{name}-%{version}.tar.gz
Source1: %{name}-deps.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: go >= 1.7
BuildRequires: golang-packaging
## Features ##
## upstream request: https://github.com/influxdata/telegraf/issues/3785
Patch0: feature_passive_amqp_exchange.patch
## /Features ##
%define _telegraf_dir %{_builddir}/src/github.com/influxdata/%{name}
%define _config_dir %{_sysconfdir}/%{name}
%description
Telegraf is an agent written in Go for collecting, processing, aggregating, and writing metrics.
Design goals are to have a minimal memory footprint with a plugin system so that developers in the community can
easily add support for collecting metrics from local or remote services.
%prep
tar xfvz ../SOURCES/%{name}-%{version}.tar.gz
%patch0
mkdir -p %{_telegraf_dir}
mv %{name}-%{version}/* %{_telegraf_dir}
tar -C %{_builddir}/src -xjvf %{SOURCE1}
%build
export GOPATH="%{_builddir}:$GOPATH"
cd %{_telegraf_dir}
make %{name}
%install
mkdir -p %{buildroot}%{_bindir}
install -m755 %{_telegraf_dir}/%{name} %{buildroot}%{_bindir}/%{name}
mkdir -p %{buildroot}/%{_config_dir}
install -m644 %{_telegraf_dir}/etc/%{name}.conf %{buildroot}/%{_config_dir}
%files
%doc src/github.com/influxdata/%{name}/CHANGELOG.md
%doc src/github.com/influxdata/%{name}/CONTRIBUTING.md
%license src/github.com/influxdata/%{name}/LICENSE
%doc src/github.com/influxdata/%{name}/README.md
%dir %{_config_dir}
%config %{_config_dir}/%{name}.conf
%{_bindir}/%{name}
%changelog