Skip to content

Commit 8d2ca7e

Browse files
committed
stats-exporter: added stats-without-orphaned() and stats-with-legacy() options
Signed-off-by: Hofi <hofione@gmail.com>
1 parent 7f22e1b commit 8d2ca7e

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

doc/_admin-guide/060_Sources/153_stats_exporter/000_stats_exporter_source_options.md

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ These drivers have the following additional options:
2424
|Accepted values:| regular expression |
2525
|Default: | |
2626

27-
*Description:* This option sets the query regex string which 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.
2828

2929
## stat-format()
3030

@@ -37,6 +37,20 @@ These drivers have the following additional options:
3737
- `kv` – key-value pairs, one per line
3838
- `prometheus` – Prometheus-compatible exposition format
3939

40+
## stats-without-orphaned()
41+
42+
|Accepted values:| yes \| no |
43+
|Default: | no |
44+
45+
*Description:* If this option is set to `yes`, the output of a `stats` type request will not include abandoned counters, similar to the `without-orphaned-metrics` option available in `syslog-ng-ctl`.
46+
47+
## stats-with-legacy()
48+
49+
|Accepted values:| yes \| no |
50+
|Default: | no |
51+
52+
*Description:* If this option is set to `yes`, the output of a `stats` type request — only when using the `prometheus` format — will not include legacy counters, similar to the `with-legacy-metrics` option available in `syslog-ng-ctl`.
53+
4054
## scrape-pattern()
4155

4256
|Accepted values:| regular expression |
@@ -56,4 +70,4 @@ These drivers have the following additional options:
5670
|Accepted values:| yes \| no |
5771
|Default: | no |
5872

59-
*Description:* If this option is set to `yes`, only one scraper connection and request will be allowed at once.
73+
*Description:* If this option is set to `yes`, only one scraper connection and request will be allowed at once.

0 commit comments

Comments
 (0)