tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
0
fork
atom
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
prometheus-process-exporter: init at 0.5.0
Jan Hrnko
6 years ago
bf9fd00b
37e333af
+188
3 changed files
expand all
collapse all
unified
split
pkgs
servers
monitoring
prometheus
process-exporter.nix
process-exporter_deps.nix
top-level
all-packages.nix
+31
pkgs/servers/monitoring/prometheus/process-exporter.nix
···
1
1
+
{ stdenv, buildGoPackage, fetchFromGitHub }:
2
2
+
3
3
+
buildGoPackage rec {
4
4
+
pname = "process-exporter";
5
5
+
version = "0.5.0";
6
6
+
7
7
+
goPackagePath = "github.com/ncabatoff/process-exporter";
8
8
+
9
9
+
goDeps = ./process-exporter_deps.nix;
10
10
+
11
11
+
src = fetchFromGitHub {
12
12
+
owner = "ncabatoff";
13
13
+
repo = pname;
14
14
+
rev = "v${version}";
15
15
+
sha256 = "129vqry3l8waxcyvx83wg0dvh3qg4pr3rl5fw7vmhgdzygbaq3bq";
16
16
+
};
17
17
+
18
18
+
postPatch = ''
19
19
+
substituteInPlace proc/read_test.go --replace /bin/cat cat
20
20
+
'';
21
21
+
22
22
+
doCheck = true;
23
23
+
24
24
+
meta = with stdenv.lib; {
25
25
+
description = "Prometheus exporter that mines /proc to report on selected processes";
26
26
+
homepage = "https://github.com/ncabatoff/process-exporter";
27
27
+
license = licenses.mit;
28
28
+
maintainers = with maintainers; [ maintainers."1000101" ];
29
29
+
platforms = platforms.linux;
30
30
+
};
31
31
+
}
+156
pkgs/servers/monitoring/prometheus/process-exporter_deps.nix
···
1
1
+
# file generated from go.mod using vgo2nix (https://github.com/adisbladis/vgo2nix)
2
2
+
[
3
3
+
{
4
4
+
goPackagePath = "github.com/beorn7/perks";
5
5
+
fetch = {
6
6
+
type = "git";
7
7
+
url = "https://github.com/beorn7/perks";
8
8
+
rev = "3a771d992973";
9
9
+
sha256 = "1l2lns4f5jabp61201sh88zf3b0q793w4zdgp9nll7mmfcxxjif3";
10
10
+
};
11
11
+
}
12
12
+
{
13
13
+
goPackagePath = "github.com/golang/protobuf";
14
14
+
fetch = {
15
15
+
type = "git";
16
16
+
url = "https://github.com/golang/protobuf";
17
17
+
rev = "v1.1.0";
18
18
+
sha256 = "0ya4ha7m20bw048m1159ppqzlvda4x0vdprlbk5sdgmy74h3xcdq";
19
19
+
};
20
20
+
}
21
21
+
{
22
22
+
goPackagePath = "github.com/google/go-cmp";
23
23
+
fetch = {
24
24
+
type = "git";
25
25
+
url = "https://github.com/google/go-cmp";
26
26
+
rev = "v0.2.0";
27
27
+
sha256 = "1fbv0x27k9sn8svafc0hjwsnckk864lv4yi7bvzrxvmd3d5hskds";
28
28
+
};
29
29
+
}
30
30
+
{
31
31
+
goPackagePath = "github.com/kr/pretty";
32
32
+
fetch = {
33
33
+
type = "git";
34
34
+
url = "https://github.com/kr/pretty";
35
35
+
rev = "v0.1.0";
36
36
+
sha256 = "18m4pwg2abd0j9cn5v3k2ksk9ig4vlwxmlw9rrglanziv9l967qp";
37
37
+
};
38
38
+
}
39
39
+
{
40
40
+
goPackagePath = "github.com/kr/pty";
41
41
+
fetch = {
42
42
+
type = "git";
43
43
+
url = "https://github.com/kr/pty";
44
44
+
rev = "v1.1.1";
45
45
+
sha256 = "0383f0mb9kqjvncqrfpidsf8y6ns5zlrc91c6a74xpyxjwvzl2y6";
46
46
+
};
47
47
+
}
48
48
+
{
49
49
+
goPackagePath = "github.com/kr/text";
50
50
+
fetch = {
51
51
+
type = "git";
52
52
+
url = "https://github.com/kr/text";
53
53
+
rev = "v0.1.0";
54
54
+
sha256 = "1gm5bsl01apvc84bw06hasawyqm4q84vx1pm32wr9jnd7a8vjgj1";
55
55
+
};
56
56
+
}
57
57
+
{
58
58
+
goPackagePath = "github.com/matttproud/golang_protobuf_extensions";
59
59
+
fetch = {
60
60
+
type = "git";
61
61
+
url = "https://github.com/matttproud/golang_protobuf_extensions";
62
62
+
rev = "v1.0.1";
63
63
+
sha256 = "1d0c1isd2lk9pnfq2nk0aih356j30k3h1gi2w0ixsivi5csl7jya";
64
64
+
};
65
65
+
}
66
66
+
{
67
67
+
goPackagePath = "github.com/ncabatoff/fakescraper";
68
68
+
fetch = {
69
69
+
type = "git";
70
70
+
url = "https://github.com/ncabatoff/fakescraper";
71
71
+
rev = "15938421d91a";
72
72
+
sha256 = "1in2iakq6xly9r8gk0mfim8n0glbjzpa07hkaj1rlrm0i11jlc6f";
73
73
+
};
74
74
+
}
75
75
+
{
76
76
+
goPackagePath = "github.com/ncabatoff/go-seq";
77
77
+
fetch = {
78
78
+
type = "git";
79
79
+
url = "https://github.com/ncabatoff/go-seq";
80
80
+
rev = "b08ef85ed833";
81
81
+
sha256 = "1x88x285n4wf221pp7ccmh2ai7rgcnwz764gn8k861qg30jl1ky6";
82
82
+
};
83
83
+
}
84
84
+
{
85
85
+
goPackagePath = "github.com/ncabatoff/procfs";
86
86
+
fetch = {
87
87
+
type = "git";
88
88
+
url = "https://github.com/ncabatoff/procfs";
89
89
+
rev = "9ced60d7b905";
90
90
+
sha256 = "19756h4lw5v8f0xr70cl8gd0wfqcnszrhhgawqhyinnir82rz728";
91
91
+
};
92
92
+
}
93
93
+
{
94
94
+
goPackagePath = "github.com/prometheus/client_golang";
95
95
+
fetch = {
96
96
+
type = "git";
97
97
+
url = "https://github.com/prometheus/client_golang";
98
98
+
rev = "v0.8.0";
99
99
+
sha256 = "1xqny3147g12n4j03kxm8s9mvdbs3ln6i56c655mybrn9jjy48kd";
100
100
+
};
101
101
+
}
102
102
+
{
103
103
+
goPackagePath = "github.com/prometheus/client_model";
104
104
+
fetch = {
105
105
+
type = "git";
106
106
+
url = "https://github.com/prometheus/client_model";
107
107
+
rev = "5c3871d89910";
108
108
+
sha256 = "04psf81l9fjcwascsys428v03fx4fi894h7fhrj2vvcz723q57k0";
109
109
+
};
110
110
+
}
111
111
+
{
112
112
+
goPackagePath = "github.com/prometheus/common";
113
113
+
fetch = {
114
114
+
type = "git";
115
115
+
url = "https://github.com/prometheus/common";
116
116
+
rev = "c7de2306084e";
117
117
+
sha256 = "11dqfm2d0m4sjjgyrnayman96g59x2apmvvqby9qmww2qj2k83ig";
118
118
+
};
119
119
+
}
120
120
+
{
121
121
+
goPackagePath = "github.com/prometheus/procfs";
122
122
+
fetch = {
123
123
+
type = "git";
124
124
+
url = "https://github.com/prometheus/procfs";
125
125
+
rev = "ea9eea638872";
126
126
+
sha256 = "1j99qszynx2asac82bhzhk0g1nav87nfgkb1cz5a2iywj81liirj";
127
127
+
};
128
128
+
}
129
129
+
{
130
130
+
goPackagePath = "golang.org/x/sync";
131
131
+
fetch = {
132
132
+
type = "git";
133
133
+
url = "https://go.googlesource.com/sync";
134
134
+
rev = "37e7f081c4d4";
135
135
+
sha256 = "1bb0mw6ckb1k7z8v3iil2qlqwfj408fvvp8m1cik2b46p7snyjhm";
136
136
+
};
137
137
+
}
138
138
+
{
139
139
+
goPackagePath = "gopkg.in/check.v1";
140
140
+
fetch = {
141
141
+
type = "git";
142
142
+
url = "https://gopkg.in/check.v1";
143
143
+
rev = "788fd7840127";
144
144
+
sha256 = "0v3bim0j375z81zrpr5qv42knqs0y2qv2vkjiqi5axvb78slki1a";
145
145
+
};
146
146
+
}
147
147
+
{
148
148
+
goPackagePath = "gopkg.in/yaml.v2";
149
149
+
fetch = {
150
150
+
type = "git";
151
151
+
url = "https://gopkg.in/yaml.v2";
152
152
+
rev = "v2.2.1";
153
153
+
sha256 = "0dwjrs2lp2gdlscs7bsrmyc5yf6mm4fvgw71bzr9mv2qrd2q73s1";
154
154
+
};
155
155
+
}
156
156
+
]
+1
pkgs/top-level/all-packages.nix
···
15080
15080
prometheus-openvpn-exporter = callPackage ../servers/monitoring/prometheus/openvpn-exporter.nix { };
15081
15081
prometheus-postfix-exporter = callPackage ../servers/monitoring/prometheus/postfix-exporter.nix { };
15082
15082
prometheus-postgres-exporter = callPackage ../servers/monitoring/prometheus/postgres-exporter.nix { };
15083
15083
+
prometheus-process-exporter = callPackage ../servers/monitoring/prometheus/process-exporter.nix { };
15083
15084
prometheus-pushgateway = callPackage ../servers/monitoring/prometheus/pushgateway.nix { };
15084
15085
prometheus-rabbitmq-exporter = callPackage ../servers/monitoring/prometheus/rabbitmq-exporter.nix { };
15085
15086
prometheus-snmp-exporter = callPackage ../servers/monitoring/prometheus/snmp-exporter.nix {