-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* allow setting storage class for aro-clf-blob Signed-off-by: Paul Czarkowski <[email protected]> * update rosa-thanos-s3 to grafana5 operator, and grafana-alloy Signed-off-by: Paul Czarkowski <[email protected]> --------- Signed-off-by: Paul Czarkowski <[email protected]>
- Loading branch information
Showing
7 changed files
with
88 additions
and
231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
labels: | ||
name: grafana-alloy-config | ||
data: | ||
config.alloy: |- | ||
prometheus.scrape "cluster_metrics" { | ||
job_name = "cluster-monitoring" | ||
forward_to = [prometheus.remote_write.cluster_metrics.receiver] | ||
targets = [ | ||
{ | ||
"__address__" = "prometheus-k8s.openshift-monitoring.svc.cluster.local:9091", | ||
"__scheme__" = "https", | ||
"__metrics_path__" = "/federate", | ||
}, | ||
] | ||
honor_labels = true | ||
params = { | ||
"match[]" = ["{job!=\"\"}"], | ||
} | ||
scrape_interval = "30s" | ||
scrape_timeout = "30s" | ||
metrics_path = "/federate" | ||
scheme = "https" | ||
authorization { | ||
type = "Bearer" | ||
credentials_file = "/var/run/secrets/kubernetes.io/serviceaccount/token" | ||
} | ||
tls_config { | ||
insecure_skip_verify = true | ||
} | ||
} | ||
prometheus.remote_write "cluster_metrics" { | ||
external_labels = { | ||
cluster = "{{ .Values.rosa.clusterName }}", | ||
} | ||
endpoint { | ||
name = "thanos-receive" | ||
url = "http://thanos-receive.{{ .Release.Namespace }}.svc.cluster.local:9091/api/v1/receive" | ||
queue_config { | ||
capacity = 2500 | ||
max_shards = 200 | ||
max_samples_per_send = 1000 | ||
} | ||
metadata_config { } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
{{ range $path, $_ := .Files.Glob "files/dashboards/*.json" }} | ||
--- | ||
apiVersion: integreatly.org/v1alpha1 | ||
apiVersion: grafana.integreatly.org/v1beta1 | ||
kind: GrafanaDashboard | ||
metadata: | ||
name: {{ base $path }} | ||
labels: | ||
app: grafana | ||
spec: | ||
instanceSelector: | ||
matchLabels: | ||
dashboards: "grafana" | ||
json: {{ $.Files.Get $path }} | ||
{{ end }} |
25 changes: 14 additions & 11 deletions
25
charts/rosa-thanos-s3/templates/grafana/grafanadatasource.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
apiVersion: integreatly.org/v1alpha1 | ||
kind: GrafanaDataSource | ||
apiVersion: grafana.integreatly.org/v1beta1 | ||
kind: GrafanaDatasource | ||
metadata: | ||
name: {{ include "rosa-thanos-s3.fullname" . }}-prometheus | ||
labels: | ||
{{- include "rosa-thanos-s3.labels" . | nindent 4 }} | ||
spec: | ||
name: {{ include "rosa-thanos-s3.fullname" . }}.yaml | ||
datasources: | ||
- access: proxy | ||
editable: false | ||
isDefault: true | ||
jsonData: | ||
timeInterval: 5s | ||
name: prometheus | ||
type: prometheus | ||
url: 'http://thanos-querier.{{ .Release.Namespace }}.svc.cluster.local:9090' | ||
instanceSelector: | ||
matchLabels: | ||
dashboards: grafana | ||
datasource: | ||
name: prometheus | ||
access: proxy | ||
editable: false | ||
isDefault: true | ||
jsonData: | ||
timeInterval: 5s | ||
type: prometheus | ||
url: 'http://thanos-querier.{{ .Release.Namespace }}.svc.cluster.local:9090' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters