Skills resources
apiVersion: skill.ooder.net/v1
git clone https://github.com/oodercn/skills
skills/capabilities/monitor/skill-monitor/src/main/resources/skill.yamlapiVersion: skill.ooder.net/v1 kind: Skill
metadata: id: skill-monitor name: 监控服务 version: 2.3.0 description: 系统监控、指标采集、告警管理、日志查询 author: ooder Team type: system-service license: Apache-2.0 homepage: https://gitee.com/ooderCN repository: https://gitee.com/ooderCN/ooder-skills keywords: - monitor - metrics - alert - observation - logging
spec: skillForm: PROVIDER type: system-service
capability: category: sys
ownership: platform
capability: address: 0x50 category: MON code: MON_METRICS operations: [metrics-collect, alert-manage, log-query, observation]
dependencies: []
capabilities: - id: metrics-collect name: 指标采集 description: 采集系统指标数据 category: monitoring type: ATOMIC
- id: alert-manage name: 告警管理 description: 创建、确认告警规�? category: monitoring type: ATOMIC - id: log-query name: 日志查询 description: 查询系统日志 category: monitoring type: ATOMIC - id: observation name: 观测能力 description: 目标观测和历史数据获�? category: monitoring type: ATOMIC - id: metrics-query name: 指标查询 description: 查询指定指标数据 category: monitoring type: ATOMIC
endpoints: - path: /api/monitor/metrics method: GET description: 获取所有指�? capability: metrics-collect
- path: /api/monitor/metrics/{name} method: GET description: 获取指定指标 capability: metrics-query - path: /api/monitor/alerts method: GET description: 获取告警列表 capability: alert-manage - path: /api/monitor/alerts method: POST description: 创建告警规则 capability: alert-manage - path: /api/monitor/alerts/{alertId}/acknowledge method: POST description: 确认告警 capability: alert-manage - path: /api/monitor/logs method: GET description: 查询日志 capability: log-query - path: /api/monitor/observe/{targetId} method: GET description: 观测目标 capability: observation - path: /api/monitor/observe/{targetId}/history method: GET description: 获取观测历史 capability: observation
runtime: language: java javaVersion: "8" framework: spring-boot mainClass: net.ooder.skill.monitor.MonitorSkillApplication
llmConfig: required: false defaultProvider: "deepseek" defaultModel: "deepseek-chat" capabilities: - chat - streaming - function-calling modelSelection: allowUserOverride: true availableProviders: - deepseek - openai - qianwen - volcengine - ollama functionCalling: enabled: true tools: - name: query_skill_capability description: "查询当前技能的能力和使用方�? parameters: type: object properties: capability: type: string description: "能力名称" detail: type: string enum: [brief, detailed, examples] default: "brief" - name: execute_mvel_action description: "通过MVEL表达式执行后台操�? parameters: type: object properties: expression: type: string description: "MVEL表达�? context: type: object - name: generate_ui_form description: "生成UI表单供用户填�? parameters: type: object properties: formType: type: string fields: type: array items: type: object - name: execute_batch_operation description: "执行批量操作" parameters: type: object properties: operation: type: string items: type: array items: type: object - name: convert_to_javascript description: "转换为JavaScript代码供用户使�? parameters: type: object properties: action: type: string parameters: type: object toolChoice: auto rateLimits: requestsPerMinute: 60 tokensPerMinute: 100000
config: optional: - name: METRICS_INTERVAL type: integer default: 30000 description: 指标采集间隔(毫秒) - name: LOG_RETENTION_DAYS type: integer default: 7 description: 日志保留天数 - name: ALERT_ENABLED type: boolean default: true description: 启用告警功能 - name: OBSERVATION_WINDOW type: integer default: 3600000 description: 观测时间窗口(毫秒)
resources: cpu: "200m" memory: "256Mi" storage: "100Mi"
offline: enabled: true cacheStrategy: local syncOnReconnect: true