You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: mission-control/docs/config-db/scrapers/kubernetes.md
+22-1Lines changed: 22 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,7 @@ The `kubernetes` scraper collects all of the resources and events in a Kubernete
64
64
You can create relationships between kubernetes objects on the basis of
65
65
66
66
:::info
67
-
[Relationships](../concepts/relationships) can also be defined under `transform.relationships`, however by defining them under `kubernetes.relationships` is simpler with specific support for `kind`, `name` and `namespace` fields.
67
+
[Relationships](../concepts/relationships) can also be defined under `transform.relationships`, however defining them under `kubernetes.relationships` is simpler with specific support for `kind`, `name` and `namespace` fields.
68
68
:::
69
69
70
70
```yaml title="kubernetes-relationship.yaml"
@@ -111,3 +111,24 @@ There are 3 different ways to specify which value to use when finding related co
111
111
| `expr` | Use an expression to get the value | `string` | |
112
112
| `value` | Specify a static value | `string` | |
113
113
| `label` | Get the value from a label | `string` | |
114
+
115
+
116
+
## Special annotations
117
+
118
+
Kubernetes resources can be annotated with some special annotations that can direct the scraper to certain behaviors.
| `config-db.flanksource.com/tags: "key1:val1,key2:val2"` | Attach custom tags to the object. A config can have as many as `5` tags, so keep the custom tags limited. |
123
+
| `config-db.flanksource.com/ignore: true` | Exclude the object from being scraped along with all of its changes. |
124
+
| `config-db.flanksource.com/ignore-changes: <pattern>` | Exclude changes by type for the given object that matches the pattern. |
125
+
| `config-db.flanksource.com/ignore-change-severity: <pattern>` | Exclude changes by severity for the given object that matches the pattern. |
126
+
127
+
### Pattern matching
128
+
129
+
Pattern matching suports the following operations
130
+
131
+
- Use `*` to exclude all.
132
+
- Prefix matching. Example: `Added*,Deleted*`
133
+
- Suffix matching. Example: `*Terminated`
134
+
- Negation will match everything but the pattern: Example: `!PodCrashLooping`
0 commit comments