Skip to content

Commit

Permalink
updated kubeshark specific metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
alongir committed Jan 23, 2024
1 parent f933c9b commit 081f71f
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion deploy/kubernetes/terraform/values/kube_prometheus_stack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,24 @@ grafana:

prometheus:
prometheusSpec:
scrapeInterval: 2s
scrapeInterval: 10s
evaluationInterval: 30s
additionalScrapeConfigs: |
- job_name: 'kubeshark-worker-metrics'
kubernetes_sd_configs:
- role: endpoints
relabel_configs:
- source_labels: [__meta_kubernetes_pod_name]
target_label: pod
- source_labels: [__meta_kubernetes_pod_node_name]
target_label: node
- source_labels: [__meta_kubernetes_endpoint_port_name]
action: keep
regex: ^metrics$
- source_labels: [__address__, __meta_kubernetes_endpoint_port_number]
action: replace
regex: ([^:]+)(?::\d+)?
replacement: $1:49100
target_label: __address__
- action: labelmap
regex: __meta_kubernetes_service_label_(.+)

0 comments on commit 081f71f

Please sign in to comment.