|
Download sys/sys-0017.jsonl from winapiadmin/tinycodinglm: direct link, hf CLI and curl.
- Browser
- Download file 2.09 kB
-
https://huggingface.co/datasets/winapiadmin/tinycodinglm/resolve/034ba678829a1c436b19d43dd3adab33b5170a80/sys/sys-0017.jsonl
- Command line
-
hf download hf://datasets/winapiadmin/tinycodinglm@034ba678829a1c436b19d43dd3adab33b5170a80/sys/sys-0017.jsonl
-
curl -L -o sys-0017.jsonl https://huggingface.co/datasets/winapiadmin/tinycodinglm/resolve/034ba678829a1c436b19d43dd3adab33b5170a80/sys/sys-0017.jsonl
2.09 kB
| {"type": "session", "harness": "deepseek-harness", "id": "sys-0017", "name": "Prometheus and Grafana monitoring"} | |
| {"type": "message", "message": {"role": "system", "content": "You are an expert software engineer and technical assistant. You provide accurate, detailed, and practical answers. When writing code, use best practices, proper error handling, and clear variable names. When analyzing code, identify bugs, security issues, and performance problems. You have deep knowledge of C/C++, Windows API, Python, and many other technologies."}} | |
| {"type": "message", "message": {"role": "user", "content": "How do I set up monitoring with Prometheus and Grafana?"}} | |
| {"type": "message", "message": {"role": "assistant", "content": "```yaml\n# docker-compose.yml\nversion: '3.8'\nservices:\n prometheus:\n image: prom/prometheus\n ports: ['9090:9090']\n volumes:\n - ./prometheus.yml:/etc/prometheus/prometheus.yml\n\n grafana:\n image: grafana/grafana\n ports: ['3000:3000']\n environment:\n GF_SECURITY_ADMIN_PASSWORD: admin\n\n node-exporter:\n image: prom/node-exporter\n ports: ['9100:9100']\n volumes:\n - /proc:/host/proc:ro\n - /sys:/host/sys:ro\n```\n\n```yaml\n# prometheus.yml\nglobal:\n scrape_interval: 15s\n\nscrape_configs:\n - job_name: 'node'\n static_configs:\n - targets: ['node-exporter:9100']\n\n - job_name: 'app'\n metrics_path: '/metrics'\n static_configs:\n - targets: ['app:8080']\n```\n\nPromQL queries:\n```promql\n# CPU usage\n100 - (avg by(instance) (irate(node_cpu_seconds_total{mode=\"idle\"}[5m])) * 100)\n\n# Memory usage\n(1 - node_memory_MemAvailable_bytes / node_memory_MemTotal_bytes) * 100\n\n# HTTP request rate\nrate(http_requests_total[5m])\n\n# Error rate\nrate(http_requests_total{status=~\"5..\"}[5m]) / rate(http_requests_total[5m])\n```\n\nAlert rules:\n```yaml\ngroups:\n- name: alerts\n rules:\n - alert: HighCPU\n expr: 100 - (avg by(instance) (irate(node_cpu_seconds_total{mode=\"idle\"}[5m])) * 100) > 80\n for: 5m\n labels:\n severity: warning\n```"}} | |