Skip to content

Commit

Permalink
helm: add service monitor scrape interval config
Browse files Browse the repository at this point in the history
this commit was related to the service monitor scrape interval option

Signed-off-by: Jack-R-lantern <[email protected]>
  • Loading branch information
Jack-R-lantern committed Oct 24, 2023
1 parent b927908 commit d23547a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/content/en/docs/reference/helm-chart.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ To use [the values available](#values), with `helm install` or `helm upgrade`, u
| tetragon.prometheus.port | int | `2112` | The port at which to expose metrics. |
| tetragon.prometheus.serviceMonitor.enabled | bool | `false` | Whether to create a 'ServiceMonitor' resource targeting the 'tetragon' pods. |
| tetragon.prometheus.serviceMonitor.labelsOverride | object | `{}` | The set of labels to place on the 'ServiceMonitor' resource. |
| tetragon.prometheus.serviceMonitor.scrapeInterval | string | `"10s"` | Interval at which metrics should be scraped. If not specified, Prometheus' global scrape interval is used. |
| tetragon.resources | object | `{}` | |
| tetragon.securityContext.privileged | bool | `true` | |
| tetragonOperator.image | object | `{"override":null,"pullPolicy":"IfNotPresent","repository":"quay.io/cilium/tetragon-operator","suffix":"","tag":"v1.0.0-rc.1"}` | tetragon-operator image. |
Expand Down
1 change: 1 addition & 0 deletions install/kubernetes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ Helm chart for Tetragon
| tetragon.prometheus.port | int | `2112` | The port at which to expose metrics. |
| tetragon.prometheus.serviceMonitor.enabled | bool | `false` | Whether to create a 'ServiceMonitor' resource targeting the 'tetragon' pods. |
| tetragon.prometheus.serviceMonitor.labelsOverride | object | `{}` | The set of labels to place on the 'ServiceMonitor' resource. |
| tetragon.prometheus.serviceMonitor.scrapeInterval | string | `"10s"` | Interval at which metrics should be scraped. If not specified, Prometheus' global scrape interval is used. |
| tetragon.resources | object | `{}` | |
| tetragon.securityContext.privileged | bool | `true` | |
| tetragonOperator.image | object | `{"override":null,"pullPolicy":"IfNotPresent","repository":"quay.io/cilium/tetragon-operator","suffix":"","tag":"v1.0.0-rc.1"}` | tetragon-operator image. |
Expand Down
2 changes: 1 addition & 1 deletion install/kubernetes/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ metadata:
spec:
endpoints:
- honorLabels: true
interval: 10s
interval: {{ .Values.tetragon.prometheus.serviceMonitor.scrapeInterval }}
path: /metrics
port: metrics
relabelings:
Expand Down
2 changes: 2 additions & 0 deletions install/kubernetes/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ tetragon:
enabled: false
# -- The set of labels to place on the 'ServiceMonitor' resource.
labelsOverride: {}
# -- Interval at which metrics should be scraped. If not specified, Prometheus' global scrape interval is used.
scrapeInterval: "10s"
grpc:
# -- Whether to enable exposing Tetragon gRPC.
enabled: true
Expand Down

0 comments on commit d23547a

Please sign in to comment.