Skip to content

πŸ• Your time series metric agent - A powerful desktop IDE for modern time series query development with VS Code-like interface, AI-powered analytics, and seamless Grafana integration. Build and debug PromQL and InfluxQL queries in a dedicated desktop environment designed for developers.

License

Notifications You must be signed in to change notification settings

Liquescent-Development/time-buddy

Repository files navigation

Time Buddy Logo

Time Buddy

Your time series metric agent

Release Platform License

A powerful desktop IDE for modern time series query development with VS Code-like interface, AI-powered analytics, and seamless Grafana integration

πŸ“₯ Download β€’ πŸš€ Quick Start β€’ πŸ“– Documentation


🎯 Why Choose Time Buddy?

Stop switching between browser tabs. Build and debug time series queries in a dedicated desktop environment designed for developers.

  • πŸ–₯️ Native desktop app - No more browser limitations
  • 🧠 AI-powered analytics - Intelligent anomaly detection with visual analysis
  • πŸ” Smart schema explorer - Click-to-insert with real-time discovery
  • ⚑ Advanced editor - Syntax highlighting, autocomplete, and validation
  • πŸ“Š Multiple visualizations - Tables, charts, and log scale support
  • πŸ—ƒοΈ Connection management - Securely manage multiple Grafana instances

✨ Features

🧠 AI/ML Analytics (New!)

  • Intelligent anomaly detection powered by Ollama or OpenAI
  • Multiple AI providers - Local Ollama models or cloud OpenAI API
  • Visual analysis mode with chart-based AI insights
  • Dynamic model selection from available models
  • Time series preprocessing with intelligent data subsampling
  • Saved analyses for tracking anomaly patterns over time

πŸ–₯️ Professional Query Environment

  • VS Code-like interface with tabbed editing and syntax highlighting
  • PromQL & InfluxQL support with 40+ autocomplete functions
  • Real-time validation and intelligent error detection
  • Multi-tab workflow for complex query development
  • File system integration - save/load .promql and .isql files

πŸ” Smart Data Discovery

  • Interactive schema explorer with click-to-insert functionality
  • Dynamic variable system for reusable query components
  • Dashboard explorer to extract and analyze existing queries
  • Connection-aware caching for fast schema browsing

πŸ“Š Advanced Visualization

  • Multiple chart types - line, bar, scatter plots with Chart.js
  • Log scale support for handling extreme value ranges
  • Series management for GROUP BY results
  • Export capabilities for external analysis

πŸ” Enterprise-Ready

  • Secure connection management (passwords never stored)
  • SOCKS5 proxy support for secure environments
  • Self-signed SSL handling
  • Cross-platform compatibility (macOS, Windows, Linux)

πŸ“₯ Quick Start

Download & Install

  1. Download the latest release for your platform:

  2. Install and launch the application

  3. Connect to your Grafana instance:

    • Click "+" in Connections panel
    • Enter Grafana URL and credentials
    • Select your data source
  4. Start querying with full autocomplete and syntax highlighting!

AI Analytics Setup (Optional)

Option 1: Local AI with Ollama

  1. Install Ollama from ollama.ai
  2. Pull a model: ollama pull llama3.2
  3. Configure Ollama connection in the app with your local endpoint
  4. Enable visual analysis for intelligent anomaly detection

Option 2: Cloud AI with OpenAI

  1. Get OpenAI API key from platform.openai.com
  2. Configure OpenAI connection in the app with your API key
  3. Select model from available options (GPT-4, GPT-3.5-turbo, etc.)
  4. Run AI analysis with cloud-powered insights

πŸ› οΈ Development

# Clone and install
git clone https://github.com/Liquescent-Development/grafana-query-ide.git
cd time-buddy
npm install

# Development mode
npm run electron-dev

# Build for all platforms  
npm run build-all

πŸ“š Example Queries

PromQL (Prometheus)

# CPU usage with rate calculation
rate(cpu_usage_seconds_total[5m])

# Memory usage by container
sum(container_memory_usage_bytes) by (container_name)

InfluxQL (InfluxDB)

-- Temperature trends over time
SELECT mean("temperature") FROM "sensors" 
WHERE time > now() - 1h GROUP BY time(5m)

⌨️ Keyboard Shortcuts

Action Shortcut
Execute Query Ctrl/Cmd + Enter
Save Query Ctrl/Cmd + S
New Tab Ctrl/Cmd + N
Auto-complete Ctrl + Space

πŸ—οΈ Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”    β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Electron Desktop│───▢│  Express Proxy  │───▢│ Grafana Instanceβ”‚  
β”‚                 β”‚    β”‚                 β”‚    β”‚                 β”‚
β”‚ β€’ VS Code UI    β”‚    β”‚ β€’ CORS Handling β”‚    β”‚ β€’ Data Sources  β”‚
β”‚ β€’ AI Analytics  β”‚    β”‚ β€’ SSL Support   β”‚    β”‚ β€’ Query API     β”‚
β”‚ β€’ File System   β”‚    β”‚ β€’ Authenticationβ”‚    β”‚ β€’ Dashboards    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜    β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
          β”‚
          β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   AI Providers  β”‚
β”‚                 β”‚
β”‚ β€’ Ollama (Local)β”‚
β”‚ β€’ OpenAI (Cloud)β”‚
β”‚ β€’ Vision Supportβ”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

🀝 Contributing

We welcome contributions! Areas for enhancement:

  • Additional AI providers and models
  • Query optimization and performance monitoring
  • New visualization types and analysis modes
  • Additional data source support

πŸ“„ License

This project is licensed under the GNU Affero General Public License v3.0 (AGPLv3). See the LICENSE file for the full license text.


Built with ❀️ for the time series community

⭐ Star us on GitHub β€’ πŸ› Report Issues β€’ πŸ’¬ Discussions

About

πŸ• Your time series metric agent - A powerful desktop IDE for modern time series query development with VS Code-like interface, AI-powered analytics, and seamless Grafana integration. Build and debug PromQL and InfluxQL queries in a dedicated desktop environment designed for developers.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published