diff --git a/infrastructure/gitea/gitea.servicemonitor.yaml b/infrastructure/gitea/gitea.servicemonitor.yaml new file mode 100644 index 0000000..d0fa164 --- /dev/null +++ b/infrastructure/gitea/gitea.servicemonitor.yaml @@ -0,0 +1,10 @@ +apiVersion: monitoring.coreos.com/v1 +kind: ServiceMonitor +metadata: + name: gitea-servicemonitor +spec: + endpoints: + - port: http + selector: + matchLabels: + app.kubernetes.io/name: gitea diff --git a/infrastructure/gitea/gitea.values.yaml b/infrastructure/gitea/gitea.values.yaml index 471fde5..b7ad6d8 100644 --- a/infrastructure/gitea/gitea.values.yaml +++ b/infrastructure/gitea/gitea.values.yaml @@ -99,17 +99,6 @@ gitea: password: changedalready email: "gitea@delete.me" - ## @param gitea.metrics.enabled Enable Gitea metrics - ## @param gitea.metrics.serviceMonitor.enabled Enable Gitea metrics service monitor - metrics: - enabled: true - serviceMonitor: - enabled: true - # add labels to the metrics - # - labels: - metrics: prometheus - ## @param gitea.config Configuration for the Gitea server,ref: [config-cheat-sheet](https://docs.gitea.io/en-us/config-cheat-sheet/) config: APP_NAME: "Remy's personal git hosting" diff --git a/infrastructure/gitea/kustomization.yaml b/infrastructure/gitea/kustomization.yaml index 8f2a5b2..d605ed4 100644 --- a/infrastructure/gitea/kustomization.yaml +++ b/infrastructure/gitea/kustomization.yaml @@ -4,6 +4,7 @@ resources: - namespace.yaml - gitea.pvc.yaml - gitea.ingress.yaml + - gitea.servicemonitor.yaml - drone-kube-runner.deployment.yaml - drone-server.deployment.yaml - drone-server.sealedsecret.yaml