Skip to content

Commit

Permalink
[alveoli] add interval placeholder for prometheus and for prometheus …
Browse files Browse the repository at this point in the history
…and loki ensure to setup the rolebinding on the right namespace (for service account relationship)
  • Loading branch information
rmannibucau committed Mar 23, 2024
1 parent 743d4ba commit 0152958
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ metadata:
subjects:
- kind: ServiceAccount
name: promtail-serviceaccount
namespace: default
namespace: "{{loki-simple.namespace:-{{bundlebee-kubernetes-namespace}}}}"
roleRef:
kind: ClusterRole
name: promtail-clusterrole
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ roleRef:
name: prometheus
subjects:
- kind: ServiceAccount
name: default
namespace: default
name: "{{prometheus-simple.serviceaccount:-default}}"
namespace: "{{prometheus-simple.namespace:-{{bundlebee-kubernetes-namespace}}}}"
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ metadata:
data:
prometheus.yml: |
global:
scrape_interval: 5s
evaluation_interval: 5s
scrape_interval: {{prometheus-simple.scrape_internal:-{{prometheus-simple.internal:-5s}}}}
evaluation_interval: {{prometheus-simple.evaluation_interval:-{{prometheus-simple.internal:-5s}}}}
rule_files:
- /etc/prometheus/prometheus.rules
alerting:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,22 @@
}
],
"placeholdersDoc": [
{
"name": "prometheus-simple.serviceaccount",
"description": "Name of prometheus service account - where cluster role will be bound. Note that we use default by default for simplicity but in a real cluster it can make sense to create a dedicated service account.."
},
{
"name": "prometheus-simple.internal",
"description": "Default for evaluation and scrape interval in prometheus configuration if not overridden by the specific placeholders."
},
{
"name": "prometheus-simple.evaluation_interval",
"description": "Default evaluation interval in prometheus configuration."
},
{
"name": "prometheus-simple.scrape_internal",
"description": "Default scrape interval in prometheus configuration."
},
{
"name": "prometheus-simple.image",
"description": "The image to use."
Expand Down

0 comments on commit 0152958

Please sign in to comment.