-
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.
- Loading branch information
Showing
8 changed files
with
163 additions
and
99 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: $ALERTMANAGER_URL |
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: ${SECRET_GH_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 = ${SECRET_DOMAIN} | ||
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.${SECRET_DOMAIN} | ||
root_url = https://grafana.${SECRET_DOMAIN} | ||
[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 |
29 changes: 29 additions & 0 deletions
29
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,29 @@ | ||
# yamllint disable | ||
apiVersion: v1 | ||
kind: Secret | ||
type: Opaque | ||
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-02T22:00:12Z" | ||
mac: ENC[AES256_GCM,data:EGShcemEHAQOZ58+2fS1kt416dUUROQ0RTgbxZsfM7TQ+ueDGHPybePhPauYn/V6AeirrU7soNY0Es3BcjfG/pKNcKS/OYXCpKOWaQzE0m+r/PCPPHtdSMemb9Jvky/7wRVI9OgU+SFtOrVslQS/gVjsXgeVsC3mpILX2l7dx+Y=,iv:STI/yC8BWa+V/z7hpqNRSJa+tqJXhYi4LDGn+5XjaiA=,tag:mqdeAmh8U4J9fPhJqkGC9g==,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