-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
linkerd-viz: Bring your own Prometheus #13313
Comments
In addition to the above, i have also deployed: ---
apiVersion: policy.linkerd.io/v1beta3
kind: Server
metadata:
name: prometheus-server-admin
namespace: linkerd-viz
spec:
accessPolicy: deny
podSelector:
matchLabels:
app.kubernetes.io/component: server
app.kubernetes.io/instance: prometheus
app.kubernetes.io/name: prometheus
helm.sh/chart: prometheus-25.8.2
port: 9090
proxyProtocol: HTTP/1
---
apiVersion: policy.linkerd.io/v1alpha1
kind: AuthorizationPolicy
metadata:
name: prometheus-server-admin
namespace: linkerd-viz
spec:
requiredAuthenticationRefs:
- kind: ServiceAccount
name: metrics-api
namespace: linkerd-viz
targetRef:
group: policy.linkerd.io
kind: Server
name: prometheus-server-admin and extended the ---
apiVersion: policy.linkerd.io/v1beta3
kind: Server
metadata:
namespace: {{ .Release.Namespace }}
name: linkerd-admin
spec:
podSelector:
matchLabels: {}
port: linkerd-admin
proxyProtocol: HTTP/2
---
apiVersion: policy.linkerd.io/v1alpha1
kind: AuthorizationPolicy
metadata:
name: allow-viz
spec:
targetRef:
kind: Namespace
name: {{ .Release.Namespace }}
requiredAuthenticationRefs:
- name: linkerd-viz
kind: MeshTLSAuthentication
group: policy.linkerd.io
---
apiVersion: policy.linkerd.io/v1alpha1
kind: MeshTLSAuthentication
metadata:
name: linkerd-viz
namespace: {{ .Release.Namespace }}
spec:
identities:
- "tap.linkerd-viz.serviceaccount.identity.linkerd.cluster.local"
- "prometheus.linkerd-viz.serviceaccount.identity.linkerd.cluster.local"
- "prometheus-server.linkerd-viz.serviceaccount.identity.linkerd.cluster.local" The |
I've updated the original post as i had mistakenly put the prometheus.yml under server when it should have been under serverFiles. Things appear to be working much better and linkerd viz routes deploy/ now works (because obviously the data needed is there!) |
What is the issue?
When bringing my own prometheus to linkerd-viz so that the data persists across restarts and for longer periods of time, i encounter issues whereby
linkerd viz routes
does nothingHow can it be reproduced?
Deploy linkerd-viz such that
prometheus.enabled=false
andprometheusUrl
points to your deployment of prometheus (i have mine inside thelinkerd-viz
namespace.I have deployed prometheus using the
prometheus-community/prometheus
helm-chart with the below values most of which are either sourced from the documentation https://linkerd.io/2-edge/tasks/external-prometheus/ or the configmap itself. Into thelinkerd-viz
namespace:Logs, error output, etc
linkerd viz routes
doesn't show anything other than the serviceProfiles Routes themselves with no metrics.I have observed that the
tap
container withinlinkerd-viz
namespace emits:The IP here is that of the
tap
container itselfoutput of
linkerd check -o short
Environment
Kubernetes v1.29.8
Microk8s
Possible solution
linkerd viz dashboard still appears to operate, but the
linkerd viz routes
command only works when i use the bundled prometheus, rather than the one i deployAdditional context
relates to: #12889
relates to: #10804
Would you like to work on fixing this bug?
None
The text was updated successfully, but these errors were encountered: