Skip to content

Commit 4fa3606

Browse files
committed
complete documentation regarding the new config attribute
Signed-off-by: Augustin Husson <[email protected]>
1 parent 6518f23 commit 4fa3606

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

doc/developing_editor.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,17 @@ activate_rpc_log: false # It's a boolean in order to activate or deactivate the
1616
log_format: "text" # The format of the log printed. Possible value: json, text. Default value: "text"
1717
prometheus_url: "http://localhost:9090" # the HTTP URL of the prometheus server.
1818
rest_api_port: 8080 # When set, the server will be started as an HTTP server that provides a REST API instead of the language server protocol. Default value: 0
19+
metadata_lookback_interval: 2d # Interval used to retrieve data such as label and metrics from prometheus. Default value: 12h
1920
```
2021
2122
In case the file is not provided, it will read the configuration from the environment variables with the following structure:
2223
2324
```bash
2425
export LANGSERVER_ACTIVATERPCLOG="true"
2526
export LANGSERVER_PROMETHEUSURL="http://localhost:9090"
26-
export LANGSERVER_RESTAPIPORT"="8080"
27-
export LANGSERVER_LOGFORMAT"="json"
27+
export LANGSERVER_RESTAPIPORT="8080"
28+
export LANGSERVER_LOGFORMAT="json"
29+
export LANGSERVER_METADATALOOKBACKINTERVAL="1w"
2830
```
2931

3032
Note: documentation and default value are the same for both configuration (yaml and environment)
@@ -37,7 +39,8 @@ It has the following structure:
3739
```json
3840
{
3941
"promql": {
40-
"url": "http://localhost:9090" # the HTTP URL of the prometheus server.
42+
"url": "http://localhost:9090", # the HTTP URL of the prometheus server.
43+
"metadataLookbackInterval": "2h"
4144
}
4245
}
4346
```

0 commit comments

Comments
 (0)