Skip to content

Commit 96c4d69

Browse files
Merge pull request #214 from sysdiglabs/staging
Staging
2 parents 99406f2 + adcdb26 commit 96c4d69

File tree

10 files changed

+26
-44
lines changed

10 files changed

+26
-44
lines changed

resources/aws-alb/include/sysdig-agent-config.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ data:
2323
- action: keep
2424
source_labels: [__meta_kubernetes_pod_host_ip]
2525
regex: __HOSTIPS__
26-
- action: kee(and cluster hierarchy)
2726
- action: replace
2827
source_labels: [__meta_kubernetes_pod_uid]
2928
target_label: sysdig_k8s_pod_uid
3029
- action: replace
3130
source_labels: [__meta_kubernetes_pod_container_name]
32-
target_label: sysdig_k8s_pod_container_namep
31+
target_label: sysdig_k8s_pod_container_name
32+
- action: keep
3333
source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape]
3434
regex: true
3535
- action: replace
@@ -45,8 +45,6 @@ data:
4545
regex: ([^:]+)(?::\d+)?;(\d+)
4646
replacement: $1:$2
4747
target_label: __address__
48-
# Holding on to pod-id and container name so we can associate the metrics
49-
# with the container
5048
dragent.yaml: |
5149
new_k8s: true
5250
k8s_cluster_name: your-cluster-name

resources/aws-ebs/include/sysdig-agent-config.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ data:
2323
- action: keep
2424
source_labels: [__meta_kubernetes_pod_host_ip]
2525
regex: __HOSTIPS__
26-
- action: kee(and cluster hierarchy)
2726
- action: replace
2827
source_labels: [__meta_kubernetes_pod_uid]
2928
target_label: sysdig_k8s_pod_uid
3029
- action: replace
3130
source_labels: [__meta_kubernetes_pod_container_name]
32-
target_label: sysdig_k8s_pod_container_namep
31+
target_label: sysdig_k8s_pod_container_name
32+
- action: keep
3333
source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape]
3434
regex: true
3535
- action: replace
@@ -45,8 +45,6 @@ data:
4545
regex: ([^:]+)(?::\d+)?;(\d+)
4646
replacement: $1:$2
4747
target_label: __address__
48-
# Holding on to pod-id and container name so we can associate the metrics
49-
# with the container
5048
dragent.yaml: |
5149
new_k8s: true
5250
k8s_cluster_name: your-cluster-name

resources/aws-elb/include/sysdig-agent-config.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ data:
2323
- action: keep
2424
source_labels: [__meta_kubernetes_pod_host_ip]
2525
regex: __HOSTIPS__
26-
- action: kee(and cluster hierarchy)
2726
- action: replace
2827
source_labels: [__meta_kubernetes_pod_uid]
2928
target_label: sysdig_k8s_pod_uid
3029
- action: replace
3130
source_labels: [__meta_kubernetes_pod_container_name]
32-
target_label: sysdig_k8s_pod_container_namep
31+
target_label: sysdig_k8s_pod_container_name
32+
- action: keep
3333
source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape]
3434
regex: true
3535
- action: replace
@@ -45,8 +45,6 @@ data:
4545
regex: ([^:]+)(?::\d+)?;(\d+)
4646
replacement: $1:$2
4747
target_label: __address__
48-
# Holding on to pod-id and container name so we can associate the metrics
49-
# with the container
5048
dragent.yaml: |
5149
new_k8s: true
5250
k8s_cluster_name: your-cluster-name

resources/aws-fargate/include/sysdig-agent-config.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ data:
2323
- action: keep
2424
source_labels: [__meta_kubernetes_pod_host_ip]
2525
regex: __HOSTIPS__
26-
- action: kee(and cluster hierarchy)
2726
- action: replace
2827
source_labels: [__meta_kubernetes_pod_uid]
2928
target_label: sysdig_k8s_pod_uid
3029
- action: replace
3130
source_labels: [__meta_kubernetes_pod_container_name]
32-
target_label: sysdig_k8s_pod_container_namep
31+
target_label: sysdig_k8s_pod_container_name
32+
- action: keep
3333
source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape]
3434
regex: true
3535
- action: replace
@@ -45,8 +45,6 @@ data:
4545
regex: ([^:]+)(?::\d+)?;(\d+)
4646
replacement: $1:$2
4747
target_label: __address__
48-
# Holding on to pod-id and container name so we can associate the metrics
49-
# with the container
5048
dragent.yaml: |
5149
new_k8s: true
5250
k8s_cluster_name: your-cluster-name

resources/aws-lambda/include/sysdig-agent-config.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ data:
2323
- action: keep
2424
source_labels: [__meta_kubernetes_pod_host_ip]
2525
regex: __HOSTIPS__
26-
- action: kee(and cluster hierarchy)
2726
- action: replace
2827
source_labels: [__meta_kubernetes_pod_uid]
2928
target_label: sysdig_k8s_pod_uid
3029
- action: replace
3130
source_labels: [__meta_kubernetes_pod_container_name]
32-
target_label: sysdig_k8s_pod_container_namep
31+
target_label: sysdig_k8s_pod_container_name
32+
- action: keep
3333
source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape]
3434
regex: true
3535
- action: replace
@@ -45,8 +45,6 @@ data:
4545
regex: ([^:]+)(?::\d+)?;(\d+)
4646
replacement: $1:$2
4747
target_label: __address__
48-
# Holding on to pod-id and container name so we can associate the metrics
49-
# with the container
5048
dragent.yaml: |
5149
new_k8s: true
5250
k8s_cluster_name: your-cluster-name

resources/aws-rds/include/sysdig-agent-config.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ data:
2323
- action: keep
2424
source_labels: [__meta_kubernetes_pod_host_ip]
2525
regex: __HOSTIPS__
26-
- action: kee(and cluster hierarchy)
2726
- action: replace
2827
source_labels: [__meta_kubernetes_pod_uid]
2928
target_label: sysdig_k8s_pod_uid
3029
- action: replace
3130
source_labels: [__meta_kubernetes_pod_container_name]
32-
target_label: sysdig_k8s_pod_container_namep
31+
target_label: sysdig_k8s_pod_container_name
32+
- action: keep
3333
source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape]
3434
regex: true
3535
- action: replace
@@ -45,8 +45,6 @@ data:
4545
regex: ([^:]+)(?::\d+)?;(\d+)
4646
replacement: $1:$2
4747
target_label: __address__
48-
# Holding on to pod-id and container name so we can associate the metrics
49-
# with the container
5048
dragent.yaml: |
5149
new_k8s: true
5250
k8s_cluster_name: your-cluster-name

resources/aws-s3/include/sysdig-agent-config.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ data:
2323
- action: keep
2424
source_labels: [__meta_kubernetes_pod_host_ip]
2525
regex: __HOSTIPS__
26-
- action: kee(and cluster hierarchy)
2726
- action: replace
2827
source_labels: [__meta_kubernetes_pod_uid]
2928
target_label: sysdig_k8s_pod_uid
3029
- action: replace
3130
source_labels: [__meta_kubernetes_pod_container_name]
32-
target_label: sysdig_k8s_pod_container_namep
31+
target_label: sysdig_k8s_pod_container_name
32+
- action: keep
3333
source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape]
3434
regex: true
3535
- action: replace
@@ -45,8 +45,6 @@ data:
4545
regex: ([^:]+)(?::\d+)?;(\d+)
4646
replacement: $1:$2
4747
target_label: __address__
48-
# Holding on to pod-id and container name so we can associate the metrics
49-
# with the container
5048
dragent.yaml: |
5149
new_k8s: true
5250
k8s_cluster_name: your-cluster-name

resources/aws-sqs/include/sysdig-agent-config.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ data:
2323
- action: keep
2424
source_labels: [__meta_kubernetes_pod_host_ip]
2525
regex: __HOSTIPS__
26-
- action: kee(and cluster hierarchy)
2726
- action: replace
2827
source_labels: [__meta_kubernetes_pod_uid]
2928
target_label: sysdig_k8s_pod_uid
3029
- action: replace
3130
source_labels: [__meta_kubernetes_pod_container_name]
32-
target_label: sysdig_k8s_pod_container_namep
31+
target_label: sysdig_k8s_pod_container_name
32+
- action: keep
3333
source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape]
3434
regex: true
3535
- action: replace
@@ -45,8 +45,6 @@ data:
4545
regex: ([^:]+)(?::\d+)?;(\d+)
4646
replacement: $1:$2
4747
target_label: __address__
48-
# Holding on to pod-id and container name so we can associate the metrics
49-
# with the container
5048
dragent.yaml: |
5149
new_k8s: true
5250
k8s_cluster_name: your-cluster-name

resources/cassandra/include/sysdig-agent.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ data:
2121
- action: keep
2222
source_labels: [__meta_kubernetes_pod_host_ip]
2323
regex: __HOSTIPS__
24-
- action: kee(and cluster hierarchy)
2524
- action: replace
2625
source_labels: [__meta_kubernetes_pod_uid]
2726
target_label: sysdig_k8s_pod_uid
2827
- action: replace
2928
source_labels: [__meta_kubernetes_pod_container_name]
30-
target_label: sysdig_k8s_pod_container_namep
29+
target_label: sysdig_k8s_pod_container_name
30+
- action: keep
3131
source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape]
3232
regex: true
3333
- action: replace
@@ -43,8 +43,6 @@ data:
4343
regex: ([^:]+)(?::\d+)?;(\d+)
4444
replacement: $1:$2
4545
target_label: __address__
46-
# Holding on to pod-id and container name so we can associate the metrics
47-
# with the container
4846
dragent.yaml: |-
4947
metrics_excess_log: true
5048
k8s_cluster_name: YourClusterName

resources/portworx/alerts.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,15 @@ configurations:
6969
description: Portworx Cache write hit rate is low.
7070
- alert: '[Portworx] High Read Latency In Disk'
7171
expr: |
72-
px_disk_stats_read_latency_seconds{ disk=~$disk} > 0.100
72+
px_disk_stats_read_latency_seconds > 0.100
7373
for: 5m
7474
labels:
7575
severity: warning
7676
annotations:
7777
description: Portworx High Read Latency In Disk.
7878
- alert: '[Portworx] High Write Latency In Disk'
7979
expr: |
80-
px_disk_stats_write_latency_seconds{ disk=~$disk} > 0.250
80+
px_disk_stats_write_latency_seconds > 0.250
8181
for: 5m
8282
labels:
8383
severity: warning
@@ -108,47 +108,47 @@ configurations:
108108
annotations:
109109
description: Portworx Disk Full In 12H.
110110
- alert: '[Portworx] Pool Status Not Online'
111-
expr: "px_pool_stats_status{ pool=~$pool} != 1"
111+
expr: "px_pool_stats_status != 1"
112112
for: 5m
113113
labels:
114114
severity: warning
115115
annotations:
116116
description: Portworx Node Status Not Online.
117117
- alert: '[Portworx] High Write Latency In Pool'
118118
expr: |
119-
px_pool_stats_write_latency_seconds{ pool=~$pool} > 0.250
119+
px_pool_stats_write_latency_seconds > 0.250
120120
for: 5m
121121
labels:
122122
severity: warning
123123
annotations:
124124
description: Portworx High Write Latency In Pool.
125125
- alert: '[Portworx] Pool Full In 48H'
126126
expr: |
127-
predict_linear(px_pool_stats_available_bytes{ pool=~$pool}[48h], 48 * 3600) < 0
127+
predict_linear(px_pool_stats_available_bytes[48h], 48 * 3600) < 0
128128
for: 5m
129129
labels:
130130
severity: warning
131131
annotations:
132132
description: Portworx Pool Full In 48H.
133133
- alert: '[Portworx] Pool Full In 12H'
134134
expr: |
135-
predict_linear(px_pool_stats_available_bytes{ pool=~$pool}[12h], 12 * 3600) < 0
135+
predict_linear(px_pool_stats_available_bytes[12h], 12 * 3600) < 0
136136
for: 5m
137137
labels:
138138
severity: warning
139139
annotations:
140140
description: Portworx Pool Full In 12H.
141141
- alert: '[Portworx] High Write Latency In Volume'
142142
expr: |
143-
px_volume_write_latency_seconds{ pvc=~$pvc} > 0.250
143+
px_volume_write_latency_seconds > 0.250
144144
for: 5m
145145
labels:
146146
severity: warning
147147
annotations:
148148
description: Portworx High Write Latency In Volume.
149149
- alert: '[Portworx] High Read Latency In Volume'
150150
expr: |
151-
px_volume_read_latency_seconds{ pvc=~$pvc} > 0.100
151+
px_volume_read_latency_seconds > 0.100
152152
for: 5m
153153
labels:
154154
severity: warning

0 commit comments

Comments
 (0)