Comments (8)
@jerrwy you should use this URL for proxy after the run of kubectl proxy
http://127.0.0.1:8001/api/v1/namespaces/monitoring/services/http:grafana:/proxy
In that way you are calling service http:grafana and you are asking a proxy on it
from prometheus.
If you are running it in minkube you have to expose the grafana service (Nodeport type) or run a kubectl proxy
from prometheus.
i had run kubectl proxy
when i visit http://localhost:8001/api/v1/namespaces/monitoring/services/grafana:3000
i get result
{
"kind": "Status",
"apiVersion": "v1",
"metadata": {},
"status": "Failure",
"message": "services \"grafana:3000\" not found",
"reason": "NotFound",
"details": {
"name": "grafana:3000",
"kind": "services"
},
"code": 404
}
how can i visit grafana dashboard UI ?
from prometheus.
If you still have problems another approach is to go directly to pod without proxy
Run
kubectl port-forward $(kubectl get pods --selector=app=grafana -n monitoring --output=jsonpath="{.items..metadata.name}") -n monitoring 9200:3000
and then go to
from prometheus.
thx! it worked!
from prometheus.
how can i visit prometheus targets in kubectl proxy?
i have try http://127.0.0.1:8001/api/v1/namespaces/monitoring/services/http:prometheus:/proxy
but return result
{
"kind": "Status",
"apiVersion": "v1",
"metadata": {},
"status": "Failure",
"message": "no endpoints available for service \"http:prometheus:\"",
"reason": "ServiceUnavailable",
"code": 503
}
from prometheus.
thx~ i am use kubectl port-forward
command visit prometheus targets now
from prometheus.
Yeah, port forward should be the way in case you don't expose it through an ingress resource. Adding this info in the readme
from prometheus.
Related Issues (20)
- how to set grafana path prefix? HOT 2
- Alertmanager CrashLoopBackOff HOT 2
- grafana could not access promtheus when i deplyed node-exporter HOT 1
- all containers are names "io_kubernetes_container_name" HOT 2
- Cannot import new dashboard HOT 1
- Error when applying manifest HOT 4
- Deleted
- chown: changing ownership of '/var/lib/grafana': Operation not permitted HOT 3
- no grafana data older than 1 hour HOT 1
- kube-state-metrics-74f67b58d8-tv6zv | CrashLoopBackOff HOT 1
- grafana-import-dashboards Completed HOT 2
- Automatically monitor new service
- SMTP configuration not loading HOT 1
- Empty dashboards from time to time HOT 4
- Issue w/ Quick start instructions HOT 1
- node-directory-size-metrics eats up burst balance on aws HOT 2
- node-directory-size-metrics - high memory utilization HOT 1
- unable to recognize - no matches for kind "Deployment" in version "extensions/v1beta1" HOT 1
- - job_name: 'kubernetes-nodes' - not working
- Some error in log
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prometheus.