Skip to content

Commit 9eb469b

Browse files
Merge pull request #169 from sysdiglabs/staging
July's deploy in production
2 parents f60b719 + 2423226 commit 9eb469b

File tree

23 files changed

+99
-202
lines changed

23 files changed

+99
-202
lines changed

resources/apache/INSTALL.md

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,8 @@ kubectl apply -f apache-deploy.yaml
7979

8080
# Configuring Sysdig Agent
8181

82-
Download the sample [Sysdig Agent configuration file](include/sysdig-agent-config.yaml). In the configuration file, add the following code to include the 'app' label as a metric label.
83-
```yaml
84-
process_filter:
85-
- include:
86-
kubernetes.pod.annotation.prometheus.io/scrape: true
87-
conf:
88-
path: "{kubernetes.pod.annotation.prometheus.io/path}"
89-
port: "{kubernetes.pod.annotation.prometheus.io/port}"
90-
tags:
91-
app: "{kubernetes.pod.label.app}"
92-
```
82+
Download the sample [Sysdig Agent configuration file](include/sysdig-agent-config.yaml). By default the job will be in the agent so you don't need to change anything but if you don't have it here you have the way to do that
83+
9384
Apply the changes:
9485
```bash
9586
kubectl apply -f sysdig-agent-config.yaml

resources/apache/include/apache-deploy.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ spec:
1212
template:
1313
metadata:
1414
annotations:
15-
prometheus.io/scrape: "true"
16-
prometheus.io/port: "9222"
15+
promcat.sysdig.com/port: "9222"
16+
promcat.sysdig.com/integration_type: "apache"
1717
labels:
1818
app: apache
1919
spec:
Lines changed: 53 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,66 @@
11
apiVersion: v1
2+
kind: ConfigMap
3+
metadata:
4+
name: sysdig-agent
5+
namespace: sysdig-agent
26
data:
37
dragent.yaml: |
48
new_k8s: true
5-
k8s_cluster_name: your-cluster-name
6-
jmx:
7-
enabled: false
9+
k8s_cluster_name: YourClusterName
810
metrics_excess_log: true
9-
app_checks_enabled: false
1011
10s_flush_enable: true
12+
app_checks_enabled: false
1113
use_promscrape: true
14+
new_k8s: true
15+
promscrape_fastproto: true
1216
prometheus:
1317
enabled: true
14-
histograms: true
18+
prom_service_discovery: true
19+
log_errors: true
20+
max_metrics: 200000
21+
max_metrics_per_process: 200000
22+
max_tags_per_metric: 100
1523
ingest_raw: true
1624
ingest_calculated: false
17-
interval: 10
18-
log_errors: true
19-
max_metrics: 3000
20-
max_metrics_per_process: 20000
21-
process_filter:
22-
- include:
23-
kubernetes.pod.annotation.prometheus.io/scrape: true
24-
conf:
25-
path: "{kubernetes.pod.annotation.prometheus.io/path}"
26-
port: "{kubernetes.pod.annotation.prometheus.io/port}"
2725
snaplen: 512
2826
tags: role:cluster
29-
kind: ConfigMap
30-
metadata:
31-
labels:
32-
app: sysdig-agent
33-
name: sysdig-agent
34-
namespace: sysdig-agent
27+
prometheus.yaml: |
28+
global:
29+
scrape_interval: 10s
30+
scrape_configs:
31+
- job_name: apache-default
32+
tls_config:
33+
insecure_skip_verify: true
34+
kubernetes_sd_configs:
35+
- role: pod
36+
relabel_configs:
37+
- action: keep
38+
source_labels: [__meta_kubernetes_pod_host_ip]
39+
regex: __HOSTIPS__
40+
- action: keep
41+
source_labels:
42+
- __meta_kubernetes_pod_annotation_promcat_sysdig_com_integration_type
43+
regex: "apache"
44+
- action: replace
45+
source_labels: [__meta_kubernetes_pod_annotation_promcat_sysdig_com_target_ns]
46+
target_label: kube_namespace_name
47+
- action: replace
48+
source_labels: [__meta_kubernetes_pod_annotation_promcat_sysdig_com_target_workload_type]
49+
target_label: kube_workload_type
50+
- action: replace
51+
source_labels: [__meta_kubernetes_pod_annotation_promcat_sysdig_com_target_workload_name]
52+
target_label: kube_workload_name
53+
- action: replace
54+
replacement: true
55+
target_label: sysdig_omit_source
56+
- action: replace
57+
source_labels: [__address__, __meta_kubernetes_pod_annotation_promcat_sysdig_com_port]
58+
regex: ([^:]+)(?::\d+)?;(\d+)
59+
replacement: $1:$2
60+
target_label: __address__
61+
- action: replace
62+
source_labels: [__meta_kubernetes_pod_uid]
63+
target_label: sysdig_k8s_pod_uid
64+
- action: replace
65+
source_labels: [__meta_kubernetes_pod_container_name]
66+
target_label: sysdig_k8s_pod_container_name

resources/aws-alb/INSTALL.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,7 @@ Do the following:
6868

6969
1. In the yace deployment, include the Prometheus annotations. Add the port of the exporter as the scraping port in the annotation.
7070

71-
2. In the Sysdig Agent configuration, add the following lines of configuration to scrape the containers with Prometheus annotations.
72-
```yaml
73-
process_filter:
74-
- include:
75-
kubernetes.pod.annotation.prometheus.io/scrape: true
76-
conf:
77-
path: "{kubernetes.pod.annotation.prometheus.io/path}"
78-
port: "{kubernetes.pod.annotation.prometheus.io/port}"
79-
```
80-
81-
3. Download the sample [Sysdig Agent configuration file](include/sysdig-agent-config.yaml) and apply it by:
71+
2. Download the sample [Sysdig Agent configuration file](include/sysdig-agent-config.yaml) and apply it by:
8272
```bash
8373
kubectl apply -f sysdig-agent-config.yaml
8474
```

resources/aws-ebs/INSTALL.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,6 @@ Do the following:
6767

6868
1. In the yace deployment, include the Prometheus annotations. Add the port of the exporter as the scraping port in the annotation.
6969

70-
2. In the Sysdig Agent configuration, add the following lines of configuration to scrape the containers with Prometheus annotations.
71-
```yaml
72-
process_filter:
73-
- include:
74-
kubernetes.pod.annotation.prometheus.io/scrape: true
75-
conf:
76-
path: "{kubernetes.pod.annotation.prometheus.io/path}"
77-
port: "{kubernetes.pod.annotation.prometheus.io/port}"
78-
```
79-
80-
3. Download the sample [Sysdig Agent configuration file](include/sysdig-agent-config.yaml) and apply it by:
70+
2. Download the sample [Sysdig Agent configuration file](include/sysdig-agent-config.yaml) and apply it by:
8171
```bash
8272
kubectl apply -f sysdig-agent-config.yaml

resources/aws-elb/INSTALL.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,7 @@ Do the following:
6868

6969
1. In the yace deployment, include the Prometheus annotations. Add the port of the exporter as the scraping port in the annotation.
7070

71-
2. In the Sysdig Agent configuration, add the following lines of configuration to scrape the containers with Prometheus annotations.
72-
```yaml
73-
process_filter:
74-
- include:
75-
kubernetes.pod.annotation.prometheus.io/scrape: true
76-
conf:
77-
path: "{kubernetes.pod.annotation.prometheus.io/path}"
78-
port: "{kubernetes.pod.annotation.prometheus.io/port}"
79-
```
80-
81-
3. Download the sample [Sysdig Agent configuration file](include/sysdig-agent-config.yaml) and apply it by:
71+
2. Download the sample [Sysdig Agent configuration file](include/sysdig-agent-config.yaml) and apply it by:
8272
```bash
8373
kubectl apply -f sysdig-agent-config.yaml
8474
```

resources/aws-fargate/INSTALL.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,7 @@ Do the following:
6666

6767
1. In the yace deployment, include the Prometheus annotations. Add the port of the exporter as the scraping port in the annotation.
6868

69-
2. In the Sysdig Agent configuration, add the following lines of configuration to scrape the containers with Prometheus annotations.
70-
```yaml
71-
process_filter:
72-
- include:
73-
kubernetes.pod.annotation.prometheus.io/scrape: true
74-
conf:
75-
path: "{kubernetes.pod.annotation.prometheus.io/path}"
76-
port: "{kubernetes.pod.annotation.prometheus.io/port}"
77-
```
78-
79-
3. Download the sample [Sysdig Agent configuration file](include/sysdig-agent-config.yaml) and apply the changes by:
69+
2. Download the sample [Sysdig Agent configuration file](include/sysdig-agent-config.yaml) and apply the changes by:
8070
```bash
8171
kubectl apply -f sysdig-agent-config.yaml
8272
```

resources/aws-lambda/INSTALL.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -66,17 +66,7 @@ Do the following:
6666

6767
1. In the yace deployment, include the Prometheus annotations. Add the port of the exporter as the scraping port in the annotation.
6868

69-
2. In the Sysdig Agent configuration, add the following lines of configuration to scrape the containers with Prometheus annotations.
70-
```yaml
71-
process_filter:
72-
- include:
73-
kubernetes.pod.annotation.prometheus.io/scrape: true
74-
conf:
75-
path: "{kubernetes.pod.annotation.prometheus.io/path}"
76-
port: "{kubernetes.pod.annotation.prometheus.io/port}"
77-
```
78-
79-
3. Download the sample [Sysdig Agent configuration file](include/sysdig-agent-config.yaml) and apply it by:
69+
2. Download the sample [Sysdig Agent configuration file](include/sysdig-agent-config.yaml) and apply it by:
8070
```bash
8171
kubectl apply -f sysdig-agent-config.yaml
8272
```

resources/aws-rds/INSTALL.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -67,17 +67,7 @@ Do the following:
6767

6868
1. In the yace deployment, include the Prometheus annotations. Add the port of the exporter as the scraping port in the annotation.
6969

70-
2. In the Sysdig Agent configuration, add the following lines of configuration to scrape the containers with Prometheus annotations.
71-
```yaml
72-
process_filter:
73-
- include:
74-
kubernetes.pod.annotation.prometheus.io/scrape: true
75-
conf:
76-
path: "{kubernetes.pod.annotation.prometheus.io/path}"
77-
port: "{kubernetes.pod.annotation.prometheus.io/port}"
78-
```
79-
80-
3. Download the sample [Sysdig Agent configuration file](include/sysdig-agent-config.yaml) and apply it by:
70+
2. Download the sample [Sysdig Agent configuration file](include/sysdig-agent-config.yaml) and apply it by:
8171
```bash
8272
kubectl apply -f sysdig-agent-config.yaml
8373
```

resources/aws-s3/INSTALL.md

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -79,17 +79,7 @@ Do the following:
7979

8080
1. In the yace deployment, include the Prometheus annotations. Add the port of the exporter as the scraping port in the annotation.
8181

82-
2. In the Sysdig Agent configuration, add the following lines of configuration to scrape the containers with Prometheus annotations.
83-
```yaml
84-
process_filter:
85-
- include:
86-
kubernetes.pod.annotation.prometheus.io/scrape: true
87-
conf:
88-
path: "{kubernetes.pod.annotation.prometheus.io/path}"
89-
port: "{kubernetes.pod.annotation.prometheus.io/port}"
90-
```
91-
92-
3. Download the sample [Sysdig Agent configuration file](include/sysdig-agent-config.yaml) and apply it by:
82+
2. Download the sample [Sysdig Agent configuration file](include/sysdig-agent-config.yaml) and apply it by:
9383
```bash
9484
kubectl apply -f sysdig-agent-config.yaml
9585
```

0 commit comments

Comments
 (0)