git.iko.soy/typeable/nixpkgs
on master help sign in
prometheus-nginxlog-exporter: init at 1.3.0
commit6c692a29c88e7a15d708fe132f17e69b98a84783 authorMarek Mahut <marek.mahut@gmail.com> dateFri 15 Nov 2019, 12:21 (7 years ago) parent50d0618
3 files changed+310
pkgs/servers/monitoring/prometheus/nginxlog-exporter.nix+27 pkgs/servers/monitoring/prometheus/nginxlog-exporter_deps.nix+282 pkgs/top-level/all-packages.nix+1
pkgs/servers/monitoring/prometheus/nginxlog-exporter.nixnew file+27
@@ -0,0 +1,27 @@
1+{ stdenv, buildGoPackage, fetchFromGitHub }:
2+
3+buildGoPackage rec {
4+ pname = "nginxlog_exporter";
5+ version = "1.3.0";
6+
7+ src = fetchFromGitHub {
8+ owner = "martin-helmich";
9+ repo = "prometheus-nginxlog-exporter";
10+ rev = "v${version}";
11+ sha256 = "0cma6hgagqdms6x40v0q4jn8gjq1awyg1aqk5l8mz7l6k132qq7k";
12+ };
13+
14+ goPackagePath = "github.com/martin-helmich/prometheus-nginxlog-exporter";
15+
16+ goDeps = ./nginxlog-exporter_deps.nix;
17+
18+ doCheck = true;
19+
20+ meta = with stdenv.lib; {
21+ description = "Export metrics from Nginx access log files to Prometheus";
22+ homepage = "https://github.com/martin-helmich/prometheus-nginxlog-exporter";
23+ license = licenses.asl20;
24+ maintainers = with maintainers; [ mmahut ];
25+ platforms = platforms.all;
26+ };
27+}
pkgs/servers/monitoring/prometheus/nginxlog-exporter_deps.nixnew file+282
@@ -0,0 +1,282 @@
1+# file generated from go.mod using vgo2nix (https://github.com/adisbladis/vgo2nix)
2+[
3+ {
4+ goPackagePath = "github.com/armon/go-radix";
5+ fetch = {
6+ type = "git";
7+ url = "https://github.com/armon/go-radix";
8+ rev = "v1.0.0";
9+ sha256 = "1m1k0jz9gjfrk4m7hjm7p03qmviamfgxwm2ghakqxw3hdds8v503";
10+ };
11+ }
12+ {
13+ goPackagePath = "github.com/beorn7/perks";
14+ fetch = {
15+ type = "git";
16+ url = "https://github.com/beorn7/perks";
17+ rev = "3ac7bf7a47d1";
18+ sha256 = "1qc3l4r818xpvrhshh1sisc5lvl9479qspcfcdbivdyh0apah83r";
19+ };
20+ }
21+ {
22+ goPackagePath = "github.com/davecgh/go-spew";
23+ fetch = {
24+ type = "git";
25+ url = "https://github.com/davecgh/go-spew";
26+ rev = "v1.1.1";
27+ sha256 = "0hka6hmyvp701adzag2g26cxdj47g21x6jz4sc6jjz1mn59d474y";
28+ };
29+ }
30+ {
31+ goPackagePath = "github.com/fsnotify/fsnotify";
32+ fetch = {
33+ type = "git";
34+ url = "https://github.com/fsnotify/fsnotify";
35+ rev = "v1.4.7";
36+ sha256 = "07va9crci0ijlivbb7q57d2rz9h27zgn2fsm60spjsqpdbvyrx4g";
37+ };
38+ }
39+ {
40+ goPackagePath = "github.com/golang/protobuf";
41+ fetch = {
42+ type = "git";
43+ url = "https://github.com/golang/protobuf";
44+ rev = "0c1f6d65b5a1";
45+ sha256 = "1ad3zv0s3swslfwmk0wry9qbjz596689z13f2s7d9gska6msigsl";
46+ };
47+ }
48+ {
49+ goPackagePath = "github.com/gopherjs/gopherjs";
50+ fetch = {
51+ type = "git";
52+ url = "https://github.com/gopherjs/gopherjs";
53+ rev = "0766667cb4d1";
54+ sha256 = "13pfc9sxiwjky2lm1xb3i3lcisn8p6mgjk2d927l7r92ysph8dmw";
55+ };
56+ }
57+ {
58+ goPackagePath = "github.com/hashicorp/consul";
59+ fetch = {
60+ type = "git";
61+ url = "https://github.com/hashicorp/consul";
62+ rev = "de080672fee9";
63+ sha256 = "1q46gn7gv7ara21akkbyzlnari4naxax2d0z917y56ra4lwm259i";
64+ };
65+ }
66+ {
67+ goPackagePath = "github.com/hashicorp/go-msgpack";
68+ fetch = {
69+ type = "git";
70+ url = "https://github.com/hashicorp/go-msgpack";
71+ rev = "v0.5.3";
72+ sha256 = "00jv0ajqd58pkb2yyhlrjp0rv1mvb1ijx3yqjyikcmzvk9jb4h5m";
73+ };
74+ }
75+ {
76+ goPackagePath = "github.com/hashicorp/golang-lru";
77+ fetch = {
78+ type = "git";
79+ url = "https://github.com/hashicorp/golang-lru";
80+ rev = "v0.5.1";
81+ sha256 = "13f870cvk161bzjj6x41l45r5x9i1z9r2ymwmvm7768kg08zznpy";
82+ };
83+ }
84+ {
85+ goPackagePath = "github.com/hashicorp/hcl";
86+ fetch = {
87+ type = "git";
88+ url = "https://github.com/hashicorp/hcl";
89+ rev = "v1.0.0";
90+ sha256 = "0q6ml0qqs0yil76mpn4mdx4lp94id8vbv575qm60jzl1ijcl5i66";
91+ };
92+ }
93+ {
94+ goPackagePath = "github.com/hpcloud/tail";
95+ fetch = {
96+ type = "git";
97+ url = "https://github.com/hpcloud/tail";
98+ rev = "v1.0.0";
99+ sha256 = "1njpzc0pi1acg5zx9y6vj9xi6ksbsc5d387rd6904hy6rh2m6kn0";
100+ };
101+ }
102+ {
103+ goPackagePath = "github.com/jtolds/gls";
104+ fetch = {
105+ type = "git";
106+ url = "https://github.com/jtolds/gls";
107+ rev = "v4.20.0";
108+ sha256 = "1k7xd2q2ysv2xsh373qs801v6f359240kx0vrl0ydh7731lngvk6";
109+ };
110+ }
111+ {
112+ goPackagePath = "github.com/kr/pretty";
113+ fetch = {
114+ type = "git";
115+ url = "https://github.com/kr/pretty";
116+ rev = "v0.1.0";
117+ sha256 = "18m4pwg2abd0j9cn5v3k2ksk9ig4vlwxmlw9rrglanziv9l967qp";
118+ };
119+ }
120+ {
121+ goPackagePath = "github.com/kr/pty";
122+ fetch = {
123+ type = "git";
124+ url = "https://github.com/kr/pty";
125+ rev = "v1.1.1";
126+ sha256 = "0383f0mb9kqjvncqrfpidsf8y6ns5zlrc91c6a74xpyxjwvzl2y6";
127+ };
128+ }
129+ {
130+ goPackagePath = "github.com/kr/text";
131+ fetch = {
132+ type = "git";
133+ url = "https://github.com/kr/text";
134+ rev = "v0.1.0";
135+ sha256 = "1gm5bsl01apvc84bw06hasawyqm4q84vx1pm32wr9jnd7a8vjgj1";
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/pmezard/go-difflib";
149+ fetch = {
150+ type = "git";
151+ url = "https://github.com/pmezard/go-difflib";
152+ rev = "v1.0.0";
153+ sha256 = "0c1cn55m4rypmscgf0rrb88pn58j3ysvc2d0432dp3c6fqg6cnzw";
154+ };
155+ }
156+ {
157+ goPackagePath = "github.com/prometheus/client_golang";
158+ fetch = {
159+ type = "git";
160+ url = "https://github.com/prometheus/client_golang";
161+ rev = "5636dc67ae77";
162+ sha256 = "0fb4w52zp0jk8218gwk4wgbhpj7d4hp6n00dvm8s0ajbysbx524d";
163+ };
164+ }
165+ {
166+ goPackagePath = "github.com/prometheus/client_model";
167+ fetch = {
168+ type = "git";
169+ url = "https://github.com/prometheus/client_model";
170+ rev = "fa8ad6fec335";
171+ sha256 = "11a7v1fjzhhwsl128znjcf5v7v6129xjgkdpym2lial4lac1dhm9";
172+ };
173+ }
174+ {
175+ goPackagePath = "github.com/prometheus/common";
176+ fetch = {
177+ type = "git";
178+ url = "https://github.com/prometheus/common";
179+ rev = "4402f4e5ea79";
180+ sha256 = "1nskicw0k0kay9dqg8hw2clgcnvjfcz839rijvrz4wh7gl42qiag";
181+ };
182+ }
183+ {
184+ goPackagePath = "github.com/prometheus/procfs";
185+ fetch = {
186+ type = "git";
187+ url = "https://github.com/prometheus/procfs";
188+ rev = "abf152e5f3e9";
189+ sha256 = "0cp8lznv1b4zhi3wnbjkfxwzhkqd3wbmiy6mwgjanip8l9l3ykws";
190+ };
191+ }
192+ {
193+ goPackagePath = "github.com/satyrius/gonx";
194+ fetch = {
195+ type = "git";
196+ url = "https://github.com/satyrius/gonx";
197+ rev = "47c52b995fe5";
198+ sha256 = "0f0b6ac9xlai168d32zas4v2afk5b2q1bs0qi3dykkk6lhq7b58m";
199+ };
200+ }
201+ {
202+ goPackagePath = "github.com/smartystreets/assertions";
203+ fetch = {
204+ type = "git";
205+ url = "https://github.com/smartystreets/assertions";
206+ rev = "b2de0cb4f26d";
207+ sha256 = "1i7ldgavgl35c7gk25p7bvdr282ckng090zr4ch9mk1705akx09y";
208+ };
209+ }
210+ {
211+ goPackagePath = "github.com/smartystreets/goconvey";
212+ fetch = {
213+ type = "git";
214+ url = "https://github.com/smartystreets/goconvey";
215+ rev = "200a235640ff";
216+ sha256 = "08hgfwjs5zqwsx1z5ja15d0g4glprb3ck7dfi88kwv5q5fl1p139";
217+ };
218+ }
219+ {
220+ goPackagePath = "github.com/stretchr/objx";
221+ fetch = {
222+ type = "git";
223+ url = "https://github.com/stretchr/objx";
224+ rev = "v0.1.0";
225+ sha256 = "19ynspzjdynbi85xw06mh8ad5j0qa1vryvxjgvbnyrr8rbm4vd8w";
226+ };
227+ }
228+ {
229+ goPackagePath = "github.com/stretchr/testify";
230+ fetch = {
231+ type = "git";
232+ url = "https://github.com/stretchr/testify";
233+ rev = "v1.4.0";
234+ sha256 = "187i5g88sxfy4vxpm7dw1gwv29pa2qaq475lxrdh5livh69wqfjb";
235+ };
236+ }
237+ {
238+ goPackagePath = "golang.org/x/sys";
239+ fetch = {
240+ type = "git";
241+ url = "https://go.googlesource.com/sys";
242+ rev = "c200b10b5d5e";
243+ sha256 = "1f764m3q05q2dq1pdms07jcixw4xakqw46w1djrmbhjmd9q8b0av";
244+ };
245+ }
246+ {
247+ goPackagePath = "gopkg.in/check.v1";
248+ fetch = {
249+ type = "git";
250+ url = "https://gopkg.in/check.v1";
251+ rev = "788fd7840127";
252+ sha256 = "0v3bim0j375z81zrpr5qv42knqs0y2qv2vkjiqi5axvb78slki1a";
253+ };
254+ }
255+ {
256+ goPackagePath = "gopkg.in/fsnotify.v1";
257+ fetch = {
258+ type = "git";
259+ url = "https://gopkg.in/fsnotify.v1";
260+ rev = "v1.4.7";
261+ sha256 = "07va9crci0ijlivbb7q57d2rz9h27zgn2fsm60spjsqpdbvyrx4g";
262+ };
263+ }
264+ {
265+ goPackagePath = "gopkg.in/tomb.v1";
266+ fetch = {
267+ type = "git";
268+ url = "https://gopkg.in/tomb.v1";
269+ rev = "dd632973f1e7";
270+ sha256 = "1lqmq1ag7s4b3gc3ddvr792c5xb5k6sfn0cchr3i2s7f1c231zjv";
271+ };
272+ }
273+ {
274+ goPackagePath = "gopkg.in/yaml.v2";
275+ fetch = {
276+ type = "git";
277+ url = "https://gopkg.in/yaml.v2";
278+ rev = "v2.2.4";
279+ sha256 = "11bwj757wi8kdrcnlgfqb8vv2d2xdhlghmyagd19i62khrkchsg2";
280+ };
281+ }
282+]
pkgs/top-level/all-packages.nix+1
@@ -15446,6 +15446,7 @@ in
1544615446 prometheus-mysqld-exporter = callPackage ../servers/monitoring/prometheus/mysqld-exporter.nix { };
1544715447 prometheus-nextcloud-exporter = callPackage ../servers/monitoring/prometheus/nextcloud-exporter.nix { };
1544815448 prometheus-nginx-exporter = callPackage ../servers/monitoring/prometheus/nginx-exporter.nix { };
15449+ prometheus-nginxlog-exporter = callPackage ../servers/monitoring/prometheus/nginxlog-exporter.nix { };
1544915450 prometheus-node-exporter = callPackage ../servers/monitoring/prometheus/node-exporter.nix { };
1545015451 prometheus-openvpn-exporter = callPackage ../servers/monitoring/prometheus/openvpn-exporter.nix { };
1545115452 prometheus-postfix-exporter = callPackage ../servers/monitoring/prometheus/postfix-exporter.nix { };