Closed ndragon798 closed 2 years ago
I saw this got looked at if you need anymore information let me know.
thanks! I just tested this and was able to reproduce the issue.
@ndragon798 I don't know what's going on here. I tried running the same container image using docker and podman (not docker-compose)
docker run --env FLT_PROM_URL=http://demo.robustperception.io:9090 \
--env FLT_METRICS_LIST='up' \
--env FLT_RETRAINING_INTERVAL_MINUTES=15 \
--env APP_FILE=app.py \
--env=FLT_ROLLING_TRAINING_WINDOW_SIZE=15d \
--env FLT_DEBUG_MODE=True \
-p 8080:8080 \
quay.io/aicoe/prometheus-anomaly-detector:latest
and it worked fine but for some reason it does not work with docker-compose :confused:
Same issue stating within kubernetes:
Matplotlib created a temporary config/cache directory at /tmp/matplotlib-jabk9l0g because the default path (/.config/matplotlib) is not a writable directory; it is highly recommended to set the MPLCONFIGDIR environment variable to a writable directory, in particular to speed up the import of Matplotlib and to better support multiprocessing.
2020-12-07 16:25:30,123:INFO:configuration: Metric data rolling training window size: 14 days, 23:59:59.925515
2020-12-07 16:25:30,123:INFO:configuration: Model retraining interval: 15 minutes
2020-12-07 16:25:30,514:ERROR:fbprophet.plot: Importing plotly failed. Interactive plots will not work.
Traceback (most recent call last):
File "app.py", line 37, in <module>
model.MetricPredictor(
File "/model.py", line 23, in __init__
self.metric = Metric(metric, rolling_data_window_size)
File "/opt/conda/envs/prophet-env/lib/python3.8/site-packages/prometheus_api_client/metric.py", line 63, in __init__
self.metric_name = metric["metric"]["__name__"]
TypeError: 'float' object is not subscriptable
Image: quay.io/aicoe/prometheus-anomaly-detector:latest
Environment variables:
FLT_PROM_URL: http://prometheus-server.kube-system:80
FLT_RETRAINING_INTERVAL_MINUTES: 15
FLT_METRICS_LIST: 'up,istio_request_duration_seconds_sum,istio_request_duration_seconds_count'
APP_FILE: app.py
FLT_DATA_START_TIME: 3d
FLT_ROLLING_TRAINING_WINDOW_SIZE: 15d
Solved on my side, I was providing several metrics at once with wrong separator
FLT_METRICS_LIST: 'up;istio_request_duration_seconds_sum;istio_request_duration_seconds_count'
( "," instead of ";")
Once fixed the pod started properly
I've also run into this.
Issues go stale after 90d of inactivity.
Mark the issue as fresh with /remove-lifecycle stale
.
Stale issues rot after an additional 30d of inactivity and eventually close.
If this issue is safe to close now please do so with /close
.
/lifecycle stale
Stale issues rot after 30d of inactivity.
Mark the issue as fresh with /remove-lifecycle rotten
.
Rotten issues close after an additional 30d of inactivity.
If this issue is safe to close now please do so with /close
.
/lifecycle rotten
Rotten issues close after 30d of inactivity.
Reopen the issue with /reopen
.
Mark the issue as fresh with /remove-lifecycle rotten
.
/close
@sesheta: Closing this issue.
Just tried spinning this up using the docker image provided and it crashes right away when turning it on.
My compose file
I've tried this on two different hosts a windows and a linux host. Any suggestions?