Skip to content

Commit 48b7552

Browse files
authored
Merge pull request #2682 from port-labs/improve-k8s-docs
fix k8s exporter configuration changes on docs
2 parents 13667e1 + 9095dd6 commit 48b7552

File tree

1 file changed

+36
-5
lines changed
  • docs/build-your-software-catalog/sync-data-to-catalog/kubernetes-stack/kubernetes

1 file changed

+36
-5
lines changed

docs/build-your-software-catalog/sync-data-to-catalog/kubernetes-stack/kubernetes/advanced.md

Lines changed: 36 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ The following advanced configuration parameters are available:
2727
<Tabs groupId="advanced" queryString="current-config-param" defaultValue="resyncInterval" values={[
2828
{label: "Resync Interval", value: "resyncInterval"},
2929
{label: "State Key", value: "stateKey"},
30-
{label: "Verbosity (Log Level)", value: "verbosity"},
30+
{label: "Logging Level", value: "logging"},
31+
{label: "Metrics", value: "metrics"},
32+
{label: "Bulk Sync", value: "bulkSync"},
3133
{label: "Event listener type", value: "eventListenerType"},
3234
{label: "CRDs to discover", value: "crdsToDiscover"},
3335
]} >
@@ -83,12 +85,41 @@ If a new resync trigger consistently aborts a running resync, it means that your
8385

8486
</TabItem>
8587

86-
<TabItem value="verbosity">
88+
<TabItem value="logging">
8789

88-
The `verbosity` parameter is used to control the verbosity level of info logs in K8s exporter's pod.
90+
The `loggingLevel` parameter is used to control the level of logs in the K8s exporter's pod.
8991

90-
- **Default value**: `0` (show all info and error logs, including info logs of successful updates)
91-
- **Use case**: Set the value to `-1`, if you want to clear out info logs of successful entity updates. Error logs and some info logs (initialization and teardown logs), will be reported.
92+
- **Default value**: `info` - show all info and error logs, including info logs of successful updates.
93+
- **Use case**: Set the value to `error` if you want to include error logs only (and exclude info logs).
94+
95+
</TabItem>
96+
97+
<TabItem value="metrics">
98+
99+
The `metricsEnabled` parameter is used to control if the k8s exporter would expose a `/metrics` endpoint compatible with OTLP.
100+
101+
- **Default value**: `true`
102+
103+
The `metricsPort` parameter is used to control the port number of the metrics server.
104+
105+
- **Default value**: `9090`
106+
- **Use case**: Set the value to a different port if you do not wish to expose the metrics server on `9090`.
107+
108+
</TabItem>
109+
110+
<TabItem value="bulkSync">
111+
112+
The `bulkSyncMaxPayloadBytes` parameter is used to control the size (in bytes) of the bulk upserts to Port.
113+
114+
- **Default value**: `1048576`
115+
116+
The `bulkSyncMaxEntitiesPerBatch` parameter is used to control the number of entities to be sent as part of a bulk upsert to Port.
117+
118+
- **Default value**: `20`
119+
120+
The `bulkSyncBatchTimeoutSeconds` parameter is used to control the time (in seconds) to wait until flushing a bulk upsert to Port (even if the maximum number/size of entities has not been reached).
121+
122+
- **Default value**: `5`
92123

93124
</TabItem>
94125

0 commit comments

Comments
 (0)