Skip to content

Commit 0baf547

Browse files
authored
Renamed cpuid into cpu (#3033)
fixes: #3028
2 parents 2dc6f13 + 94b67ca commit 0baf547

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ Using relabeling the following labels can be attached to profiles:
237237
* `__meta_containerd_container_name`: The name of the container the process is running in.
238238
* `__meta_containerd_pod_name`: The name of the pod the process is running in.
239239
* `__meta_lxc_container_id`: The ID of the container the process is running in.
240-
* `__meta_cpuid`: The CPUID the sample was taken on.
240+
* `__meta_cpu`: The CPU the sample was taken on.
241241

242242
## Security
243243

reporter/parca_reporter.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ func (r *ParcaReporter) addMetadataForPID(pid libpf.PID, lb *labels.Builder) boo
216216
return cache
217217
}
218218

219-
func (r *ParcaReporter) labelsForTID(tid, pid libpf.PID, comm string, cpuid int) labelRetrievalResult {
219+
func (r *ParcaReporter) labelsForTID(tid, pid libpf.PID, comm string, cpu int) labelRetrievalResult {
220220
if labels, exists := r.labels.Get(tid); exists {
221221
return labels
222222
}
@@ -225,7 +225,7 @@ func (r *ParcaReporter) labelsForTID(tid, pid libpf.PID, comm string, cpuid int)
225225
lb.Set("node", r.nodeName)
226226
lb.Set("__meta_thread_comm", comm)
227227
lb.Set("__meta_thread_id", fmt.Sprint(tid))
228-
lb.Set("__meta_cpuid", fmt.Sprint(cpuid))
228+
lb.Set("__meta_cpu", fmt.Sprint(cpu))
229229
cacheable := r.addMetadataForPID(pid, lb)
230230

231231
keep := relabel.ProcessBuilder(lb, r.relabelConfigs...)

0 commit comments

Comments
 (0)