Skip to content

Commit e2dfc48

Browse files
authored
stats-exporter: added stats-without-orphaned() and stats-with-legacy() options (#224)
Depends on syslog-ng/syslog-ng#5424
2 parents 7f22e1b + aa63b76 commit e2dfc48

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

_data/navigation.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,6 +1089,8 @@ admin-guide-nav:
10891089
url: /admin-guide/190_The_syslog-ng_manual_pages/009_syslog-ng_manual
10901090
- title: "The syslog-ng.conf manual page"
10911091
url: /admin-guide/190_The_syslog-ng_manual_pages/010_syslog-ng_conf
1092+
- title: "The persist-tool manual page"
1093+
url: /admin-guide/190_The_syslog-ng_manual_pages/011_persist-tool
10921094
- title: "About us"
10931095
url: /admin-guide/200_About/README
10941096
subnav:

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)