Skip to content

Commit

Permalink
Merge pull request #211 from levoai/update-sensor-config-files
Browse files Browse the repository at this point in the history
Update Sensor Configuration Files
  • Loading branch information
ricekot authored Apr 16, 2024
2 parents a7bf979 + 6962baf commit 88830fb
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 10 deletions.
19 changes: 14 additions & 5 deletions static/artifacts/sensor/config-values.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ sensor:
#http-proxy: "" # Proxy used for HTTP requests
#https-proxy: "" # Proxy used for HTTPS requests
#kube-api-rate-limit-time: 30 # Interval between each successful Kube Api call
#enable-fetch-sensor-config: true # Enable sensor communication with the backend for fetching config
# --------------------------------------------------------------------------------------------


Expand Down Expand Up @@ -63,9 +64,11 @@ sensor:
# services.

# enable-export-rate-limiting: true
# max-total-exported-requests-per-second: 200
# max-per-endpoint-exported-requests-per-second: 20
# bpf-rate-limit-window-size: 1000 # Maximum number of events within a fixed window of time
# max-total-exported-requests-per-second: 100
# max-per-endpoint-exported-requests-per-second: 2
# token-bucket-refresh-period-ms: 1000 # 1 second

# bpf-rate-limit-window-size: 300 # Maximum number of events within a fixed window of time
# bpf-rate-limit-window-duration-ms: 1000 # Time interval in milli-seconds during which the specified number of events (bpf-rate-limit-window-size) are allowed
# --------------------------------------------------------------------------------------------

Expand All @@ -85,6 +88,8 @@ sensor:
# Uncomment and modify appropriately to limit capture to specific process names or IDs.
# Both monitored-commands and monitored-pids support list of names & IDs respectively.
# NOTE: monitored-commands and monitored-pids settings are mutually exclusive
# Command names will be truncated to 15 characters, since that is the maximum allowed comm size.
# https://www.kernel.org/doc/html/latest/filesystems/proc.html#proc-pid-comm-proc-pid-task-tid-comm

#monitored-commands:
# - <process command name. Example: nginx>
Expand All @@ -98,6 +103,11 @@ sensor:
- pod_nanny
- MetricsExtension
- postgres
- kube_state_metrics # ref: https://github.com/kubernetes/kube-state-metrics
- prometheus # ref: https://github.com/prometheus/prometheus
- node_exporter # ref: https://github.com/prometheus/node_exporter
- redis_exporter # ref: https://github.com/oliver006/redis_exporter
- cloud_node_manager # ref: https://github.com/kubernetes-sigs/cloud-provider-azure/blob/ce798999ad48f6fb2063a808b9dcedec2fadd49a/examples/out-of-tree/cloud-node-manager.yaml

#monitored-pids:
# - <pid. Example: 123>
Expand Down Expand Up @@ -222,8 +232,7 @@ sensor:
# The maximum request or response body size the sensor will parse. Request or response bodies
# larger than this limit will be ignored by the sensor.
# max-msg-body-size-bytes: 512000

# --------------------------------------------------------------------------------------------
# ---------------------------------------------------------------------------------------------


# --------------------------------------------------------------------------------------------
Expand Down
19 changes: 14 additions & 5 deletions static/artifacts/sensor/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ trace-client-traffic: true # enable tracing of client-side traffic generated by
#http-proxy: "" # Proxy used for HTTP requests
#https-proxy: "" # Proxy used for HTTPS requests
#kube-api-rate-limit-time: 30 # Interval between each successful Kube Api call
#enable-fetch-sensor-config: true # Enable sensor communication with the backend for fetching config
# --------------------------------------------------------------------------------------------


Expand Down Expand Up @@ -58,9 +59,11 @@ satellite-endpoint: https://collector.levo.ai
# services.

# enable-export-rate-limiting: true
# max-total-exported-requests-per-second: 200
# max-per-endpoint-exported-requests-per-second: 20
# bpf-rate-limit-window-size: 1000 # Maximum number of events within a fixed window of time
# max-total-exported-requests-per-second: 100
# max-per-endpoint-exported-requests-per-second: 2
# token-bucket-refresh-period-ms: 1000 # 1 second

# bpf-rate-limit-window-size: 300 # Maximum number of events within a fixed window of time
# bpf-rate-limit-window-duration-ms: 1000 # Time interval in milli-seconds during which the specified number of events (bpf-rate-limit-window-size) are allowed
# --------------------------------------------------------------------------------------------

Expand All @@ -80,6 +83,8 @@ enable-metrics: true
# Uncomment and modify appropriately to limit capture to specific process names or IDs.
# Both monitored-commands and monitored-pids support list of names & IDs respectively.
# NOTE: monitored-commands and monitored-pids settings are mutually exclusive
# Command names will be truncated to 15 characters, since that is the maximum allowed comm size.
# https://www.kernel.org/doc/html/latest/filesystems/proc.html#proc-pid-comm-proc-pid-task-tid-comm

#monitored-commands:
# - <process command name. Example: nginx>
Expand All @@ -93,6 +98,11 @@ ignored-commands:
- pod_nanny
- MetricsExtension
- postgres
- kube_state_metrics # ref: https://github.com/kubernetes/kube-state-metrics
- prometheus # ref: https://github.com/prometheus/prometheus
- node_exporter # ref: https://github.com/prometheus/node_exporter
- redis_exporter # ref: https://github.com/oliver006/redis_exporter
- cloud_node_manager # ref: https://github.com/kubernetes-sigs/cloud-provider-azure/blob/ce798999ad48f6fb2063a808b9dcedec2fadd49a/examples/out-of-tree/cloud-node-manager.yaml

#monitored-pids:
# - <pid. Example: 123>
Expand Down Expand Up @@ -217,5 +227,4 @@ url-filter:
# The maximum request or response body size the sensor will parse. Request or response bodies
# larger than this limit will be ignored by the sensor.
# max-msg-body-size-bytes: 512000

# --------------------------------------------------------------------------------------------
# ---------------------------------------------------------------------------------------------

0 comments on commit 88830fb

Please sign in to comment.