Skip to content

Commit

Permalink
Merge pull request #213 from sysdiglabs/fix-cassandra-config
Browse files Browse the repository at this point in the history
Fixed config in Cassandra and AWS apps
  • Loading branch information
daviddetorres authored Apr 7, 2022
2 parents 2f95d9a + b3c6a98 commit adcdb26
Show file tree
Hide file tree
Showing 9 changed files with 18 additions and 36 deletions.
6 changes: 2 additions & 4 deletions resources/aws-alb/include/sysdig-agent-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ data:
- action: keep
source_labels: [__meta_kubernetes_pod_host_ip]
regex: __HOSTIPS__
- action: kee(and cluster hierarchy)
- action: replace
source_labels: [__meta_kubernetes_pod_uid]
target_label: sysdig_k8s_pod_uid
- action: replace
source_labels: [__meta_kubernetes_pod_container_name]
target_label: sysdig_k8s_pod_container_namep
target_label: sysdig_k8s_pod_container_name
- action: keep
source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape]
regex: true
- action: replace
Expand All @@ -45,8 +45,6 @@ data:
regex: ([^:]+)(?::\d+)?;(\d+)
replacement: $1:$2
target_label: __address__
# Holding on to pod-id and container name so we can associate the metrics
# with the container
dragent.yaml: |
new_k8s: true
k8s_cluster_name: your-cluster-name
Expand Down
6 changes: 2 additions & 4 deletions resources/aws-ebs/include/sysdig-agent-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ data:
- action: keep
source_labels: [__meta_kubernetes_pod_host_ip]
regex: __HOSTIPS__
- action: kee(and cluster hierarchy)
- action: replace
source_labels: [__meta_kubernetes_pod_uid]
target_label: sysdig_k8s_pod_uid
- action: replace
source_labels: [__meta_kubernetes_pod_container_name]
target_label: sysdig_k8s_pod_container_namep
target_label: sysdig_k8s_pod_container_name
- action: keep
source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape]
regex: true
- action: replace
Expand All @@ -45,8 +45,6 @@ data:
regex: ([^:]+)(?::\d+)?;(\d+)
replacement: $1:$2
target_label: __address__
# Holding on to pod-id and container name so we can associate the metrics
# with the container
dragent.yaml: |
new_k8s: true
k8s_cluster_name: your-cluster-name
Expand Down
6 changes: 2 additions & 4 deletions resources/aws-elb/include/sysdig-agent-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ data:
- action: keep
source_labels: [__meta_kubernetes_pod_host_ip]
regex: __HOSTIPS__
- action: kee(and cluster hierarchy)
- action: replace
source_labels: [__meta_kubernetes_pod_uid]
target_label: sysdig_k8s_pod_uid
- action: replace
source_labels: [__meta_kubernetes_pod_container_name]
target_label: sysdig_k8s_pod_container_namep
target_label: sysdig_k8s_pod_container_name
- action: keep
source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape]
regex: true
- action: replace
Expand All @@ -45,8 +45,6 @@ data:
regex: ([^:]+)(?::\d+)?;(\d+)
replacement: $1:$2
target_label: __address__
# Holding on to pod-id and container name so we can associate the metrics
# with the container
dragent.yaml: |
new_k8s: true
k8s_cluster_name: your-cluster-name
Expand Down
6 changes: 2 additions & 4 deletions resources/aws-fargate/include/sysdig-agent-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ data:
- action: keep
source_labels: [__meta_kubernetes_pod_host_ip]
regex: __HOSTIPS__
- action: kee(and cluster hierarchy)
- action: replace
source_labels: [__meta_kubernetes_pod_uid]
target_label: sysdig_k8s_pod_uid
- action: replace
source_labels: [__meta_kubernetes_pod_container_name]
target_label: sysdig_k8s_pod_container_namep
target_label: sysdig_k8s_pod_container_name
- action: keep
source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape]
regex: true
- action: replace
Expand All @@ -45,8 +45,6 @@ data:
regex: ([^:]+)(?::\d+)?;(\d+)
replacement: $1:$2
target_label: __address__
# Holding on to pod-id and container name so we can associate the metrics
# with the container
dragent.yaml: |
new_k8s: true
k8s_cluster_name: your-cluster-name
Expand Down
6 changes: 2 additions & 4 deletions resources/aws-lambda/include/sysdig-agent-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ data:
- action: keep
source_labels: [__meta_kubernetes_pod_host_ip]
regex: __HOSTIPS__
- action: kee(and cluster hierarchy)
- action: replace
source_labels: [__meta_kubernetes_pod_uid]
target_label: sysdig_k8s_pod_uid
- action: replace
source_labels: [__meta_kubernetes_pod_container_name]
target_label: sysdig_k8s_pod_container_namep
target_label: sysdig_k8s_pod_container_name
- action: keep
source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape]
regex: true
- action: replace
Expand All @@ -45,8 +45,6 @@ data:
regex: ([^:]+)(?::\d+)?;(\d+)
replacement: $1:$2
target_label: __address__
# Holding on to pod-id and container name so we can associate the metrics
# with the container
dragent.yaml: |
new_k8s: true
k8s_cluster_name: your-cluster-name
Expand Down
6 changes: 2 additions & 4 deletions resources/aws-rds/include/sysdig-agent-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ data:
- action: keep
source_labels: [__meta_kubernetes_pod_host_ip]
regex: __HOSTIPS__
- action: kee(and cluster hierarchy)
- action: replace
source_labels: [__meta_kubernetes_pod_uid]
target_label: sysdig_k8s_pod_uid
- action: replace
source_labels: [__meta_kubernetes_pod_container_name]
target_label: sysdig_k8s_pod_container_namep
target_label: sysdig_k8s_pod_container_name
- action: keep
source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape]
regex: true
- action: replace
Expand All @@ -45,8 +45,6 @@ data:
regex: ([^:]+)(?::\d+)?;(\d+)
replacement: $1:$2
target_label: __address__
# Holding on to pod-id and container name so we can associate the metrics
# with the container
dragent.yaml: |
new_k8s: true
k8s_cluster_name: your-cluster-name
Expand Down
6 changes: 2 additions & 4 deletions resources/aws-s3/include/sysdig-agent-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ data:
- action: keep
source_labels: [__meta_kubernetes_pod_host_ip]
regex: __HOSTIPS__
- action: kee(and cluster hierarchy)
- action: replace
source_labels: [__meta_kubernetes_pod_uid]
target_label: sysdig_k8s_pod_uid
- action: replace
source_labels: [__meta_kubernetes_pod_container_name]
target_label: sysdig_k8s_pod_container_namep
target_label: sysdig_k8s_pod_container_name
- action: keep
source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape]
regex: true
- action: replace
Expand All @@ -45,8 +45,6 @@ data:
regex: ([^:]+)(?::\d+)?;(\d+)
replacement: $1:$2
target_label: __address__
# Holding on to pod-id and container name so we can associate the metrics
# with the container
dragent.yaml: |
new_k8s: true
k8s_cluster_name: your-cluster-name
Expand Down
6 changes: 2 additions & 4 deletions resources/aws-sqs/include/sysdig-agent-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ data:
- action: keep
source_labels: [__meta_kubernetes_pod_host_ip]
regex: __HOSTIPS__
- action: kee(and cluster hierarchy)
- action: replace
source_labels: [__meta_kubernetes_pod_uid]
target_label: sysdig_k8s_pod_uid
- action: replace
source_labels: [__meta_kubernetes_pod_container_name]
target_label: sysdig_k8s_pod_container_namep
target_label: sysdig_k8s_pod_container_name
- action: keep
source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape]
regex: true
- action: replace
Expand All @@ -45,8 +45,6 @@ data:
regex: ([^:]+)(?::\d+)?;(\d+)
replacement: $1:$2
target_label: __address__
# Holding on to pod-id and container name so we can associate the metrics
# with the container
dragent.yaml: |
new_k8s: true
k8s_cluster_name: your-cluster-name
Expand Down
6 changes: 2 additions & 4 deletions resources/cassandra/include/sysdig-agent.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ data:
- action: keep
source_labels: [__meta_kubernetes_pod_host_ip]
regex: __HOSTIPS__
- action: kee(and cluster hierarchy)
- action: replace
source_labels: [__meta_kubernetes_pod_uid]
target_label: sysdig_k8s_pod_uid
- action: replace
source_labels: [__meta_kubernetes_pod_container_name]
target_label: sysdig_k8s_pod_container_namep
target_label: sysdig_k8s_pod_container_name
- action: keep
source_labels: [__meta_kubernetes_pod_annotation_prometheus_io_scrape]
regex: true
- action: replace
Expand All @@ -43,8 +43,6 @@ data:
regex: ([^:]+)(?::\d+)?;(\d+)
replacement: $1:$2
target_label: __address__
# Holding on to pod-id and container name so we can associate the metrics
# with the container
dragent.yaml: |-
metrics_excess_log: true
k8s_cluster_name: YourClusterName
Expand Down

0 comments on commit adcdb26

Please sign in to comment.