Enables natural language querying of InfluxDB time series data by converting Korean text queries into Flux query language and executing them against InfluxDB instances
MCP Server
자연어로 InfluxDB 쿼리를 생성하고 실행하는 서버입니다.
설치 및 설정
1. Python 환경 설정
2. 서버 실행
3. InfluxDB 설정
서버를 실행하기 전에 InfluxDB가 필요합니다. 다음 정보를 확인하세요:
- URL: http://your-influxdb-host:8086
- Organization: your-org
- Token: your-token
- Bucket: your-bucket
사용 방법
1. 단일 메트릭 쿼리
2. 복합 메트릭 쿼리
테스트
1. 테스트 환경 설정
2. 테스트 실행
3. 테스트 케이스
현재 구현된 테스트 케이스:
test_parse_duration
: 시간 표현 파싱 ("5분 전", "2시간 전" 등)test_parse_agg
: 집계 함수 파싱 ("평균", "최대", "최소" 등)test_parse_measurement
: 메트릭 타입 파싱 ("CPU", "메모리" 등)test_build_flux
: 기본 쿼리 생성test_parse_duration_various_ranges
: 다양한 시간 범위 테스트test_parse_agg_various_functions
: 다양한 집계 함수 테스트test_parse_measurement_various_metrics
: 다양한 메트릭 타입 테스트test_build_flux_with_host_filter
: 호스트 필터링 쿼리 생성test_build_multi_metric_flux
: 복합 메트릭 쿼리 생성
자세한 테스트 케이스와 예시는 테스트 케이스 문서를 참조하세요.
4. 테스트 추가 방법
새로운 테스트를 추가하려면 tests/test_nl2flux.py
파일에 테스트 함수를 추가하세요:
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Enables users to generate and execute InfluxDB queries using natural language commands in Korean. Supports querying metrics like CPU usage, memory status, and system monitoring data through conversational interface.