-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2757 from tyriis/feature/grafana-configmaps-refin…
…ement
- Loading branch information
Showing
8 changed files
with
162 additions
and
104 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
kubernetes/talos-flux/apps/observability/grafana/app/config/contactpoints.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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
# https://grafana.com/docs/grafana/latest/alerting/set-up/provision-alerting-resources/file-provisioning/#import-contact-points | ||
apiVersion: 1 | ||
contactPoints: | ||
- orgId: 1 | ||
name: alertmanager-notifications | ||
receivers: | ||
- uid: cp1 | ||
type: prometheus-alertmanager | ||
disableResolveMessage: false | ||
settings: | ||
url: http://prometheus-alertmanager.observability.svc.cluster.local:9093 |
28 changes: 28 additions & 0 deletions
28
kubernetes/talos-flux/apps/observability/grafana/app/config/datasources.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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
--- | ||
# https://grafana.com/docs/grafana/latest/datasources/ | ||
apiVersion: 1 | ||
# list of datasources that should be deleted from the database | ||
deleteDatasources: | ||
- name: Loki | ||
orgId: 1 | ||
- name: Prometheus | ||
orgId: 1 | ||
- name: GitHub | ||
orgId: 1 | ||
datasources: | ||
- name: Prometheus | ||
type: prometheus | ||
access: proxy | ||
url: http://prometheus-prometheus:9090/ | ||
isDefault: true | ||
- name: Loki | ||
type: loki | ||
access: proxy | ||
url: http://loki-gateway:80/ | ||
- name: GitHub | ||
type: grafana-github-datasource | ||
jsonData: | ||
owner: tyriis | ||
repository: home-ops | ||
secureJsonData: | ||
accessToken: $GITHUB_PAT |
29 changes: 29 additions & 0 deletions
29
kubernetes/talos-flux/apps/observability/grafana/app/config/grafana.ini
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,29 @@ | ||
;https://grafana.com/docs/grafana/latest/setup-grafana/configure-grafana/ | ||
[analytics] | ||
check_for_updates = false | ||
[auth.google] | ||
enabled = true | ||
allow_sign_up = true | ||
allowed_domains = techtales.io | ||
auth_url = https://accounts.google.com/o/oauth2/auth | ||
scopes = https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email | ||
token_url = https://accounts.google.com/o/oauth2/token | ||
[date_formats] | ||
use_browser_locale = true | ||
[explore] | ||
enabled = true | ||
[log] | ||
mode = console | ||
level = info | ||
[panels] | ||
disable_sanitize_html = true | ||
[paths] | ||
data = /var/lib/grafana/ | ||
logs = /var/log/grafana | ||
plugins = /var/lib/grafana/plugins | ||
provisioning = /etc/grafana/provisioning | ||
[server] | ||
domain = grafana.techtales.io | ||
root_url = https://grafana.techtales.io | ||
[users] | ||
auto_assign_org_role = Admin |
12 changes: 12 additions & 0 deletions
12
kubernetes/talos-flux/apps/observability/grafana/app/config/policies.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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
# https://grafana.com/docs/grafana/latest/alerting/set-up/provision-alerting-resources/file-provisioning/#import-notification-policies | ||
apiVersion: 1 | ||
policies: | ||
- orgId: 1 | ||
receiver: alertmanager-notifications | ||
group_by: | ||
- grafana_folder | ||
- alertname | ||
group_wait: 30s | ||
group_interval: 5m | ||
repeat_interval: 12h |
28 changes: 28 additions & 0 deletions
28
kubernetes/talos-flux/apps/observability/grafana/app/grafana-admin.sops.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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# yamllint disable | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
name: grafana-admin | ||
stringData: | ||
USERNAME: ENC[AES256_GCM,data:n57P/S4=,iv:7qajI1QASF15zpMqcVjal8XvBEG+BxezxegKPrJePdg=,tag:tbf5BF3JKgFkeFI+4FFJ5g==,type:str] | ||
PASSWORD: ENC[AES256_GCM,data:J4Zg6RQ8K2ECZRg2/1jbjHS2u+T7j7U1f2OZOAUuVbFHt7yjpNFEN8tiUts=,iv:s2ifsOTwHK/h4CMBfpDx75ibAuzeo6+tNJshR7xfgCs=,tag:dzsXSSgspFSTdLFhOk2TFg==,type:str] | ||
sops: | ||
kms: [] | ||
gcp_kms: [] | ||
azure_kv: [] | ||
hc_vault: [] | ||
age: | ||
- recipient: age16zqeqx5y6ay3flwz0d06rn83yjv9ckys3j8tpkysf9v6295fhc6sf4r0uj | ||
enc: | | ||
-----BEGIN AGE ENCRYPTED FILE----- | ||
YWdlLWVuY3J5cHRpb24ub3JnL3YxCi0+IFgyNTUxOSBIZzFkbDhYbElUcTJQZ1ls | ||
T25TeWN3M3NXRzAvMXJjQXVsa0VGSk1tYjNrClJrb0JQbjk2NnhaUjNtbVN1U1JU | ||
dVpXZW9OaUh0YU1GQmhiOHIyNnBYNDAKLS0tIHdZdk4rUVdIYzUyMURzc2FsV3hL | ||
TTcwSDlkQ3VPM1NTWFdoTzZ5MVBEeDAKXeIe9FM/ZenGa8kVJjMIC9hcAwktLR/U | ||
T5O1xTcVAhgBUDYbKdrexWuFIAsqhXVMAh0xhQEs3m9gdygDPAL6Mw== | ||
-----END AGE ENCRYPTED FILE----- | ||
lastmodified: "2024-04-03T20:17:49Z" | ||
mac: ENC[AES256_GCM,data:+XnUw8M+hyNs8DHsR2juJKhfLV+mNGbeBlJ07j8RmQVYAuDrpVlneRWAtx6yxrC44z4C5+Jao61MkXqz+NClf2UX+dEnRIoYr15O9LPk9pBTcpEU0crb7VcJVSGxKQf8SulurCTdErGj6umdJeXyn43xebkE0QRV2F/46VavGT8=,iv:v9lnYP96v12HvaCucAXcsIerIyFVqwhUiYZVELP8hlQ=,tag:zTkjsfQrJC1v8m1DgalnMQ==,type:str] | ||
pgp: [] | ||
encrypted_regex: ^(data|stringData)$ | ||
version: 3.8.1 |
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 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