Skip to content

Commit

Permalink
Update the scrap interval to be 1ms.
Browse files Browse the repository at this point in the history
  • Loading branch information
wanlin31 committed Oct 25, 2022
1 parent ab42133 commit 28d7a11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/prometheus/install-prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ spec:
image: quay.io/prometheus/prometheus:v2.32.1
version: v2.32.1
retention: 72h
scrapeInterval: 1s
scrapeInterval: 1ms
serviceAccountName: prometheus
enableAdminAPI: false
serviceMonitorNamespaceSelector: {}
Expand Down
6 changes: 3 additions & 3 deletions config/prometheus/servicemonitors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ spec:
endpoints:
- bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
honorLabels: true
interval: 1s
interval: 1ms
port: http-metrics
scheme: http
tlsConfig:
insecureSkipVerify: true
- bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
honorLabels: true
interval: 1s
interval: 1ms
relabelings:
- sourceLabels: [job]
action: replace
Expand Down Expand Up @@ -62,7 +62,7 @@ spec:
endpoints:
- port: http-metric
scheme: http
interval: 1s
interval: 1ms
honorLabels: true
bearerTokenFile: /var/run/secrets/kubernetes.io/serviceaccount/token
tlsConfig:
Expand Down

0 comments on commit 28d7a11

Please sign in to comment.