https://github.com/sysdiglabs/sysdigquerytranslator
https://github.com/sysdiglabs/sysdigquerytranslator
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/sysdiglabs/sysdigquerytranslator
- Owner: sysdiglabs
- License: apache-2.0
- Created: 2022-06-29T13:24:53.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-11T21:52:34.000Z (over 1 year ago)
- Last Synced: 2025-01-23T01:22:00.186Z (4 months ago)
- Language: Go
- Size: 30.3 KB
- Stars: 1
- Watchers: 7
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Sysdig Query Translator
## What it is?
This is a tool created in GO that creates a C library to be used mainly by a Pyhton application. With this tool you can translate a sysdig promql query to a vanilla Prometheus query.## How to use it?
You can import the library in your Python code and use it. The function RemoveSysdigLabelsInExpression expects two string as input:
- The expresion itself
- The extra scope you want to removeIn the folder example you will find an example of how to integrate it in your Pyhton code.
## Build
If you want to build it by yourself just execute the build command of the makefile:```bash
make build
```
This will create a folder library with the two needed files with the C library.