forked from MohawkTSDB/mohawk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mohawk.spec
89 lines (70 loc) · 2.81 KB
/
mohawk.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
%global provider github
%global provider_tld com
%global project yaacov
%global repo mohawk
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
%global import_path %{provider_prefix}
%global commit 8eefab3f90ab8c828e202a5a0fc20150ecae1ff2
%global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: %{repo}
Version: 0.33.3
Release: 1%{?dist}
Summary: Time series metric data storage
License: Apache
URL: https://%{import_path}
Source0: https://github.com/MohawkTSDB/mohawk/archive/%{version}.tar.gz
BuildRequires: git
BuildRequires: golang >= 1.2-7
%description
Mohawk is a metric data storage engine that uses a plugin architecture for data storage and a simple REST API as the primary interface.
%prep
%setup -q -n mohawk-%{version}
# many golang binaries are "vendoring" (bundling) sources, so remove them. Those dependencies need to be packaged independently.
rm -rf vendor
%build
# set up temporary build gopath, and put our directory there
mkdir -p ./_build/src/github.com/MohawkTSDB
ln -s $(pwd) ./_build/src/github.com/MohawkTSDB/mohawk
export GOPATH=$(pwd)/_build:%{gopath}
export GOBIN=$(pwd)/_build/bin
go get ./src
make
%install
install -d %{buildroot}%{_bindir}
install -p -m 0755 ./mohawk %{buildroot}%{_bindir}/mohawk
%files
%defattr(-,root,root,-)
%doc LICENSE README.md
%{_bindir}/mohawk
%changelog
* Tue Jun 26 2018 Yaacov Zamir <[email protected]> 0.33.3-1
- Do not allow .. in static files path
* Sat Feb 17 2018 Yaacov Zamir <[email protected]> 0.33.2-1
- Set exports http header to text
- Do not export old data
* Tue Feb 14 2018 Yaacov Zamir <[email protected]> 0.33.1-1
- Add optional default tenant
- Add Prometheus export endpoint
* Tue Jan 21 2018 Yaacov Zamir <[email protected]> 0.32.2-1
- Fix duplicate buckets for stats requests
* Tue Jan 11 2018 Yaacov Zamir <[email protected]> 0.32.1-1
- Add error handlers to api calls
- Alerts accept a list of metrics or a tags regex
* Tue Jan 2 2018 Yaacov Zamir <[email protected]> 0.31.1-1
- Storage default to ASC insdead of DESC
- Default limit changed from 2000 to 20000
* Wed Dec 31 2017 Yaacov Zamir <[email protected]> 0.30.8-1
- Add options response
- Fix query by tags
* Sat Dec 30 2017 Yaacov Zamir <[email protected]> 0.28.2-1
- Response includes feedback
- Remove empty stats response
- Add help (cli) for storage options
- Enable string time format parsing, e.g. -7h, 6mn
- Add the /m metrics endpoint (rest api)
- Add memory storage options, retention and granularity times
- Add mongo storage options, multiple servers, username and password
* Wed Dec 6 2017 Yaacov Zamir <[email protected]> 0.27.1-1
- Add min max to memory storage stats
* Wed Dec 6 2017 Yaacov Zamir <[email protected]> 0.26.2-7
- Initial RPM release