Comments (9)
@DarthSlider we already have this option of ""max-look-back" Please refer https://github.com/salesforce/sloop/blob/master/pkg/sloop/server/internal/config/config.go#L82
from sloop.
@DarthSlider we already have this option of ""max-look-back" Please refer https://github.com/salesforce/sloop/blob/master/pkg/sloop/server/internal/config/config.go#L82
Are these settings configurable via ENV?
from sloop.
So, I could use all this
settings in sloop.json, am I?from sloop.
@sana-jawad
Ok, looks like some settings at sloop.json are just ignored.
This is my config file:
sloop.json: |-
{
defaultNamespace: "default",
defaultKind: "Pod",
defaultLookback: "1h",
MaxLookback: 302400000000000,
MaxDiskMb: 9216,
WatchCrds: false,
leftBarLinks: [
],
resourceLinks: [
]
}
Changing default namespace works, but changing MaxLoockback, MaxDiscMB or WatchCrd doesn't.
Also I`m 100% sure that sloop reading this file, because if I put incorrect values it fails to start.
from sloop.
yes all the variables are configurable. They can be specified in config file as well as runtime arguments. The issue with above sloop.json file is the casing. I have set it to 1hr for example
The configs can be checked via UI as well. Click on Sloop Debug Menu which appears on the left side of Sloop Instance UI.
Then the configs would be shown. The look back time is 1 hr here (the value is displayed in nanoseconds)
from sloop.
@sana-jawad
Fixed to no avail.
Here is my config:
and it says: "panic: failed to unmarshal /sloopconfig/sloop.json. error unmarshaling JSON: json: cannot unmarshal string into Go struct field SloopConfig.maxLookBack of type time.Duration"
Changing it to the integer values with propper casing doesn't help:
from sloop.
@DarthSlider how are you running sloop? Try with run time arguments like:
from sloop.
@sana-jawad running it in k8s via provided helm chart.
sloop.json is defined via configmap.
Running it with args says "flag provided but not defined: -max-look-back 4h"
Here are my args:
Which is weird because it also says:
"-max-look-back duration
Max history data to keep (default 336h0m0s)"
But "docker run sloopimage/sloop:latest sloop -max-look-back 4h" seems to work.
from sloop.
@DarthSlider thanks for reporting the issue, we will put it on our backlog, but feel free to send out a PR with a fix.
from sloop.
Related Issues (20)
- Publish HelmChart HOT 6
- How to query real-time data
- Template missing HOT 1
- Failed to create kubernetes client: invalid configurations: no configuration has been provided
- Permissions on ghcr.io container image HOT 1
- Error: INSTALLATION FAILED: YAML parse error on sloop/templates/statefulset.yaml: error converting YAML to JSON: yaml: line 20: did not find expected key (New) HOT 1
- Im unable to get logs HOT 1
- Update helm chart for Private image Pull HOT 1
- sloop not working via ingress rule HOT 1
- while running sloop application getting violation of Content Security policy violation
- Data race in refreshStats HOT 6
- Define Go versioning policy and update version
- Helm Chart still on 0.1.0 version and image tag latest HOT 1
- Update Release Process
- sloop catβt work offline HOT 3
- Add support for policy/v1 PodDisruptionBudget
- Sloop Service Prometheus Metrics view "Not Found"
- Sloop OOMKilled
- A Toggle for pods in Compleded state
- "glibc not found" causes CrashLoopBackOff in fresh installation with helm HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sloop.