-
Notifications
You must be signed in to change notification settings - Fork 233
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
No data shown in Grafana Dashboards #468
Comments
This might be caused by the configured authentication. I guess metrics requires a token currently. |
for the broker |
I was having the same issue. Could resolve it by installing the helm chart into 'default' namespace rather than 'pulsar' |
thanks, @lerodu. Most likely this could be resolved by configuring Something like this kube-prometheus-stack:
prometheus:
prometheusSpec:
podMonitorNamespaceSelector:
matchLabels: {} |
It might be actually related to this: https://github.com/prometheus-operator/kube-prometheus/blob/main/docs/customizations/monitoring-additional-namespaces.md#monitoring-additional-namespaces
Also mentioned at https://prometheus-operator.dev/kube-prometheus/kube/monitoring-other-namespaces/ |
It seems that this problem will be solved in the helm chart release 4.0.0 where #555 is also addressed. Claude generated RBAC is something like this, however it might not be correct. The official docs are at https://prometheus-operator.dev/kube-prometheus/kube/monitoring-other-namespaces/ . ---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: prometheus-k8s
namespace: foo # Replace with your target namespace
rules:
# Core Kubernetes resources
- apiGroups:
- ""
resources:
- services
- endpoints
- pods
verbs:
- get
- list
- watch
# Prometheus Operator CRDs
- apiGroups:
- monitoring.coreos.com
resources:
- servicemonitors
- podmonitors
- prometheusrules
- probes
- alertmanagers
- prometheuses
- thanosrulers
verbs:
- get
- list
- watch
# For metric delegation and federation
- apiGroups:
- monitoring.coreos.com
resources:
- servicemonitors/finalizers
- podmonitors/finalizers
- probes/finalizers
verbs:
- get
- list
- watch
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: prometheus-k8s
namespace: foo # Replace with your target namespace
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: prometheus-k8s
subjects:
- kind: ServiceAccount
name: prometheus-kube-prometheus-stack-prometheus # This name depends on your release name
namespace: monitoring # This should be the namespace where Prometheus is deployed |
One detail is that Helm's |
Reopening this issue since the dashboards don't connect to the datasource and that causes a problem. |
Looks like this part should take care of adjusting the datasource |
I noticed that I don't see any data in my Grafana Dashboards. I hoped for this problem to be fixed after updating to the latest version of the chart (3.0.0. -> 3.3.0) but it persists ever since. All dashboards are showing no data.
I checked Grafanas settings and see that a Prometheus datasource is configured (http://pulsar-kube-prometheus-sta-prometheus.default:9090). If I click on "Test" to test the connection, I receive "Succesfully queried the Prometheus API".
After that I opened the Prometheus UI and checked the configuration under http://prometheus-address:9090/config. In it I see a bunch of jobs related to Pulsar:
Looking up the Metrics Explorer I can't see any Pulsar related metrics.
I'll post here my values.yaml:
I installed the Pulsar helm chart into a namespace "pulsar" and noticed that all Grafana-Stack related components were installed into the "default" namespace.
Could this be an issue?
I also enabled authentication/authorization, maybe the issue has to do with that?
The text was updated successfully, but these errors were encountered: