@cryptotaxi247 / netdata-1 / commits / a8757ff1c

update go.d path in docs and ci (#18087)

Ilya Mashchenko committed Jul 8, 2024 at 19:10 UTC a8757ff1c57e003924f5a2ab1a5f4882eff5d019
20 files changed +61 -67
.github/workflows/generate-integrations.yml
+1 -1
@@ -7,7 +7,7 @@ on:
7 - master
8 paths: # If any of these files change, we need to regenerate integrations.js.
9 - 'src/collectors/**/metadata.yaml'
10 - - 'src/go/collectors/**/metadata.yaml'
10 + - 'src/go/plugin/**/metadata.yaml'
11 - 'src/exporting/**/metadata.yaml'
12 - 'src/health/notifications/**/metadata.yaml'
13 - 'integrations/templates/**'
docs/developer-and-contributor-corner/collect-unbound-metrics.md
+6 -9
@@ -58,9 +58,7 @@ configuring the collector.
58 You may not need to do any more configuration to have Netdata collect your Unbound metrics.
59
60 If you followed the steps above to enable `remote-control` and make your Unbound files readable by Netdata, that should
61 -be enough. Restart Netdata with `sudo systemctl restart netdata`, or the [appropriate
62 -method](/packaging/installer/README.md#maintaining-a-netdata-agent-installation) for your system. You should see Unbound metrics in your Netdata
63 -dashboard!
61 +be enough. Restart Netdata with `sudo systemctl restart netdata`, or the appropriate method for your system. You should see Unbound metrics in your Netdata dashboard!
62
63 ![Some charts showing Unbound metrics in real-time](https://user-images.githubusercontent.com/1153921/69659974-93160f00-103c-11ea-88e6-27e9efcf8c0d.png)
64
@@ -93,7 +91,7 @@ jobs:
91 tls_skip_verify: yes
92 tls_cert: /path/to/unbound_control.pem
93 tls_key: /path/to/unbound_control.key
96 -
94 +
95 - name: local
96 address: 127.0.0.1:8953
97 cumulative: yes
@@ -101,16 +99,15 @@ jobs:
99 ```
100
101 Netdata will attempt to read `unbound.conf` to get the appropriate `address`, `cumulative`, `use_tls`, `tls_cert`, and
104 -`tls_key` parameters.
102 +`tls_key` parameters.
103
106 -Restart Netdata with `sudo systemctl restart netdata`, or the [appropriate
107 -method](/packaging/installer/README.md#maintaining-a-netdata-agent-installation) for your system.
104 +Restart Netdata with `sudo systemctl restart netdata`, or the appropriate method for your system.
105
106 ### Manual setup for a remote Unbound server
107
108 Collecting metrics from remote Unbound servers requires manual configuration. There are too many possibilities to cover
109 all remote connections here, but the [default `unbound.conf`
113 -file](https://github.com/netdata/netdata/blob/master/src/go/collectors/go.d.plugin/config/go.d/unbound.conf) contains a few useful examples:
110 +file](https://github.com/netdata/netdata/blob/master/src/go/plugin/go.d/config/go.d/unbound.conf) contains a few useful examples:
111
112 ```yaml
113 jobs:
@@ -132,7 +129,7 @@ jobs:
129 ```
130
131 To see all the available options, see the default [unbound.conf
135 -file](https://github.com/netdata/netdata/blob/master/src/go/collectors/go.d.plugin/config/go.d/unbound.conf).
132 +file](https://github.com/netdata/netdata/blob/master/src/go/plugin/go.d/config/go.d/unbound.conf).
133
134 ## What's next?
135
src/go/plugin/go.d/README.md
+5 -5
@@ -1,7 +1,7 @@
1 <!--
2 title: go.d.plugin
3 description: "go.d.plugin is an external plugin for Netdata, responsible for running individual data collectors written in Go."
4 -custom_edit_url: "/src/go/collectors/go.d.plugin/README.md"
4 +custom_edit_url: "/src/go/plugin/go.d/README.md"
5 sidebar_label: "go.d.plugin"
6 learn_status: "Published"
7 learn_topic_type: "Tasks"
@@ -119,8 +119,8 @@ see the appropriate collector readme.
119 | [redis](https://github.com/netdata/netdata/tree/master/src/go/plugin/go.d/modules/redis) | Redis |
120 | [rspamd](https://github.com/netdata/netdata/tree/master/src/go/plugin/go.d/modules/rspamd) | Rspamd |
121 | [scaleio](https://github.com/netdata/netdata/tree/master/src/go/plugin/go.d/modules/scaleio) | Dell EMC ScaleIO |
122 -| [sensors](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/modules) | Hardware Sensors |
123 -| [SNMP](https://github.com/netdata/netdata/blob/master/src/go/collectors/go.d.plugin/modules/snmp) | SNMP |
122 +| [sensors](https://github.com/netdata/netdata/tree/master/src/go/plugin/go.d/modules/sensors) | Hardware Sensors |
123 +| [SNMP](https://github.com/netdata/netdata/blob/master/src/go/plugin/go.d/modules/snmp) | SNMP |
124 | [squidlog](https://github.com/netdata/netdata/tree/master/src/go/plugin/go.d/modules/squidlog) | Squid |
125 | [smartctl](https://github.com/netdata/netdata/tree/master/src/go/plugin/go.d/modules/smartctl) | S.M.A.R.T Storage Devices |
126 | [storcli](https://github.com/netdata/netdata/tree/master/src/go/plugin/go.d/modules/storcli) | Broadcom Hardware RAID |
@@ -154,8 +154,8 @@ sudo ./edit-config go.d.conf
154
155 Configurations are written in [YAML](http://yaml.org/).
156
157 -- [plugin configuration](https://github.com/netdata/netdata/blob/master/src/go/collectors/go.d.plugin/config/go.d.conf)
158 -- [specific module configuration](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/config/go.d)
157 +- [plugin configuration](https://github.com/netdata/netdata/blob/master/src/go/plugin/go.d/config/go.d.conf)
158 +- [specific module configuration](https://github.com/netdata/netdata/tree/master/src/go/plugin/go.d/config/go.d)
159
160 ### Enable a collector
161
src/go/plugin/go.d/agent/README.md
+2 -2
@@ -27,7 +27,7 @@ You are responsible only for __creating modules__.
27
28 ## Custom plugin example
29
30 -[Yep! So easy!](https://github.com/netdata/netdata/blob/master/src/go/collectors/go.d.plugin/examples/simple/main.go)
30 +[Yep! So easy!](https://github.com/netdata/netdata/blob/master/src/go/plugin/go.d/examples/simple/main.go)
31
32 ## How to write a Module
33
@@ -71,7 +71,7 @@ func (b *Base) SetLogger(l *logger.Logger) { b.Logger = l }
71
72 Since plugin is a set of modules all you need is:
73 - write module(s)
74 - - add module(s) to the plugins [registry](https://github.com/netdata/netdata/blob/master/src/go/collectors/go.d.plugin/plugin/module/registry.go)
74 + - add module(s) to the plugins [registry](https://github.com/netdata/netdata/blob/master/src/go/plugin/go.d/plugin/module/registry.go)
75 - start the plugin
76
77
src/go/plugin/go.d/docs/how-to-write-a-module.md
+15 -18
@@ -1,7 +1,7 @@
1 <!--
2 title: "How to write a Netdata collector in Go"
3 description: "This guide will walk you through the technical implementation of writing a new Netdata collector in Golang, with tips on interfaces, structure, configuration files, and more."
4 -custom_edit_url: "/src/go/collectors/go.d.plugin/docs/how-to-write-a-module.md"
4 +custom_edit_url: "/src/go/plugin/go.d/docs/how-to-write-a-module.md"
5 sidebar_label: "How to write a Netdata collector in Go"
6 learn_status: "Published"
7 learn_topic_type: "Tasks"
@@ -23,7 +23,7 @@ sidebar_position: 20
23 ## Write and test a simple collector
24
25 > :exclamation: You can skip most of these steps if you first experiment directy with the existing
26 -> [example module](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/modules/example), which
26 +> [example module](https://github.com/netdata/netdata/tree/master/src/go/plugin/go.d/modules/example), which
27 > will
28 > give you an idea of how things work.
29
@@ -32,18 +32,18 @@ Let's assume you want to write a collector named `example2`.
32 The steps are:
33
34 - Add the source code
35 - to [`modules/example2/`](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/modules).
35 + to [`modules/example2/`](https://github.com/netdata/netdata/tree/master/src/go/plugin/go.d/modules).
36 - [module interface](#module-interface).
37 - [suggested module layout](#module-layout).
38 - [helper packages](#helper-packages).
39 - Add the configuration
40 - to [`config/go.d/example2.conf`](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/config/go.d).
40 + to [`config/go.d/example2.conf`](https://github.com/netdata/netdata/tree/master/src/go/plugin/go.d/config/go.d).
41 - Add the module
42 - to [`config/go.d.conf`](https://github.com/netdata/netdata/blob/master/src/go/collectors/go.d.plugin/config/go.d.conf).
42 + to [`config/go.d.conf`](https://github.com/netdata/netdata/blob/master/src/go/plugin/go.d/config/go.d.conf).
43 - Import the module
44 - in [`modules/init.go`](https://github.com/netdata/netdata/blob/master/src/go/collectors/go.d.plugin/modules/init.go).
44 + in [`modules/init.go`](https://github.com/netdata/netdata/blob/master/src/go/plugin/go.d/modules/init.go).
45 - Update
46 - the [`available modules list`](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin#available-modules).
46 + the [`available modules list`](https://github.com/netdata/netdata/tree/master/src/go/plugin/go.d#available-modules).
47 - To build it, run `make` from the plugin root dir. This will create a new `go.d.plugin` binary that includes your newly
48 developed collector. It will be placed into the `bin` directory (e.g `go.d.plugin/bin`)
49 - Run it in the debug mode `bin/godplugin -d -m <MODULE_NAME>`. This will output the `STDOUT` of the collector, the same
@@ -51,10 +51,7 @@ The steps are:
51 our [documentation](/src/collectors/plugins.d/README.md#external-plugins-api).
52 - If you want to test the collector with the actual Netdata Agent, you need to replace the `go.d.plugin` binary that
53 exists in the Netdata Agent installation directory with the one you just compiled. Once
54 - you [restart](/packaging/installer/README.md#maintaining-a-netdata-agent-installation)
55 - the Netdata Agent, it will detect and run
56 - it, creating all the charts. It is advised not to remove the default `go.d.plugin` binary, but simply rename it
57 - to `go.d.plugin.old` so that the Agent doesn't run it, but you can easily rename it back once you are done.
54 + you restart the Netdata Agent, it will detect and run it, creating all the charts. It is advised not to remove the default `go.d.plugin` binary, but simply rename it to `go.d.plugin.old` so that the Agent doesn't run it, but you can easily rename it back once you are done.
55 - Run `make clean` when you are done with testing.
56
57 ## Module Interface
@@ -125,7 +122,7 @@ func (e *Example) Check() bool {
122 produces [`charts`](/src/collectors/plugins.d/README.md#chart), not
123 raw metrics.
124
128 -Use [`agent/module`](https://github.com/netdata/netdata/blob/master/src/go/collectors/go.d.plugin/agent/module/charts.go)
125 +Use [`agent/module`](https://github.com/netdata/netdata/blob/master/src/go/plugin/go.d/agent/module/charts.go)
126 package to create them,
127 it contains charts and dimensions structs.
128
@@ -205,7 +202,7 @@ Suggested minimal layout:
202 ### File `module_name.go`
203
204 > :exclamation: See the
208 -> example [`example.go`](https://github.com/netdata/netdata/blob/master/src/go/collectors/go.d.plugin/modules/example/example.go).
205 +> example [`example.go`](https://github.com/netdata/netdata/blob/master/src/go/plugin/go.d/modules/example/example.go).
206
207 Don't overload this file with the implementation details.
208
@@ -218,14 +215,14 @@ Usually it contains only:
215 ### File `charts.go`
216
217 > :exclamation: See the
221 -> example: [`charts.go`](https://github.com/netdata/netdata/blob/master/src/go/collectors/go.d.plugin/modules/example/charts.go).
218 +> example: [`charts.go`](https://github.com/netdata/netdata/blob/master/src/go/plugin/go.d/modules/example/charts.go).
219
220 Put charts, charts templates and charts constructor functions in this file.
221
222 ### File `init.go`
223
224 > :exclamation: See the
228 -> example: [`init.go`](https://github.com/netdata/netdata/blob/master/src/go/collectors/go.d.plugin/modules/example/init.go).
225 +> example: [`init.go`](https://github.com/netdata/netdata/blob/master/src/go/plugin/go.d/modules/example/init.go).
226
227 All the module initialization details should go in this file.
228
@@ -252,7 +249,7 @@ func (e *Example) initSomeValue() error {
249 ### File `collect.go`
250
251 > :exclamation: See the
255 -> example: [`collect.go`](https://github.com/netdata/netdata/blob/master/src/go/collectors/go.d.plugin/modules/example/collect.go).
252 +> example: [`collect.go`](https://github.com/netdata/netdata/blob/master/src/go/plugin/go.d/modules/example/collect.go).
253
254 This file is the entry point for the metrics collection.
255
@@ -275,7 +272,7 @@ func (e *Example) collect() (map[string]int64, error) {
272 ### File `module_name_test.go`
273
274 > :exclamation: See the
278 -> example: [`example_test.go`](https://github.com/netdata/netdata/blob/master/src/go/collectors/go.d.plugin/modules/example/example_test.go).
275 +> example: [`example_test.go`](https://github.com/netdata/netdata/blob/master/src/go/plugin/go.d/modules/example/example_test.go).
276
277 > if you have no experience in testing we recommend starting
278 > with [testing package documentation](https://golang.org/pkg/testing/).
@@ -300,6 +297,6 @@ be [`testdata`](https://golang.org/cmd/go/#hdr-Package_lists_and_patterns).
297
298 ## Helper packages
299
303 -There are [some helper packages](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg) for
300 +There are [some helper packages](https://github.com/netdata/netdata/tree/master/src/go/plugin/go.d/pkg) for
301 writing a module.
302
src/go/plugin/go.d/modules/bind/README.md
+1 -1
@@ -88,7 +88,7 @@ jobs:
88 View filter syntax: [simple patterns](https://docs.netdata.cloud/libnetdata/simple_pattern/).
89
90 For all available options please see
91 -module [configuration file](https://github.com/netdata/netdata/blob/master/src/go/collectors/go.d.plugin/config/go.d/bind.conf).
91 +module [configuration file](https://github.com/netdata/netdata/blob/master/src/go/plugin/go.d/config/go.d/bind.conf).
92
93 ## Troubleshooting
94
src/go/plugin/go.d/modules/coredns/config_schema.json
+4 -4
@@ -40,7 +40,7 @@
40 "properties": {
41 "includes": {
42 "title": "Include",
43 - "description": "Include servers whose names match any of the specified inclusion [patterns](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/matcher#readme).",
43 + "description": "Include servers whose names match any of the specified inclusion [patterns](https://github.com/netdata/netdata/tree/master/src/go/plugin/go.d/pkg/matcher#readme).",
44 "type": [
45 "array",
46 "null"
@@ -53,7 +53,7 @@
53 },
54 "excludes": {
55 "title": "Exclude",
56 - "description": "Exclude servers whose names match any of the specified exclusion [patterns](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/matcher#readme).",
56 + "description": "Exclude servers whose names match any of the specified exclusion [patterns](https://github.com/netdata/netdata/tree/master/src/go/plugin/go.d/pkg/matcher#readme).",
57 "type": [
58 "array",
59 "null"
@@ -76,7 +76,7 @@
76 "properties": {
77 "includes": {
78 "title": "Include",
79 - "description": "Include zones whose names match any of the specified inclusion [patterns](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/matcher#readme).",
79 + "description": "Include zones whose names match any of the specified inclusion [patterns](https://github.com/netdata/netdata/tree/master/src/go/plugin/go.d/pkg/matcher#readme).",
80 "type": [
81 "array",
82 "null"
@@ -89,7 +89,7 @@
89 },
90 "excludes": {
91 "title": "Exclude",
92 - "description": "Exclude zones whose names match any of the specified exclusion [patterns](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/matcher#readme).",
92 + "description": "Exclude zones whose names match any of the specified exclusion [patterns](https://github.com/netdata/netdata/tree/master/src/go/plugin/go.d/pkg/matcher#readme).",
93 "type": [
94 "array",
95 "null"
src/go/plugin/go.d/modules/example/README.md
+2 -2
@@ -27,7 +27,7 @@ sudo ./edit-config go.d/example.conf
27 ```
28
29 Disabled by default. Should be explicitly enabled
30 -in [go.d.conf](https://github.com/netdata/netdata/blob/master/src/go/collectors/go.d.plugin/config/go.d.conf).
30 +in [go.d.conf](https://github.com/netdata/netdata/blob/master/src/go/plugin/go.d/config/go.d.conf).
31
32 ```yaml
33 # go.d.conf
@@ -53,7 +53,7 @@ jobs:
53 ---
54
55 For all available options, see the Example
56 -collector's [configuration file](https://github.com/netdata/netdata/blob/master/src/go/collectors/go.d.plugin/config/go.d/example.conf).
56 +collector's [configuration file](https://github.com/netdata/netdata/blob/master/src/go/plugin/go.d/config/go.d/example.conf).
57
58 ## Troubleshooting
59
src/go/plugin/go.d/modules/httpcheck/config_schema.json
+1 -1
@@ -95,7 +95,7 @@
95 },
96 "value": {
97 "title": "Header value pattern",
98 - "description": "Specifies the [matcher pattern](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/matcher#readme) to match against the value of the specified header.",
98 + "description": "Specifies the [matcher pattern](https://github.com/netdata/netdata/tree/master/src/go/plugin/go.d/pkg/matcher#readme) to match against the value of the specified header.",
99 "type": "string"
100 }
101 },
src/go/plugin/go.d/modules/isc_dhcpd/config_schema.json
+1 -1
@@ -39,7 +39,7 @@
39 },
40 "networks": {
41 "title": "Networks",
42 - "description": "A space-separated list of [IP ranges](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/iprange#supported-formats) for the pool.",
42 + "description": "A space-separated list of [IP ranges](https://github.com/netdata/netdata/tree/master/src/go/plugin/go.d/pkg/iprange#supported-formats) for the pool.",
43 "type": "string"
44 }
45 },
src/go/plugin/go.d/modules/mongodb/config_schema.json
+2 -2
@@ -34,7 +34,7 @@
34 "properties": {
35 "includes": {
36 "title": "Include",
37 - "description": "Include databases that match any of the specified include [patterns](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/matcher#readme).",
37 + "description": "Include databases that match any of the specified include [patterns](https://github.com/netdata/netdata/tree/master/src/go/plugin/go.d/pkg/matcher#readme).",
38 "type": [
39 "array",
40 "null"
@@ -47,7 +47,7 @@
47 },
48 "excludes": {
49 "title": "Exclude",
50 - "description": "Exclude databases that match any of the specified exclude [patterns](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/matcher#readme).",
50 + "description": "Exclude databases that match any of the specified exclude [patterns](https://github.com/netdata/netdata/tree/master/src/go/plugin/go.d/pkg/matcher#readme).",
51 "type": [
52 "array",
53 "null"
src/go/plugin/go.d/modules/openvpn/config_schema.json
+2 -2
@@ -34,7 +34,7 @@
34 "properties": {
35 "includes": {
36 "title": "Include",
37 - "description": "Include users whose usernames match any of the specified inclusion [patterns](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/matcher#readme).",
37 + "description": "Include users whose usernames match any of the specified inclusion [patterns](https://github.com/netdata/netdata/tree/master/src/go/plugin/go.d/pkg/matcher#readme).",
38 "type": [
39 "array",
40 "null"
@@ -47,7 +47,7 @@
47 },
48 "excludes": {
49 "title": "Exclude",
50 - "description": "Exclude users whose usernames match any of the specified exclusion [patterns](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/matcher#readme).",
50 + "description": "Exclude users whose usernames match any of the specified exclusion [patterns](https://github.com/netdata/netdata/tree/master/src/go/plugin/go.d/pkg/matcher#readme).",
51 "type": [
52 "array",
53 "null"
src/go/plugin/go.d/modules/openvpn_status_log/config_schema.json
+2 -2
@@ -28,7 +28,7 @@
28 "properties": {
29 "includes": {
30 "title": "Include",
31 - "description": "Include users whose usernames match any of the specified inclusion [patterns](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/matcher#readme).",
31 + "description": "Include users whose usernames match any of the specified inclusion [patterns](https://github.com/netdata/netdata/tree/master/src/go/plugin/go.d/pkg/matcher#readme).",
32 "type": [
33 "array",
34 "null"
@@ -41,7 +41,7 @@
41 },
42 "excludes": {
43 "title": "Exclude",
44 - "description": "Exclude users whose usernames match any of the specified exclusion [patterns](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/matcher#readme).",
44 + "description": "Exclude users whose usernames match any of the specified exclusion [patterns](https://github.com/netdata/netdata/tree/master/src/go/plugin/go.d/pkg/matcher#readme).",
45 "type": [
46 "array",
47 "null"
src/go/plugin/go.d/modules/ping/config_schema.json
+1 -1
@@ -13,7 +13,7 @@
13 },
14 "privileged": {
15 "title": "Privileged mode",
16 - "description": "If unset, sends unprivileged UDP ping packets (require [additional configuration](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/modules/ping#overview)); otherwise, sends raw ICMP ping packets ([not recommended](https://github.com/netdata/netdata/issues/15410)).",
16 + "description": "If unset, sends unprivileged UDP ping packets (require [additional configuration](https://github.com/netdata/netdata/tree/master/src/go/plugin/go.d/modules/ping#overview)); otherwise, sends raw ICMP ping packets ([not recommended](https://github.com/netdata/netdata/issues/15410)).",
17 "type": "boolean",
18 "default": false
19 },
src/go/plugin/go.d/modules/prometheus/config_schema.json
+2 -2
@@ -49,7 +49,7 @@
49 "properties": {
50 "allow": {
51 "title": "Allow",
52 - "description": "Allow time series that match any of the specified [selectors](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/prometheus/selector#readme).",
52 + "description": "Allow time series that match any of the specified [selectors](https://github.com/netdata/netdata/tree/master/src/go/plugin/go.d/pkg/prometheus/selector#readme).",
53 "type": [
54 "array",
55 "null"
@@ -62,7 +62,7 @@
62 },
63 "deny": {
64 "title": "Deny",
65 - "description": "Deny time series that match any of the specified [selectors](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/prometheus/selector#readme).",
65 + "description": "Deny time series that match any of the specified [selectors](https://github.com/netdata/netdata/tree/master/src/go/plugin/go.d/pkg/prometheus/selector#readme).",
66 "type": [
67 "array",
68 "null"
src/go/plugin/go.d/modules/weblog/config_schema.json
+2 -2
@@ -71,7 +71,7 @@
71 },
72 "match": {
73 "title": "Pattern",
74 - "description": "The [pattern string](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/matcher#readme) used to match against the full original request URI.",
74 + "description": "The [pattern string](https://github.com/netdata/netdata/tree/master/src/go/plugin/go.d/pkg/matcher#readme) used to match against the full original request URI.",
75 "type": "string"
76 }
77 },
@@ -123,7 +123,7 @@
123 },
124 "match": {
125 "title": "Pattern",
126 - "description": "The [pattern string](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/matcher#readme) used to match against the field value.",
126 + "description": "The [pattern string](https://github.com/netdata/netdata/tree/master/src/go/plugin/go.d/pkg/matcher#readme) used to match against the field value.",
127 "type": "string"
128 }
129 },
src/go/plugin/go.d/pkg/README.md
+9 -9
@@ -1,6 +1,6 @@
1 <!--
2 title: "Helper Packages"
3 -custom_edit_url: "/src/go/collectors/go.d.plugin/pkg/README.md"
3 +custom_edit_url: "/src/go/plugin/go.d/pkg/README.md"
4 sidebar_label: "Helper Packages"
5 learn_status: "Published"
6 learn_rel_path: "Developers/External plugins/go.d.plugin/Helper Packages"
@@ -9,14 +9,14 @@ learn_rel_path: "Developers/External plugins/go.d.plugin/Helper Packages"
9 # Helper Packages
10
11 - if you need IP ranges consider to
12 - use [`iprange`](/src/go/plugin/pkgmd).
13 -- if you parse an application log files, then [`log`](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/logs) is
12 + use [`iprange`](/src/go/plugin/go.d/pkg/iprange).
13 +- if you parse an application log files, then [`log`](https://github.com/netdata/netdata/tree/master/src/go/plugin/go.d/pkg/logs) is
14 handy.
15 - if you need filtering
16 - check [`matcher`](/src/go/plugin/pkgmd).
17 -- if you collect metrics from an HTTP endpoint use [`web`](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/web).
16 + check [`matcher`](/src/go/plugin/go.d/pkg/matcher).
17 +- if you collect metrics from an HTTP endpoint use [`web`](https://github.com/netdata/netdata/tree/master/src/go/plugin/go.d/pkg/web).
18 - if you collect metrics from a prometheus endpoint,
19 - then [`prometheus`](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/prometheus)
20 - and [`web`](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/web) is what you need.
21 -- [`tlscfg`](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/tlscfg) provides TLS support.
22 -- [`stm`](https://github.com/netdata/netdata/tree/master/src/go/collectors/go.d.plugin/pkg/stm) helps you to convert any struct to a `map[string]int64`.
19 + then [`prometheus`](https://github.com/netdata/netdata/tree/master/src/go/plugin/go.d/pkg/prometheus)
20 + and [`web`](https://github.com/netdata/netdata/tree/master/src/go/plugin/go.d/pkg/web) is what you need.
21 +- [`tlscfg`](https://github.com/netdata/netdata/tree/master/src/go/plugin/go.d/pkg/tlscfg) provides TLS support.
22 +- [`stm`](https://github.com/netdata/netdata/tree/master/src/go/plugin/go.d/pkg/stm) helps you to convert any struct to a `map[string]int64`.
src/go/plugin/go.d/pkg/iprange/README.md
+1 -1
@@ -1,6 +1,6 @@
1 <!--
2 title: "iprange"
3 -custom_edit_url: "/src/go/collectors/go.d.plugin/pkg/iprange/README.md"
3 +custom_edit_url: "/src/go/plugin/go.d/pkg/iprange/README.md"
4 sidebar_label: "iprange"
5 learn_status: "Published"
6 learn_rel_path: "Developers/External plugins/go.d.plugin/Helper Packages"
src/go/plugin/go.d/pkg/matcher/README.md
+1 -1
@@ -1,6 +1,6 @@
1 <!--
2 title: "matcher"
3 -custom_edit_url: "/src/go/collectors/go.d.plugin/pkg/matcher/README.md"
3 +custom_edit_url: "/src/go/plugin/go.d/pkg/matcher/README.md"
4 sidebar_label: "matcher"
5 learn_status: "Published"
6 learn_rel_path: "Developers/External plugins/go.d.plugin/Helper Packages"
src/go/plugin/go.d/pkg/prometheus/selector/README.md
+1 -1
@@ -1,6 +1,6 @@
1 <!--
2 title: "Time series selector"
3 -custom_edit_url: "/src/go/collectors/go.d.plugin/pkg/prometheus/selector/README.md"
3 +custom_edit_url: "/src/go/plugin/go.d/pkg/prometheus/selector/README.md"
4 sidebar_label: "Time series selector"
5 learn_status: "Published"
6 learn_rel_path: "Developers/External plugins/go.d.plugin/Helper Packages"