You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Problem Statement**
Default option `table` provides pretty output in console using styles
(colors, etc..) but when we save it into a file using `--fileoutput`
styles will not be passed. If we share the output file to others via s3
or something, styles will be missed and looks plain. It would be nice to
keep the styles when rendering from the file.
**Solution**
Default option `table` using `Rich` library and same library has
function `export_html` to generate html from table output. It will keep
the same styles used in default table formatter.
No setup is required if you use kube-prometheus-stack or <ahref="https://docs.robusta.dev/master/configuration/alertmanager-integration/embedded-prometheus.html">Robusta's Embedded Prometheus</a>.
131
131
132
132
If you have a different setup, make sure the following metrics exist:
133
-
133
+
134
134
-`container_cpu_usage_seconds_total`
135
135
-`container_memory_working_set_bytes`
136
136
-`kube_replicaset_owner`
@@ -179,7 +179,7 @@ You can install using brew (see above) on [WSL2](https://docs.brew.sh/Homebrew-o
You can download pre-built binaries from <ahref="https://github.com/robusta-dev/krr/releases">Releases</a> or use the prebuilt Docker container. For example, the container for version 1.8.3 is:
184
184
185
185
```
@@ -258,15 +258,15 @@ We highly recommend using the [free Robusta SaaS platform](https://platform.robu
258
258
259
259
<details>
260
260
<summary>Basic usage</summary>
261
-
261
+
262
262
```sh
263
263
krr simple
264
264
```
265
265
</details>
266
266
267
267
<details>
268
268
<summary>Tweak the recommendation algorithm (strategy)</summary>
269
-
269
+
270
270
Most helpful flags:
271
271
272
272
-`--cpu-min` Sets the minimum recommended cpu value in millicores
@@ -347,6 +347,7 @@ Currently KRR ships with a few formatters to represent the scan data:
347
347
-`yaml`
348
348
-`pprint` - data representation from python's pprint library
349
349
-`csv` - export data to a csv file in the current directory
350
+
-`html`
350
351
351
352
To run a strategy with a selected formatter, add a `-f` flag. Usually this should be combined with `--fileoutput <filename>` to write clean output to file without logs:
0 commit comments