Skip to content

Commit

Permalink
additionalArgs: list items must have named fields
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Fajerski <jfajersk@redhat.com>
  • Loading branch information
jan--f committed Dec 8, 2023
1 parent 29347c8 commit c3189a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion assets/prometheus-k8s/prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ spec:
- mountPath: /etc/tls/grpc
name: secret-grpc-tls
- additionalArgs:
- --scrape.timestamp-tolerance=15ms
- name: scrape.timestamp-tolerance
value: 15ms
name: prometheus
enableFeatures: []
externalLabels: {}
Expand Down
5 changes: 4 additions & 1 deletion jsonnet/components/prometheus.libsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,10 @@ function(params)
// scrape interval of 30s. Even for half the default value we onlt
// move scrape interval timestamps by <= 1% of their absolute
// length.
'--scrape.timestamp-tolerance=15ms',
{
name: "scrape.timestamp-tolerance",
value: "15ms",
},
],
},
],
Expand Down

0 comments on commit c3189a3

Please sign in to comment.