Skip to content

Commit e597410

Browse files
Merge pull request #166 from daviddetorres/linking-metrics-workloads
Linking metrics workloads
2 parents 82380dd + 1a74fb0 commit e597410

File tree

12 files changed

+12
-17
lines changed

12 files changed

+12
-17
lines changed

resources/apache/alerts.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ descriptionFile: ALERTS.md
88
configurations:
99
- name: alerts.yaml
1010
kind: Prometheus
11-
file: include/alerts-rules.yaml
11+
file: include/alerts-rules.yaml

resources/aws-alb/alerts.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ descriptionFile: ALERTS.md
88
configurations:
99
- kind: Prometheus
1010
name: alerts.yaml
11-
file: include/alerts-rules.yaml
11+
file: include/alerts-rules.yaml

resources/elasticsearch/INSTALL.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ spec:
5656
...
5757
```
5858
# Sysdig Agent configuration
59+
> Requires Sysdig Agent >= v11.3
60+
5961
In the ElasticSearch exporter deployment, use the Sysdig annotations to configure the port of the exporter as scraping port. You can see an example in the `exporter_no_credentials.yaml` file.
6062

6163
Additionally, you can use these labels to add the namespace, workload type, and name of the database the exporter will retrieve the data from.
@@ -68,13 +70,15 @@ spec:
6870
promcat.sysdig.com/port: "9108"
6971

7072
# Add here the namespace, workload type (deployment, statefulset, replicaset, daemonset)
71-
7273
# and workload name of the instance that the exporter will take data from
7374
promcat.sysdig.com/target_ns: elastic-namespace
7475
promcat.sysdig.com/target_workload_type: statefulset
7576
promcat.sysdig.com/target_workload_name: elasticsearch
7677
```
7778
This way, on the Sysdig Monitor, you can view the associated metrics corresponding to the database pods and the exporter.
79+
80+
81+
7882
After you configure the Sysdig annotations, download the sample configuration file and apply it by:
7983
```bash
8084
kubectl apply -f sysdig-agent-config.yaml

resources/elasticsearch/include/exporter_no_credentials.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ spec:
2121
promcat.sysdig.com/target_ns: elastic-namespace
2222
promcat.sysdig.com/target_workload_type: statefulset
2323
promcat.sysdig.com/target_workload_name: elasticsearch
24-
promcat.sysdig.com/target_cluster_name: cluster-name
2524
labels:
2625
app: elasticsearch-exporter
2726
spec:

resources/elasticsearch/include/exporter_with_credentials.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ spec:
2222
promcat.sysdig.com/target_ns: elastic-namespace
2323
promcat.sysdig.com/target_workload_type: statefulset
2424
promcat.sysdig.com/target_workload_name: elasticsearch
25-
promcat.sysdig.com/target_cluster_name: cluster-name
2625
labels:
2726
app: elasticsearch-exporter
2827
spec:

resources/elasticsearch/include/sysdig-agent.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@ data:
5656
- action: replace
5757
source_labels: [__meta_kubernetes_pod_annotation_promcat_sysdig_com_target_workload_name]
5858
target_label: kube_workload_name
59-
- action: replace
60-
source_labels: [__meta_kubernetes_pod_annotation_promcat_sysdig_com_target_cluster_name]
61-
target_label: kube_cluster_name
6259
- action: replace
6360
replacement: true
6461
target_label: sysdig_omit_source

resources/postgresql/INSTALL.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ kubectl create secret generic postgres-exporter-auth \
104104

105105
You can use the `postgresql-auth-deploy.yaml` file as an example of a deployment with SSL authentication.
106106

107-
# SYSDIG AGENT CONFIGURATION
107+
# Sysdig Agent configuration
108+
> Requires Sysdig Agent >= v11.3
109+
108110
In the Postgres exporter deployment, use the Sysdig annotations to configure the port of the exporter as the scraping port. See the example in the `postgresql-standalone-exporter.yaml` file.
109111

110112
Additionally, you can use the labels to add the namespace, workload type, and name of the database the exporter will take data from.

resources/postgresql/include/postgresql-standalone-exporter.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ spec:
1919
promcat.sysdig.com/target_ns: default
2020
promcat.sysdig.com/target_workload_type: deployment
2121
promcat.sysdig.com/target_workload_name: postgres
22-
promcat.sysdig.com/target_cluster_name: cluster-name
2322
spec:
2423
containers:
2524
- name: postgres-exporter

resources/postgresql/include/sysdig-agent-config.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@ data:
5656
- action: replace
5757
source_labels: [__meta_kubernetes_pod_annotation_promcat_sysdig_com_target_workload_name]
5858
target_label: kube_workload_name
59-
- action: replace
60-
source_labels: [__meta_kubernetes_pod_annotation_promcat_sysdig_com_target_cluster_name]
61-
target_label: kube_cluster_name
6259
- action: replace
6360
replacement: true
6461
target_label: sysdig_omit_source

resources/redis/INSTALL.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ kubectl apply -f redis-exporter-deploy.yaml
2727
If your Redis instance does not requires authentication, you can remove the `REDIS_USER` and `REDIS_PASSWORD` environment variables.
2828

2929
# Sysdig Agent configuration
30+
> Requires Sysdig Agent >= v11.3
31+
3032
In the Redis exporter Deployment use the Sysdig annotations to configure the port of the exporter as the scraping port. See the example given in the `redis-exporter-deploy.yaml` file.
3133

3234
Additionally, you can use the labels to add the namespace, workload type, and name of the database the exporter will take data from.

0 commit comments

Comments
 (0)