├── .bumpversion.cfg ├── .flake8 ├── .github └── workflows │ ├── release.yaml │ ├── release_mac.yaml │ └── test.yml ├── .gitignore ├── LICENSE ├── README.md ├── go ├── go.mod ├── go.sum ├── libpromql.go ├── libpromql.h └── promql │ └── promql.go ├── imgs ├── rule2.png └── rule3.png ├── poetry.lock ├── promqlpy ├── __init__.py ├── cli.py ├── split.py └── version.py ├── pyproject.toml ├── scripts ├── get_rules_from_awesome_prometheus_alert_rules.py └── stress.py └── tests ├── data └── awesome_prometheus_alerts.txt ├── gen.py ├── test_awesome_rules.py └── test_split_normal.py /.bumpversion.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/promqlpy/HEAD/.bumpversion.cfg -------------------------------------------------------------------------------- /.flake8: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/promqlpy/HEAD/.flake8 -------------------------------------------------------------------------------- /.github/workflows/release.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/promqlpy/HEAD/.github/workflows/release.yaml -------------------------------------------------------------------------------- /.github/workflows/release_mac.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/promqlpy/HEAD/.github/workflows/release_mac.yaml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/promqlpy/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/promqlpy/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/promqlpy/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/promqlpy/HEAD/README.md -------------------------------------------------------------------------------- /go/go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/promqlpy/HEAD/go/go.mod -------------------------------------------------------------------------------- /go/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/promqlpy/HEAD/go/go.sum -------------------------------------------------------------------------------- /go/libpromql.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/promqlpy/HEAD/go/libpromql.go -------------------------------------------------------------------------------- /go/libpromql.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/promqlpy/HEAD/go/libpromql.h -------------------------------------------------------------------------------- /go/promql/promql.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/promqlpy/HEAD/go/promql/promql.go -------------------------------------------------------------------------------- /imgs/rule2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/promqlpy/HEAD/imgs/rule2.png -------------------------------------------------------------------------------- /imgs/rule3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/promqlpy/HEAD/imgs/rule3.png -------------------------------------------------------------------------------- /poetry.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/promqlpy/HEAD/poetry.lock -------------------------------------------------------------------------------- /promqlpy/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/promqlpy/HEAD/promqlpy/__init__.py -------------------------------------------------------------------------------- /promqlpy/cli.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/promqlpy/HEAD/promqlpy/cli.py -------------------------------------------------------------------------------- /promqlpy/split.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/promqlpy/HEAD/promqlpy/split.py -------------------------------------------------------------------------------- /promqlpy/version.py: -------------------------------------------------------------------------------- 1 | __VERSION__ = "1.0.5" 2 | -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/promqlpy/HEAD/pyproject.toml -------------------------------------------------------------------------------- /scripts/get_rules_from_awesome_prometheus_alert_rules.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/promqlpy/HEAD/scripts/get_rules_from_awesome_prometheus_alert_rules.py -------------------------------------------------------------------------------- /scripts/stress.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/promqlpy/HEAD/scripts/stress.py -------------------------------------------------------------------------------- /tests/data/awesome_prometheus_alerts.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/promqlpy/HEAD/tests/data/awesome_prometheus_alerts.txt -------------------------------------------------------------------------------- /tests/gen.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/promqlpy/HEAD/tests/gen.py -------------------------------------------------------------------------------- /tests/test_awesome_rules.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/promqlpy/HEAD/tests/test_awesome_rules.py -------------------------------------------------------------------------------- /tests/test_split_normal.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/laixintao/promqlpy/HEAD/tests/test_split_normal.py --------------------------------------------------------------------------------