Nlekota
Nchịkọta nyocha na ikpo okwu nlekota nwere dashboards mara mma maka onyonyo nha
Jụọ Prometheus, InfluxDB, Elasticsearch, MySQL, PostgreSQL, CloudWatch, na ndị ọzọ karịa 100
Ọbá akwụkwọ nhụta bara ụba nwere graphs, gauges, heatmaps, tables, na panels ọdịnala
Alert dị mfe site na Slack, PagerDuty, email, webhooks, na ndị ọzọ
Ajụjụ ngwa ngwa na nchọpụta ndekọ site na ndị na-ewu ajụjụ dị mfe
Dashboards dị ndụ nke na-emezi onwe ha n'ihe gburugburu na nzacha dị iche iche
Gburugburu plugin buru ibu maka data sources, panels, na ngwa
# Add APT repository
sudo apt-get install -y apt-transport-https software-properties-common
sudo wget -q -O /usr/share/keyrings/grafana.key https://apt.grafana.com/gpg.key
echo "deb [signed-by=/usr/share/keyrings/grafana.key] https://apt.grafana.com stable main" | sudo tee -a /etc/apt/sources.list.d/grafana.list
# Install
sudo apt-get update
sudo apt-get install grafana
# Start service
sudo systemctl start grafana-server
sudo systemctl enable grafana-server
# Access at http://localhost:3000
# Default login: admin/adminWụnye Docker:docker run -d --name=grafana -p 3000:3000 \
-v grafana-storage:/var/lib/grafana \
grafana/grafana-oss:latestDocker Compose (na Prometheus):version: '3'
services:
grafana:
image: grafana/grafana-oss:latest
ports:
- "3000:3000"
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin
- GF_INSTALL_PLUGINS=grafana-clock-panel
volumes:
- grafana-data:/var/lib/grafana
prometheus:
image: prom/prometheus:latest
ports:
- "9090:9090"
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus-data:/prometheus
volumes:
grafana-data:
prometheus-data:
[server]
http_port = 3000
domain = grafana.yourdomain.com
root_url = https://grafana.yourdomain.com
[database]
type = postgres
host = localhost:5432
name = grafana
user = grafana
password = password
[security]
admin_user = admin
admin_password = secure_password
[smtp]
enabled = true
host = smtp.gmail.com:587
user = your-email@gmail.com
password = your-app-password
from_address = grafana@yourdomain.comTinye Prometheus Data Source (API):curl -X POST http://admin:password@localhost:3000/api/datasources \
-H "Content-Type: application/json" \
-d '{
"name": "Prometheus",
"type": "prometheus",
"url": "http://localhost:9090",
"access": "proxy",
"isDefault": true
}'Dashboard JSON (Dashboard CPU Dị Mfe):{
"dashboard": {
"title": "CPU Monitoring",
"panels": [{
"title": "CPU Usage",
"type": "graph",
"targets": [{
"expr": "100 - (avg(irate(node_cpu_seconds_total{mode=\"idle\"}[5m])) * 100)"
}]
}]
}
}Ụzọ Kacha Mma:Nweta n'ime minit na anyị mfe VPS deployment usoro
Deploy n'ihe banyere 2 nkeji • Full root access • Support site tiketi na email