|
38 | 38 | # args to pass to the prometheus container, see kubectl explain prometheus.spec.additionalArgs
|
39 | 39 | additionalArgs:
|
40 | 40 | - name: web.enable-admin-api
|
| 41 | + - name: web.enable-remote-write-receiver |
| 42 | + # https://prometheus.io/docs/prometheus/latest/feature_flags/#memory-snapshot-on-shutdown |
| 43 | + # pointless when we aren't using a PV, but should move to it |
| 44 | + # for BA anyway |
| 45 | + - name: enable-feature |
| 46 | + value: memory-snapshot-on-shutdown |
| 47 | + # https://prometheus.io/docs/prometheus/latest/feature_flags/#extra-scrape-metrics |
| 48 | + - name: enable-feature |
| 49 | + value: extra-scrape-metrics |
| 50 | + # https://prometheus.io/docs/prometheus/latest/feature_flags/#per-step-stats |
| 51 | + - name: enable-feature |
| 52 | + value: promql-per-step-stats |
| 53 | + # https://prometheus.io/docs/prometheus/latest/feature_flags/#auto-gomemlimit |
| 54 | + - name: enable-feature |
| 55 | + value: auto-gomemlimit |
| 56 | + - name: auto-gomemlimit.ratio |
| 57 | + value: "0.9" |
| 58 | + # https://prometheus.io/docs/prometheus/latest/feature_flags/#auto-gomaxprocs |
| 59 | + - name: enable-feature |
| 60 | + value: auto-gomaxprocs |
| 61 | + # https://prometheus.io/docs/prometheus/latest/feature_flags/#created-timestamps-zero-injection |
| 62 | + - name: enable-feature |
| 63 | + value: created-timestamp-zero-ingestion |
41 | 64 | # this is strategically merged by the operator with the default spec, see kubectl explain prometheus.spec.containers
|
42 | 65 | containers:
|
43 | 66 | - name: config-reloader
|
|
60 | 83 | capabilities:
|
61 | 84 | drop:
|
62 | 85 | - ALL
|
63 |
| - env: |
64 |
| - # Set the GOMEMLIMIT to a high proportion of the container's memory |
65 |
| - # limit, but not equal to it, so there's room for other processes, |
66 |
| - # runtime overhead, error margins in different usage computation |
67 |
| - # methods etc. We can refine this over time. I'm starting with 95% |
68 |
| - # of the pod RAM limit since we also have a config reloader container |
69 |
| - # etc. See https://pkg.go.dev/runtime |
70 |
| - - name: GOMEMLIMIT |
71 |
| - value: 450MiB |
72 | 86 | resources:
|
73 | 87 | limits:
|
74 | 88 | cpu: 1000m
|
|
0 commit comments