-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: prometheus monitoring tune (#133)
* increased metric retention up to a week * added lightmare monitoring by default * added specs to enable lightmare monitoring
- Loading branch information
1 parent
0f957b9
commit eeacc5d
Showing
5 changed files
with
55 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ resources: | |
- system | ||
- kubernetes | ||
- kubevirt.yml | ||
- lightmare.yml |
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,16 @@ | ||
apiVersion: kustomize.toolkit.fluxcd.io/v1 | ||
kind: Kustomization | ||
metadata: | ||
name: lightmare-monitoring | ||
namespace: flux-system | ||
spec: | ||
interval: 1m0s | ||
path: ./flux/components/monitoring/configs/lightmare | ||
prune: true | ||
sourceRef: | ||
kind: GitRepository | ||
name: spectrum | ||
namespace: flux-system | ||
dependsOn: | ||
- name: lightmare | ||
namespace: flux-system |
19 changes: 19 additions & 0 deletions
19
flux/components/monitoring/configs/lightmare/kustomization.yml
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,19 @@ | ||
apiVersion: kustomize.config.k8s.io/v1beta1 | ||
kind: Kustomization | ||
namespace: monitoring | ||
resources: | ||
- service-monitor.yml | ||
generatorOptions: | ||
disableNameSuffixHash: true | ||
labels: | ||
grafana_dashboard: "1" | ||
app.kubernetes.io/part-of: spectrum-monitoring | ||
app.kubernetes.io/component: lightmare | ||
commonAnnotations: | ||
grafana_folder: "lightmare" | ||
|
||
# tbd | ||
# configMapGenerator: | ||
# - name: dashboards-k8s-lightmare | ||
# files: | ||
# - *.json |
17 changes: 17 additions & 0 deletions
17
flux/components/monitoring/configs/lightmare/service-monitor.yml
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,17 @@ | ||
apiVersion: monitoring.coreos.com/v1 | ||
kind: ServiceMonitor | ||
metadata: | ||
name: lightmare | ||
labels: | ||
app.kubernetes.io/part-of: spectrum-monitoring | ||
app.kubernetes.io/component: lightmare | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: lightmare | ||
namespaceSelector: | ||
matchNames: | ||
- lightmare | ||
endpoints: | ||
- port: metrics | ||
scheme: http |
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