Increasing Prometheus storage retention

后端 未结 3 1213
走了就别回头了
走了就别回头了 2021-02-13 01:47

Hi I have Prometheus server installed on my AWS instance but the data is been removed automatically after 15 days. I need to have data for an year or months, is there anything I

3条回答
  •  一向
    一向 (楼主)
    2021-02-13 02:07

    adding below in deployment yml file allowed me change storage retention days

    image: 'your/image path' 
    args:
      - '--storage.tsdb.path=/prometheus'
      - '--storage.tsdb.retention.time=45d'
      - '--config.file=/etc/prometheus/prometheus.yml'
    

    Thanks Prashanth

提交回复
热议问题