Skip to content

Commit

Permalink
Fix docs CI to handle absolute links between docs (#9132)
Browse files Browse the repository at this point in the history
* Check all files

* Change md to trigger workflow

* Change version

* Try config and replacement

* Path to workspace

* Continuing to test

* Fix link in prometheus doc as test
  • Loading branch information
joelhans committed May 22, 2020
1 parent ef660ef commit c514f25
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/docs.yml
Expand Up @@ -17,8 +17,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Run link check
uses: gaurav-nelson/github-action-markdown-link-check@v1
uses: gaurav-nelson/github-action-markdown-link-check@1.0.2
with:
use-quiet-mode: 'yes'
use-quiet-mode: 'no'
use-verbose-mode: 'yes'
check-modified-files-only: 'yes'
config-file: '.mlc_config.json'
8 changes: 8 additions & 0 deletions .mlc_config.json
@@ -0,0 +1,8 @@
{
"replacementPatterns": [
{
"pattern": "^/",
"replacement": "/github/workspace/"
}
]
}
10 changes: 5 additions & 5 deletions exporting/prometheus/README.md
Expand Up @@ -420,11 +420,11 @@ Netdata can filter the metrics it sends to Prometheus with this setting:
send charts matching = *
```

This settings accepts a space separated list of [simple patterns](../../libnetdata/simple_pattern/README.md) to match
the **charts** to be sent to Prometheus. Each pattern can use `*` as wildcard, any number of times (e.g `*a*b*c*` is
valid). Patterns starting with `!` give a negative match (e.g `!*.bad users.* groups.*` will send all the users and
groups except `bad` user and `bad` group). The order is important: the first match (positive or negative) left to right,
is used.
This settings accepts a space separated list of [simple patterns](/libnetdata/simple_pattern/README.md) to match the
**charts** to be sent to Prometheus. Each pattern can use `*` as wildcard, any number of times (e.g `*a*b*c*` is valid).
Patterns starting with `!` give a negative match (e.g `!*.bad users.* groups.*` will send all the users and groups
except `bad` user and `bad` group). The order is important: the first match (positive or negative) left to right, is
used.

### Changing the prefix of Netdata metrics

Expand Down

0 comments on commit c514f25

Please sign in to comment.