Skip to content

Commit

Permalink
chore(module): add d8_* prefix and fix lost namespce label (#295)
Browse files Browse the repository at this point in the history
Signed-off-by: Pavel Tishkov <[email protected]>
  • Loading branch information
fl64 authored Aug 19, 2024
1 parent 1a461a4 commit 4392f0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ limitations under the License.
package metrics

const (
MetricNamespace = "virtualization"
MetricNamespace = "d8_virtualization"
)
13 changes: 1 addition & 12 deletions templates/virtualization-controller/scrape-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,5 @@ spec:
- targets: ['virtualization-controller-metrics.d8-{{ .Chart.Name }}.svc.{{ .Values.global.discovery.clusterDomain }}.:8080']
relabelings:
- action: labeldrop
regex: (container|endpoint|job|service|pod|exported_namespace|uid)
metricRelabelings:
- sourceLabels: [__name__]
regex: "(.*)"
separator: ;
action: replace
targetLabel: __name__
replacement: d8_$1
- action: replace
sourceLabels:
- exported_namespace
targetLabel: namespace
regex: (job)
metricsPath: '/metrics'

0 comments on commit 4392f0f

Please sign in to comment.