{"id":13526884,"url":"https://github.com/influxdata/kapacitor","last_synced_at":"2025-05-13T18:04:46.285Z","repository":{"id":37546317,"uuid":"41681600","full_name":"influxdata/kapacitor","owner":"influxdata","description":"Open source framework for processing, monitoring, and alerting on time series data","archived":false,"fork":false,"pushed_at":"2025-04-30T08:15:44.000Z","size":22650,"stargazers_count":2339,"open_issues_count":840,"forks_count":488,"subscribers_count":118,"default_branch":"master","last_synced_at":"2025-05-06T16:17:23.702Z","etag":null,"topics":["kapacitor","monitoring","time-series"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/influxdata.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2015-08-31T14:54:42.000Z","updated_at":"2025-04-30T08:06:57.000Z","dependencies_parsed_at":"2022-07-12T22:30:31.969Z","dependency_job_id":"debb0a2a-99c3-4a82-a5b4-365828c23078","html_url":"https://github.com/influxdata/kapacitor","commit_stats":{"total_commits":1414,"total_committers":142,"mean_commits":9.95774647887324,"dds":0.6223479490806223,"last_synced_commit":"3407c75c78a6c0ac6a5ca32949d12d9a0e60b57e"},"previous_names":["influxdb/kapacitor"],"tags_count":152,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/influxdata%2Fkapacitor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/influxdata%2Fkapacitor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/influxdata%2Fkapacitor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/influxdata%2Fkapacitor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/influxdata","download_url":"https://codeload.github.com/influxdata/kapacitor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254000824,"owners_count":21997441,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["kapacitor","monitoring","time-series"],"created_at":"2024-08-01T06:01:36.734Z","updated_at":"2025-05-13T18:04:46.262Z","avatar_url":"https://github.com/influxdata.png","language":"Go","readme":"# Kapacitor [![Circle CI](https://circleci.com/gh/influxdata/kapacitor/tree/master.svg?style=svg\u0026circle-token=78c97422cf89526309e502a290c230e8a463229f)](https://circleci.com/gh/influxdata/kapacitor/tree/master) [![Docker pulls](https://img.shields.io/docker/pulls/library/kapacitor.svg)](https://hub.docker.com/_/kapacitor/)\nOpen source framework for processing, monitoring, and alerting on time series data\n\n# Installation\n\nKapacitor has two binaries:\n\n* kapacitor – a CLI program for calling the Kapacitor API.\n* kapacitord – the Kapacitor server daemon.\n\nYou can either download the binaries directly from the [downloads](https://influxdata.com/downloads/#kapacitor) page or go get them:\n\n```sh\ngo get github.com/influxdata/kapacitor/cmd/kapacitor\ngo get github.com/influxdata/kapacitor/cmd/kapacitord\n```\n\n# Configuration\nAn example configuration file can be found [here](https://github.com/influxdata/kapacitor/blob/master/etc/kapacitor/kapacitor.conf)\n\nKapacitor can also provide an example config for you using this command:\n\n```sh\nkapacitord config\n```\n\n\n# Getting Started\n\nThis README gives you a high level overview of what Kapacitor is and what its like to use it. As well as some details of how it works.\nTo get started using Kapacitor see [this guide](https://docs.influxdata.com/kapacitor/latest/introduction/getting-started/). After you finish the getting started exercise you can check out the [TICKscripts](https://github.com/influxdata/kapacitor/tree/master/examples/telegraf) for different Telegraf plugins.\n\n# Basic Example\n\nKapacitor uses a DSL named [TICKscript](https://docs.influxdata.com/kapacitor/latest/tick/) to define tasks.\n\nA simple TICKscript that alerts on high cpu usage looks like this:\n\n```javascript\nstream\n    |from()\n        .measurement('cpu_usage_idle')\n        .groupBy('host')\n    |window()\n        .period(1m)\n        .every(1m)\n    |mean('value')\n    |eval(lambda: 100.0 - \"mean\")\n        .as('used')\n    |alert()\n        .message('{{ .Level}}: {{ .Name }}/{{ index .Tags \"host\" }} has high cpu usage: {{ index .Fields \"used\" }}')\n        .warn(lambda: \"used\" \u003e 70.0)\n        .crit(lambda: \"used\" \u003e 85.0)\n\n        // Send alert to hander of choice.\n\n        // Slack\n        .slack()\n        .channel('#alerts')\n\n        // VictorOps\n        .victorOps()\n        .routingKey('team_rocket')\n\n        // PagerDuty\n        .pagerDuty()\n```\n\nPlace the above script into a file `cpu_alert.tick` then run these commands to start the task:\n\n```sh\n# Define the task (assumes cpu data is in db 'telegraf')\nkapacitor define \\\n    cpu_alert \\\n    -type stream \\\n    -dbrp telegraf.default \\\n    -tick ./cpu_alert.tick\n# Start the task\nkapacitor enable cpu_alert\n```\n","funding_links":[],"categories":["9. Processing and Analyze and Act","Go","HarmonyOS","Applications","Monitoring","APM Monitoring","\u003ca id=\"1d9dec1320a5d774dc8e0e7604edfcd3\"\u003e\u003c/a\u003e工具-新添加的"],"sub_categories":["Alerts","Windows Manager","Alerting","\u003ca id=\"8f1b9c5c2737493524809684b934d49a\"\u003e\u003c/a\u003e文章\u0026\u0026视频"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfluxdata%2Fkapacitor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finfluxdata%2Fkapacitor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finfluxdata%2Fkapacitor/lists"}