robusta
robusta copied to clipboard
Prometheus manual trigger
Added trigger to run prometheus queries via robusta.
This is an example dataset for ram usage of a pod

for the manual trigger
curl -X POST http://localhost:5000/api/trigger -H 'Content-Type: application/json' -d '{"action_name": "prometheus_enricher", "action_params": {"promql_query": "sum(container_memory_working_set_bytes{job="kubelet", metrics_path="/metrics/cadvisor", pod=~"tetris-79c4c6958b-hwmlk", container!="", image!=""})", "end_time": "2022-09-17 09:40:59", "starts_at": "2022-09-14 09:40:59", "metadata_json_str": "{"units":"bytes","query_type":"resource-memory","object_queried":{"type":"Pod","name":"tetris-79c4c6958b-hwmlk"}}"}}'