Commit 25623ab
authored
[k8sattributes] rename internal telemetry (open-telemetry#45940)
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
This PR applies the renaming of the internal telemetry metrics in order
to use dots instead of underscores in alignment with
open-telemetry/opentelemetry-collector#12909
and OTel SemConv.
This will happen through a feature gate pair:
- `processor.k8sattributes.telemetry.disableOldFormatMetrics`
- `processor.k8sattributes.telemetry.enableNewFormatMetrics`
My suggestion will be to keep these gates in alpha for 3 releases, then
promote them to beta for another 3 before making them stable.
The renames are the following:
```
otelsvc_k8s_daemonset_added -> otelcol.k8s.watcher.daemonset.added
otelsvc_k8s_daemonset_deleted -> otelcol.k8s.watcher.daemonset.deleted
otelsvc_k8s_daemonset_updated -> otelcol.k8s.watcher.daemonset.updated
otelsvc_k8s_deployment_added -> otelcol.k8s.watcher.deployment.added
otelsvc_k8s_deployment_deleted -> otelcol.k8s.watcher.deployment.deleted
otelsvc_k8s_deployment_updated -> otelcol.k8s.watcher.deployment.updated
otelsvc_k8s_job_added -> otelcol.k8s.watcher.job.added
otelsvc_k8s_job_deleted -> otelcol.k8s.watcher.job.deleted
otelsvc_k8s_job_updated -> otelcol.k8s.watcher.job.updated
otelsvc_k8s_namespace_added -> otelcol.k8s.watcher.namespace.added
otelsvc_k8s_namespace_deleted -> otelcol.k8s.watcher.namespace.deleted
otelsvc_k8s_namespace_updated -> otelcol.k8s.watcher.namespace.updated
otelsvc_k8s_node_added -> otelcol.k8s.watcher.node.added
otelsvc_k8s_node_deleted -> otelcol.k8s.watcher.node.deleted
otelsvc_k8s_node_updated -> otelcol.k8s.watcher.node.updated
otelsvc_k8s_pod_added -> otelcol.k8s.watcher.pod.added
otelsvc_k8s_pod_deleted -> otelcol.k8s.watcher.pod.deleted
otelsvc_k8s_pod_updated -> otelcol.k8s.watcher.pod.updated
otelsvc_k8s_pod_table_size -> otelcol.k8s.watcher.pod_cache.size
otelsvc_k8s_replicaset_added -> otelcol.k8s.watcher.replicaset.added
otelsvc_k8s_replicaset_deleted -> otelcol.k8s.watcher.replicaset.deleted
otelsvc_k8s_replicaset_updated -> otelcol.k8s.watcher.replicaset.updated
otelsvc_k8s_statefulset_added -> otelcol.k8s.watcher.statefulset.added
otelsvc_k8s_statefulset_deleted -> otelcol.k8s.watcher.statefulset.deleted
otelsvc_k8s_statefulset_updated -> otelcol.k8s.watcher.statefulset.updated
```
`otelcol_otelsvc_k8s_ip_lookup_miss` -> [DEPRECATED] Number of times pod
by IP lookup failed
> **Deprecated since 0.146.0**
> Use otelcol.k8s.pod.association instead
<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes
open-telemetry#45871
<!--Describe what testing was performed and which tests were added.-->
#### Testing
~
<!--Describe the documentation added.-->
#### Documentation
Updated
<!--Please delete paragraphs that you did not use before submitting.-->
Signed-off-by: ChrsMark <chrismarkou92@gmail.com>1 parent 22166e6 commit 25623ab
9 files changed
Lines changed: 1304 additions & 47 deletions
File tree
- .chloggen
- processor/k8sattributesprocessor
- internal
- kube
- metadatatest
- metadata
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
53 | 210 | | |
54 | 211 | | |
55 | 212 | | |
| |||
163 | 320 | | |
164 | 321 | | |
165 | 322 | | |
| 323 | + | |
| 324 | + | |
166 | 325 | | |
167 | 326 | | |
0 commit comments