git.iko.soy/typeable/nixpkgs
on master help sign in
prometheus-aws-s3-exporter: init at 0.3.0
commitbdbc922b980fe8ed3b49020e17f75ad875f9ddcb authorMarek Mahut <marek.mahut@gmail.com> dateTue 3 Sep 2019, 10:46 (7 years ago) parent79cfb44
3 files changed+364
pkgs/servers/monitoring/prometheus/aws-s3-exporter.nix+27 pkgs/servers/monitoring/prometheus/aws-s3-exporter_deps.nix+336 pkgs/top-level/all-packages.nix+1
pkgs/servers/monitoring/prometheus/aws-s3-exporter.nixnew file+27
@@ -0,0 +1,27 @@
1+{ stdenv, buildGoPackage, fetchFromGitHub }:
2+
3+buildGoPackage rec {
4+ pname = "aws-s3-exporter";
5+ version = "0.3.0";
6+
7+ goPackagePath = "github.com/ribbybibby/s3_exporter";
8+
9+ goDeps = ./aws-s3-exporter_deps.nix;
10+
11+ src = fetchFromGitHub {
12+ owner = "ribbybibby";
13+ repo = "s3_exporter";
14+ rev = "v${version}";
15+ sha256 = "062qi4rfqkxwknncwcvx4g132bxhkn2bhbxi4l90wl93v6sdp9l2";
16+ };
17+
18+ doCheck = true;
19+
20+ meta = with stdenv.lib; {
21+ description = "Exports Prometheus metrics about S3 buckets and objects";
22+ homepage = "https://github.com/ribbybibby/s3_exporter";
23+ license = licenses.asl20;
24+ maintainers = [ maintainers.mmahut ];
25+ platforms = platforms.all;
26+ };
27+}
pkgs/servers/monitoring/prometheus/aws-s3-exporter_deps.nixnew file+336
@@ -0,0 +1,336 @@
1+# file generated from go.mod using vgo2nix (https://github.com/adisbladis/vgo2nix)
2+[
3+ {
4+ goPackagePath = "github.com/alecthomas/template";
5+ fetch = {
6+ type = "git";
7+ url = "https://github.com/alecthomas/template";
8+ rev = "a0175ee3bccc";
9+ sha256 = "0qjgvvh26vk1cyfq9fadyhfgdj36f1iapbmr5xp6zqipldz8ffxj";
10+ };
11+ }
12+ {
13+ goPackagePath = "github.com/alecthomas/units";
14+ fetch = {
15+ type = "git";
16+ url = "https://github.com/alecthomas/units";
17+ rev = "2efee857e7cf";
18+ sha256 = "1j65b91qb9sbrml9cpabfrcf07wmgzzghrl7809hjjhrmbzri5bl";
19+ };
20+ }
21+ {
22+ goPackagePath = "github.com/aws/aws-sdk-go";
23+ fetch = {
24+ type = "git";
25+ url = "https://github.com/aws/aws-sdk-go";
26+ rev = "v1.20.1";
27+ sha256 = "0nhdkkcm11d2n2974kph6jjhddkp1fjbcpfgmalabc798gmqfg54";
28+ };
29+ }
30+ {
31+ goPackagePath = "github.com/beorn7/perks";
32+ fetch = {
33+ type = "git";
34+ url = "https://github.com/beorn7/perks";
35+ rev = "v1.0.0";
36+ sha256 = "1i1nz1f6g55xi2y3aiaz5kqfgvknarbfl4f0sx4nyyb4s7xb1z9x";
37+ };
38+ }
39+ {
40+ goPackagePath = "github.com/davecgh/go-spew";
41+ fetch = {
42+ type = "git";
43+ url = "https://github.com/davecgh/go-spew";
44+ rev = "v1.1.1";
45+ sha256 = "0hka6hmyvp701adzag2g26cxdj47g21x6jz4sc6jjz1mn59d474y";
46+ };
47+ }
48+ {
49+ goPackagePath = "github.com/go-kit/kit";
50+ fetch = {
51+ type = "git";
52+ url = "https://github.com/go-kit/kit";
53+ rev = "v0.8.0";
54+ sha256 = "1rcywbc2pvab06qyf8pc2rdfjv7r6kxdv2v4wnpqnjhz225wqvc0";
55+ };
56+ }
57+ {
58+ goPackagePath = "github.com/go-logfmt/logfmt";
59+ fetch = {
60+ type = "git";
61+ url = "https://github.com/go-logfmt/logfmt";
62+ rev = "v0.3.0";
63+ sha256 = "1gkgh3k5w1xwb2qbjq52p6azq3h1c1rr6pfwjlwj1zrijpzn2xb9";
64+ };
65+ }
66+ {
67+ goPackagePath = "github.com/go-stack/stack";
68+ fetch = {
69+ type = "git";
70+ url = "https://github.com/go-stack/stack";
71+ rev = "v1.8.0";
72+ sha256 = "0wk25751ryyvxclyp8jdk5c3ar0cmfr8lrjb66qbg4808x66b96v";
73+ };
74+ }
75+ {
76+ goPackagePath = "github.com/gogo/protobuf";
77+ fetch = {
78+ type = "git";
79+ url = "https://github.com/gogo/protobuf";
80+ rev = "v1.1.1";
81+ sha256 = "1525pq7r6h3s8dncvq8gxi893p2nq8dxpzvq0nfl5b4p6mq0v1c2";
82+ };
83+ }
84+ {
85+ goPackagePath = "github.com/golang/protobuf";
86+ fetch = {
87+ type = "git";
88+ url = "https://github.com/golang/protobuf";
89+ rev = "v1.3.1";
90+ sha256 = "15am4s4646qy6iv0g3kkqq52rzykqjhm4bf08dk0fy2r58knpsyl";
91+ };
92+ }
93+ {
94+ goPackagePath = "github.com/jmespath/go-jmespath";
95+ fetch = {
96+ type = "git";
97+ url = "https://github.com/jmespath/go-jmespath";
98+ rev = "c2b33e8439af";
99+ sha256 = "1r6w7ydx8ydryxk3sfhzsk8m6f1nsik9jg3i1zhi69v4kfl4d5cz";
100+ };
101+ }
102+ {
103+ goPackagePath = "github.com/json-iterator/go";
104+ fetch = {
105+ type = "git";
106+ url = "https://github.com/json-iterator/go";
107+ rev = "v1.1.6";
108+ sha256 = "08caswxvdn7nvaqyj5kyny6ghpygandlbw9vxdj7l5vkp7q0s43r";
109+ };
110+ }
111+ {
112+ goPackagePath = "github.com/julienschmidt/httprouter";
113+ fetch = {
114+ type = "git";
115+ url = "https://github.com/julienschmidt/httprouter";
116+ rev = "v1.2.0";
117+ sha256 = "1k8bylc9s4vpvf5xhqh9h246dl1snxrzzz0614zz88cdh8yzs666";
118+ };
119+ }
120+ {
121+ goPackagePath = "github.com/konsorten/go-windows-terminal-sequences";
122+ fetch = {
123+ type = "git";
124+ url = "https://github.com/konsorten/go-windows-terminal-sequences";
125+ rev = "v1.0.2";
126+ sha256 = "09mn209ika7ciy87xf2x31dq5fnqw39jidgaljvmqxwk7ff1hnx7";
127+ };
128+ }
129+ {
130+ goPackagePath = "github.com/kr/logfmt";
131+ fetch = {
132+ type = "git";
133+ url = "https://github.com/kr/logfmt";
134+ rev = "b84e30acd515";
135+ sha256 = "02ldzxgznrfdzvghfraslhgp19la1fczcbzh7wm2zdc6lmpd1qq9";
136+ };
137+ }
138+ {
139+ goPackagePath = "github.com/matttproud/golang_protobuf_extensions";
140+ fetch = {
141+ type = "git";
142+ url = "https://github.com/matttproud/golang_protobuf_extensions";
143+ rev = "v1.0.1";
144+ sha256 = "1d0c1isd2lk9pnfq2nk0aih356j30k3h1gi2w0ixsivi5csl7jya";
145+ };
146+ }
147+ {
148+ goPackagePath = "github.com/modern-go/concurrent";
149+ fetch = {
150+ type = "git";
151+ url = "https://github.com/modern-go/concurrent";
152+ rev = "bacd9c7ef1dd";
153+ sha256 = "0s0fxccsyb8icjmiym5k7prcqx36hvgdwl588y0491gi18k5i4zs";
154+ };
155+ }
156+ {
157+ goPackagePath = "github.com/modern-go/reflect2";
158+ fetch = {
159+ type = "git";
160+ url = "https://github.com/modern-go/reflect2";
161+ rev = "v1.0.1";
162+ sha256 = "06a3sablw53n1dqqbr2f53jyksbxdmmk8axaas4yvnhyfi55k4lf";
163+ };
164+ }
165+ {
166+ goPackagePath = "github.com/mwitkow/go-conntrack";
167+ fetch = {
168+ type = "git";
169+ url = "https://github.com/mwitkow/go-conntrack";
170+ rev = "cc309e4a2223";
171+ sha256 = "0nbrnpk7bkmqg9mzwsxlm0y8m7s9qd9phr1q30qlx2qmdmz7c1mf";
172+ };
173+ }
174+ {
175+ goPackagePath = "github.com/pkg/errors";
176+ fetch = {
177+ type = "git";
178+ url = "https://github.com/pkg/errors";
179+ rev = "v0.8.0";
180+ sha256 = "001i6n71ghp2l6kdl3qq1v2vmghcz3kicv9a5wgcihrzigm75pp5";
181+ };
182+ }
183+ {
184+ goPackagePath = "github.com/pmezard/go-difflib";
185+ fetch = {
186+ type = "git";
187+ url = "https://github.com/pmezard/go-difflib";
188+ rev = "v1.0.0";
189+ sha256 = "0c1cn55m4rypmscgf0rrb88pn58j3ysvc2d0432dp3c6fqg6cnzw";
190+ };
191+ }
192+ {
193+ goPackagePath = "github.com/prometheus/client_golang";
194+ fetch = {
195+ type = "git";
196+ url = "https://github.com/prometheus/client_golang";
197+ rev = "v0.9.4";
198+ sha256 = "0s134fj4i7k6pxdmxwkdi7amb1882yq33spv15hg3pkpbd3h311p";
199+ };
200+ }
201+ {
202+ goPackagePath = "github.com/prometheus/client_model";
203+ fetch = {
204+ type = "git";
205+ url = "https://github.com/prometheus/client_model";
206+ rev = "fd36f4220a90";
207+ sha256 = "1bs5d72k361llflgl94c22n0w53j30rsfh84smgk8mbjbcmjsaa5";
208+ };
209+ }
210+ {
211+ goPackagePath = "github.com/prometheus/common";
212+ fetch = {
213+ type = "git";
214+ url = "https://github.com/prometheus/common";
215+ rev = "v0.4.1";
216+ sha256 = "0sf4sjdckblz1hqdfvripk3zyp8xq89w7q75kbsyg4c078af896s";
217+ };
218+ }
219+ {
220+ goPackagePath = "github.com/prometheus/procfs";
221+ fetch = {
222+ type = "git";
223+ url = "https://github.com/prometheus/procfs";
224+ rev = "v0.0.2";
225+ sha256 = "0s7pvs7fgnfpmym3cd0k219av321h9sf3yvdlnn3qy0ps280lg7k";
226+ };
227+ }
228+ {
229+ goPackagePath = "github.com/sirupsen/logrus";
230+ fetch = {
231+ type = "git";
232+ url = "https://github.com/sirupsen/logrus";
233+ rev = "v1.4.2";
234+ sha256 = "087k2lxrr9p9dh68yw71d05h5g9p5v26zbwd6j7lghinjfaw334x";
235+ };
236+ }
237+ {
238+ goPackagePath = "github.com/stretchr/objx";
239+ fetch = {
240+ type = "git";
241+ url = "https://github.com/stretchr/objx";
242+ rev = "v0.1.1";
243+ sha256 = "0iph0qmpyqg4kwv8jsx6a56a7hhqq8swrazv40ycxk9rzr0s8yls";
244+ };
245+ }
246+ {
247+ goPackagePath = "github.com/stretchr/testify";
248+ fetch = {
249+ type = "git";
250+ url = "https://github.com/stretchr/testify";
251+ rev = "v1.3.0";
252+ sha256 = "0wjchp2c8xbgcbbq32w3kvblk6q6yn533g78nxl6iskq6y95lxsy";
253+ };
254+ }
255+ {
256+ goPackagePath = "golang.org/x/crypto";
257+ fetch = {
258+ type = "git";
259+ url = "https://go.googlesource.com/crypto";
260+ rev = "c2843e01d9a2";
261+ sha256 = "01xgxbj5r79nmisdvpq48zfy8pzaaj90bn6ngd4nf33j9ar1dp8r";
262+ };
263+ }
264+ {
265+ goPackagePath = "golang.org/x/net";
266+ fetch = {
267+ type = "git";
268+ url = "https://go.googlesource.com/net";
269+ rev = "d28f0bde5980";
270+ sha256 = "18xj31h70m7xxb7gc86n9i21w6d7djbjz67zfaljm4jqskz6hxkf";
271+ };
272+ }
273+ {
274+ goPackagePath = "golang.org/x/sync";
275+ fetch = {
276+ type = "git";
277+ url = "https://go.googlesource.com/sync";
278+ rev = "37e7f081c4d4";
279+ sha256 = "1bb0mw6ckb1k7z8v3iil2qlqwfj408fvvp8m1cik2b46p7snyjhm";
280+ };
281+ }
282+ {
283+ goPackagePath = "golang.org/x/sys";
284+ fetch = {
285+ type = "git";
286+ url = "https://go.googlesource.com/sys";
287+ rev = "b47fdc937951";
288+ sha256 = "17k4qwql2zizrxwjd0qv0gccwgyyv2axiha1vh5lrjfps1h5kli7";
289+ };
290+ }
291+ {
292+ goPackagePath = "golang.org/x/text";
293+ fetch = {
294+ type = "git";
295+ url = "https://go.googlesource.com/text";
296+ rev = "v0.3.2";
297+ sha256 = "0flv9idw0jm5nm8lx25xqanbkqgfiym6619w575p7nrdh0riqwqh";
298+ };
299+ }
300+ {
301+ goPackagePath = "golang.org/x/tools";
302+ fetch = {
303+ type = "git";
304+ url = "https://go.googlesource.com/tools";
305+ rev = "90fa682c2a6e";
306+ sha256 = "03ic2xsy51jw9749wl7gszdbz99iijbd2bckgygl6cm9w5m364ak";
307+ };
308+ }
309+ {
310+ goPackagePath = "gopkg.in/alecthomas/kingpin.v2";
311+ fetch = {
312+ type = "git";
313+ url = "https://gopkg.in/alecthomas/kingpin.v2";
314+ rev = "v2.2.6";
315+ sha256 = "0mndnv3hdngr3bxp7yxfd47cas4prv98sqw534mx7vp38gd88n5r";
316+ };
317+ }
318+ {
319+ goPackagePath = "gopkg.in/check.v1";
320+ fetch = {
321+ type = "git";
322+ url = "https://gopkg.in/check.v1";
323+ rev = "20d25e280405";
324+ sha256 = "0k1m83ji9l1a7ng8a7v40psbymxasmssbrrhpdv2wl4rhs0nc3np";
325+ };
326+ }
327+ {
328+ goPackagePath = "gopkg.in/yaml.v2";
329+ fetch = {
330+ type = "git";
331+ url = "https://gopkg.in/yaml.v2";
332+ rev = "v2.2.1";
333+ sha256 = "0dwjrs2lp2gdlscs7bsrmyc5yf6mm4fvgw71bzr9mv2qrd2q73s1";
334+ };
335+ }
336+]
pkgs/top-level/all-packages.nix+1
@@ -15046,6 +15046,7 @@ in
1504615046 prom2json = callPackage ../servers/monitoring/prometheus/prom2json.nix { };
1504715047 prometheus = prometheus_1;
1504815048 prometheus-alertmanager = callPackage ../servers/monitoring/prometheus/alertmanager.nix { };
15049+ prometheus-aws-s3-exporter = callPackage ../servers/monitoring/prometheus/aws-s3-exporter.nix { };
1504915050 prometheus-bind-exporter = callPackage ../servers/monitoring/prometheus/bind-exporter.nix { };
1505015051 prometheus-blackbox-exporter = callPackage ../servers/monitoring/prometheus/blackbox-exporter.nix { };
1505115052 prometheus-collectd-exporter = callPackage ../servers/monitoring/prometheus/collectd-exporter.nix { };