In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Grafana deployment configuration Test
Grafana official website address
1.helm deployment grafana
Deployment is simple, see below
[root@k8s-node1 prometheus-grafana] # helm install stable/grafana-- generate-nameNAME: grafana-1577432108LAST DEPLOYED: Fri Dec 27 15:35:11 2019NAMESPACE: defaultSTATUS: deployedREVISION: 1NOTES:1. Get your 'admin' user password by running: kubectl get secret-- namespace default grafana-1577432108-o jsonpath= "{. Data.admin-password}" | base64-- decode; echo2. The Grafana server can be accessed via port 80 on the following DNS name from within your cluster: grafana-1577432108.default.svc.cluster.local Get the Grafana URL to visit by running these commands in the same shell: export POD_NAME=$ (kubectl get pods-- namespace default-l "app=grafana,release=grafana-1577432108"-o jsonpath= "{.items [0] .metadata.name}") kubectl-- namespace default port-forward $POD_NAME 30003. Login with the password from step 1 and the username: admin# WARNING: Persistence is disabled!!! You will lose your data when # the Grafana pod is terminated. #
Note this:
1. Get your 'admin' user password by running: kubectl get secret-- namespace default grafana-1577432108-o jsonpath= "{.data.admin-password}" | base64-- decode; echo
It's in service.
[root@k8s-node1 ~] # kubectl get svc,pod | grep grafanaservice/grafana-1577432108 ClusterIP 10.254.172.86 80/TCP 132mpod/grafana-1577432108-65b987fdc6-dlhpb 1 Running 1 132m
two。 Configure web access
Configure the Ingress file, read and execute it, and then do host parsing to access web through grafana-server.
[root@k8s-node1 prometheus-grafana] # cat grafana-server-ingress.yaml apiVersion: extensions/v1beta1kind: Ingressmetadata: name: grafana-server namespace: defaultspec: rules:-host: grafana-server http: paths:-path: / backend: serviceName: grafana-1577432108 servicePort: 80
3. Log in
Looking at the previous note in part 1, the login password is obtained through that prompt.
[root@k8s-node1 prometheus-grafana] # kubectl get secret-- namespace default grafana-1577432108-o jsonpath= "{.data.admin-password}" | base64-- decode; echosLJq2G4tBSiJcEHSobRoRiDRbCNXxT5qASQJkzF6
The user name is: admin
The password is: sLJq2G4tBSiJcEHSobRoRiDRbCNXxT5qASQJkzF6
Login succeeded, as shown below:
4. Add data source
Add prometheus Feed
Http url is the address of prometheus service
[root@k8s-node1 prometheus-grafana] # kubectl get svc | grep serverprometheus-1577263826-server ClusterIP 10.254.132.104 80/TCP 47h
Save the configuration. Click dashboard again.
Then import, you can see the graphical interface.
5. Choose an interface with more personality parameters that you like.
Go to grafana website to download the template json file and import it.
Monitoring node template
Monitor pod Container template 1
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.