You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/_admin-guide/060_Sources/153_stats_exporter/000_stats_exporter_source_options.md
+14-14Lines changed: 14 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -2,12 +2,12 @@
2
2
title: stats-exporter() source options
3
3
id: adm-src--stats-exporter-opt
4
4
description: >-
5
-
The stats-exporter() sources directly can serve the output of syslog-ng-ctl stats and syslog-ng-ctl query to a HTTP Scraper. Unlike the stats-exporter-dont-log() that suppresses log messages from incoming scraper requests, the stats-exporter() logs the unparsed messages, storing incoming scraper HTTP requests in the MSG field.
5
+
The stats-exporter() sources directly can serve the output of syslog-ng-ctl stats and syslog-ng-ctl query to an HTTP Scraper. Unlike the stats-exporter-dont-log() that suppresses log messages from incoming scraper requests, the stats-exporter() logs the unparsed messages, storing incoming scraper HTTP requests in the MSG field.
6
6
---
7
7
8
-
Technically, both sources are specialized versions of the network() source. See the network() source options for details.
8
+
Technically, both sources are specialized versions of the network() source. For more options and details, see the network() source options.
9
9
10
-
>**NOTE:** A destination is not required for this source to work; the `stats-exporter()` sources will respond to the scraper regardless of whether a destination is present in the log path.
10
+
>**NOTE:** A destination is not required for this source to work; the stats-exporter() sources will respond to the scraper regardless of whether a destination is present in the log path.
11
11
{: .notice--info}
12
12
13
13
These drivers have the following additional options:
@@ -17,43 +17,43 @@ These drivers have the following additional options:
17
17
|Accepted values:| query \| stats |
18
18
|Default: | stats |
19
19
20
-
*Description:*The stat type you wish to provide in the response to a HTTP Scraper request, just like for the syslog-ng-ctl command line tool.
20
+
*Description:*This option sets the desired stat type to be produced in response to an HTTP Scraper request. This method operates like the syslog-ng-ctl command line tool.
21
21
22
22
## stat-query()
23
23
24
24
|Accepted values:| regular expression |
25
25
|Default: ||
26
26
27
-
*Description:*The query regex string that can be used to filter the output of a `query` type request.
27
+
*Description:*This option sets the query regex string which can be used to filter the output of a query type request.
28
28
29
29
## stat-format()
30
30
31
31
|Accepted values:| csv \| kv \| prometheus |
32
32
|Default: | prometheus |
33
33
34
-
*Description:*Specifies the format of the statistics output in HTTP responses, similar to the options available in syslog-ng-ctl. The available formats are:
34
+
*Description:*This option specifies the format of the statistics output in HTTP responses, similar to the options available in syslog-ng-ctl. The available formats are the following:
35
35
36
-
- csv – comma-separated values format
37
-
-kv – key-value pairs, one per line
38
-
- prometheus – Prometheus-compatible exposition format
36
+
-`csv` – comma-separated values format
37
+
-`kv` – key-value pairs, one per line
38
+
-`prometheus` – Prometheus-compatible exposition format
39
39
40
40
## scrape-pattern()
41
41
42
42
|Accepted values:| regular expression |
43
-
|Default: | GET /metrics*|
43
+
|Default: |`GET /metrics*`|
44
44
45
-
*Description:*The pattern used to match the HTTP header of incoming scraping requests. A stat response will be generated and sent only if the header matches the scrape-pattern().
45
+
*Description:*This option sets the pattern used to match the HTTP header of incoming scraping requests. A stat response will be generated and sent only if the header matches the one set in the `scrape-pattern()` option.
46
46
47
47
## scrape-freq-limit()
48
48
49
49
|Accepted values:| number |
50
-
|Default: |0|
50
+
|Default: |`0`|
51
51
52
-
*Description:*Limits the frequency of repeated scraper requests to the specified number of seconds. Any repeated request within this period will be ignored. A value of 0 means no limit.
52
+
*Description:*This option limits the frequency of repeated scraper requests to the specified number of seconds. Any repeated request within this period will be ignored. A set value of `0` means no limit.
53
53
54
54
## single-instance()
55
55
56
56
|Accepted values:| yes \| no |
57
57
|Default: | no |
58
58
59
-
*Description:* If set to `yes` only one scraper connection and request will be allowed at once.
59
+
*Description:* If this option is set to `yes`, only one scraper connection and request will be allowed at once.
Copy file name to clipboardExpand all lines: doc/_admin-guide/060_Sources/153_stats_exporter/README.md
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ log {
30
30
};
31
31
```
32
32
33
-
Example usage for a generic HTTP Scraper which sends e.g. the `GET /stats HTTP/1.1` HTTP request to get statistics of {{ site.product.short_name }}, do not want to log or further process the HTTP requests in the log pipe, and needs the response in CSV format:
33
+
Example usage for a generic HTTP Scraper which sends the `GET /stats HTTP/1.1` HTTP request to get statistics of a {{ site.product.short_name }} system, which is not required to log or further process the HTTP requests in the log pipe, and needs the response in CSV format:
34
34
35
35
```config
36
36
@version: 4.9
@@ -53,5 +53,5 @@ log {
53
53
};
54
54
```
55
55
56
-
>**NOTE:** A destination is not required for this to work; the `stats-exporter()` sources will respond to the scraper regardless of whether a destination is present in the log path.
56
+
>**NOTE:** A destination is not required for this to work. The stats-exporter() sources will respond to the scraper regardless of whether a destination is present in the log path or not.
0 commit comments