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