Skip to content

added additional network observer /metrics endpoint#2374

Merged
JPadovano1483 merged 2 commits intoskupperproject:mainfrom
JPadovano1483:james-external-metrics
Feb 12, 2026
Merged

added additional network observer /metrics endpoint#2374
JPadovano1483 merged 2 commits intoskupperproject:mainfrom
JPadovano1483:james-external-metrics

Conversation

@JPadovano1483
Copy link
Contributor

added a metrics endpoint to the network-observer container to allow external metrics collection

Fixes #2194

Copy link
Contributor

@c-kruse c-kruse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few small suggestions, otherwise this is great!


flags.StringVar(&cfg.VanflowLoggingProfile, "vanflow-logging-profile", "silent", "Controls low level vanflow record logging. Options are silent, minimal, moderate and all")

flags.StringVar(&cfg.MetricsListenAddress, "listen-metrics", ":9000", "The address that the Metrics Server will listen on.")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggest defaulting this to "" so that it is off by default.

name: {{ include "network-observer.fullname" . }}-metrics
labels:
{{ include "network-observer.labels" . | nindent 4 }}
app: metrics
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

app does not seem quite right to me. Maybe app.kubernetes.io/component instead?

Copy link
Contributor

@c-kruse c-kruse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice!

Deployed to openshift, added a ServiceMonitor, and it worked great.

apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
  name: network-observer-metrics
spec:
  endpoints:
  - interval: 30s
    port: metrics
  selector:
    matchLabels:
      app.kubernetes.io/component: metrics
      app.kubernetes.io/part-of: skupper-network-observer

Copy link
Member

@fgiorgetti fgiorgetti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@JPadovano1483 JPadovano1483 merged commit d9ed2f0 into skupperproject:main Feb 12, 2026
2 checks passed
@JPadovano1483 JPadovano1483 deleted the james-external-metrics branch February 12, 2026 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chart/network-observer: openshift auth with external metrics collection

3 participants