Skip to content

Commit 1100d09

Browse files
committed
gdna: split README into multiple files, update Dockerfile to match
1 parent 7bc96f8 commit 1100d09

File tree

6 files changed

+1142
-878
lines changed

6 files changed

+1142
-878
lines changed

Dockerfile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,22 +121,29 @@ COPY tools/gateway-reporter/README.md gateway-reporter.md
121121
COPY tools/dv2email/README.md dv2email.md
122122
COPY tools/dv2email/screenshots/ screenshots/
123123
COPY tools/san-config/README.md san-config.md
124-
COPY gdna/README.md gdna.md
124+
COPY gdna/*.md gdna/
125125
COPY gdna/screenshots/ screenshots/
126126
COPY integrations/servicenow/README.md servicenow.md
127127
COPY integrations/pagerduty/README.md pagerduty.md
128128
COPY libraries/libemail/README.md libemail.md
129129
COPY libraries/libalert/README.md libalert.md
130130

131131
ARG MERMAID=".mermaid"
132-
ARG READMEDIRS="tools/geneos tools/gateway-reporter tools/dv2email tools/san-config gdna integrations/servicenow integrations/pagerduty libraries/libemail libraries/libalert"
132+
ARG READMEDIRS="tools/geneos tools/gateway-reporter tools/dv2email tools/san-config integrations/servicenow integrations/pagerduty libraries/libemail libraries/libalert"
133133
RUN set -eux; \
134134
echo '{ "args": ["--no-sandbox"] }' > /puppeteer.json; \
135135
for i in ${READMEDIRS}; \
136136
do \
137137
mmdc -p /puppeteer.json -i /app/cordial/$i/README.md -o /app/cordial/$i/README${MERMAID}.md; \
138138
mdpdf /app/cordial/$i/README${MERMAID}.md ${i##*/}.pdf --border=15mm --gh-style; \
139139
done; \
140+
for i in gdna/*.md; \
141+
do \
142+
b=$(basename ${i%.md}); \
143+
mmdc -p /puppeteer.json -i /app/cordial/$i -o /app/cordial/gdna/${b}${MERMAID}.md; \
144+
mdpdf /app/cordial/gdna/${b}${MERMAID}.md gdna/gdna-${b##*/}.pdf --border=15mm --gh-style; \
145+
mv gdna/$b.md gdna/gdna-$b.md; \
146+
done; \
140147
mmdc -p /puppeteer.json -i /app/cordial/CHANGELOG.md -o /app/cordial/CHANGELOG${MERMAID}.md; \
141148
mdpdf /app/cordial/CHANGELOG${MERMAID}.md CHANGELOG.pdf --border=15mm --gh-style; \
142149
mmdc -p /puppeteer.json -i /app/cordial/README.md -o /app/cordial/README${MERMAID}.md; \

gdna/FILTERS.md

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# GDNA Filters
2+
3+
GDNA supports filters to help organise your view of your Geneos Estate.
4+
5+
The follow filters are supported, and applied in this order:
6+
7+
* Includes
8+
* Excludes
9+
* Groupings
10+
* Allocations
11+
12+
Include and exclude filters work with these categories of data:
13+
14+
* Gateways
15+
* Servers
16+
* Plugins
17+
* Host IDs
18+
* Licence Sources
19+
20+
Groupings work with:
21+
22+
* Gateways
23+
* Servers
24+
* Plugins
25+
26+
Allocations work with:
27+
28+
* Gateway groups
29+
30+
## Include Filters
31+
32+
Include filters are applied as the initial check for what names should be included in reports. By default all include filters have the value `*`, which is a global positive match and allows all data through.
33+
34+
Include filters are applied before all other types of filters.
35+
36+
## Exclude Filters
37+
38+
Exclude filters are applied next and remove matching values from reports.
39+
40+
## Groupings
41+
42+
Groupings allow you to create groups of different categories of data. These can be used to see details of your monitored estate by, for example, regions or lines-of-business and more.
43+
44+
## Allocations
45+
46+
Allocations record and display licence token allocation data against usage. Currently allocations are only used to track `server` licence tokens for Gateway groups. Allocations could also be used to track usage for specific plugins, but there is no implementation in any reports at this time.
47+
48+
## Managing Filters
49+
50+
### Filter Formats
51+
52+
All entries for filters are case-sensitive.
53+
54+
Each filter entry can be an item name or a shell-style pattern as described in the Go [`path.Match`](https://pkg.go.dev/path#Match) documentation. The most common patterns are likely to be `*` used as a prefix or suffix, e.g. `*PROD*`.
55+
56+
### Filter Persistence
57+
58+
Filters are stored in a file called `gdna-filters.json` that is located, by default, in the user's configuration directory alongside the `gdna.yaml` file. This file is loaded each time reports are run to ensure those reports always use the latest set of filters.
59+
60+
While this file can be updated by hand the `gdna` program provides a number of commands to automate this. In turn the `gdna.include.xml` included with the release provides a number of Active Console right-click context Commands to perform the most common filter management actions.
61+
62+
### Filters Dataview
63+
64+
The `Filters` Dataview is created as a report and so, in addition to being shown in the Active Console, can be included included in EMail XLSX reports etc.
65+
66+
### Context Commands
67+
68+
The `gdna.include.xml` file includes a variety of context Commands the manage filters. The precise disposition and availability of these commands are not yet finalised.

0 commit comments

Comments
 (0)