Skip to content

Commit

Permalink
add pod_name label to exc
Browse files Browse the repository at this point in the history
  • Loading branch information
busma13 committed Oct 21, 2024
1 parent 4767b5e commit b49f236
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ export class PromMetrics {
private _setPodName(): void {
// in a pod the hostname is the pod name
const host = os.hostname();
if (host.startsWith('ts-wkr-')) {
if (host.startsWith('ts-wkr-') || host.startsWith('ts-exc-')) {
this.default_labels.pod_name = host;
}
}
Expand Down

0 comments on commit b49f236

Please sign in to comment.