-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add victoriametrics read endpoint (#296)
* chore: refactor vmetrics endpoint configuration to single file * chore: clean up vm endpoint configuration * feat: add victoriametrics read endpoint
- Loading branch information
Showing
13 changed files
with
196 additions
and
82 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
42 changes: 42 additions & 0 deletions
42
kubernetes/apps/monitoring-dev/victoria-metrics/ingress/read.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,42 @@ | ||
apiVersion: onepassword.com/v1 | ||
kind: OnePasswordItem | ||
metadata: | ||
name: vmetrics-read-token | ||
namespace: monitoring-dev | ||
spec: | ||
itemPath: "vaults/Kubernetes/items/vmetrics_read_token" | ||
--- | ||
apiVersion: operator.victoriametrics.com/v1beta1 | ||
kind: VMUser | ||
metadata: | ||
name: read | ||
namespace: monitoring-dev | ||
labels: | ||
vm-user: "read" | ||
spec: | ||
tokenRef: | ||
name: vmetrics-read-token | ||
key: token | ||
targetRefs: | ||
- crd: | ||
kind: VMSingle | ||
name: vmetrics-dev | ||
namespace: monitoring-dev | ||
paths: ["/targets/api/v1","/targets","/metrics"] | ||
--- | ||
apiVersion: operator.victoriametrics.com/v1beta1 | ||
kind: VMAuth | ||
metadata: | ||
name: vmetrics-read-ingress | ||
namespace: monitoring-dev | ||
spec: | ||
userSelector: | ||
matchLabels: | ||
vm-user: "read" | ||
ingress: | ||
tlsSecretName: vmetrics-read-tls | ||
annotations: | ||
cert-manager.io/cluster-issuer: letsencrypt-production | ||
class_name: nginx | ||
tlsHosts: | ||
- read.monitoring.dev.immich.cloud |
7 changes: 0 additions & 7 deletions
7
kubernetes/apps/monitoring-dev/victoria-metrics/ingress/secret.yaml
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
kubernetes/apps/monitoring-dev/victoria-metrics/ingress/vmauth.yaml
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
kubernetes/apps/monitoring-dev/victoria-metrics/ingress/vmuser.yaml
This file was deleted.
Oops, something went wrong.
43 changes: 43 additions & 0 deletions
43
kubernetes/apps/monitoring-dev/victoria-metrics/ingress/write.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,43 @@ | ||
apiVersion: onepassword.com/v1 | ||
kind: OnePasswordItem | ||
metadata: | ||
name: vmetrics-write-token | ||
namespace: monitoring-dev | ||
spec: | ||
itemPath: "vaults/Kubernetes/items/vmetrics_write_token" | ||
--- | ||
apiVersion: operator.victoriametrics.com/v1beta1 | ||
kind: VMUser | ||
metadata: | ||
name: write | ||
namespace: monitoring-dev | ||
labels: | ||
vm-user: "write" | ||
spec: | ||
tokenRef: | ||
name: vmetrics-write-token | ||
key: token | ||
targetRefs: | ||
- crd: | ||
kind: VMSingle | ||
name: vmetrics-dev | ||
namespace: monitoring-dev | ||
paths: ["/write"] | ||
--- | ||
apiVersion: operator.victoriametrics.com/v1beta1 | ||
kind: VMAuth | ||
metadata: | ||
name: vmetrics-write-ingress | ||
namespace: monitoring-dev | ||
spec: | ||
userSelector: | ||
matchLabels: | ||
vm-user: "write" | ||
ingress: | ||
tlsSecretName: vmetrics-write-tls | ||
annotations: | ||
cert-manager.io/cluster-issuer: letsencrypt-production | ||
class_name: nginx | ||
tlsHosts: | ||
- write.monitoring.dev.immich.cloud | ||
- cf-workers.monitoring.dev.immich.cloud |
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
42 changes: 42 additions & 0 deletions
42
kubernetes/apps/monitoring/victoria-metrics/ingress/read.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,42 @@ | ||
apiVersion: onepassword.com/v1 | ||
kind: OnePasswordItem | ||
metadata: | ||
name: vmetrics-read-token | ||
namespace: monitoring | ||
spec: | ||
itemPath: "vaults/Kubernetes/items/vmetrics_read_token" | ||
--- | ||
apiVersion: operator.victoriametrics.com/v1beta1 | ||
kind: VMUser | ||
metadata: | ||
name: read | ||
namespace: monitoring | ||
labels: | ||
vm-user: "read" | ||
spec: | ||
tokenRef: | ||
name: vmetrics-read-token | ||
key: token | ||
targetRefs: | ||
- crd: | ||
kind: VMSingle | ||
name: vmetrics | ||
namespace: monitoring | ||
paths: ["/targets/api/v1","/targets","/metrics"] | ||
--- | ||
apiVersion: operator.victoriametrics.com/v1beta1 | ||
kind: VMAuth | ||
metadata: | ||
name: vmetrics-read-ingress | ||
namespace: monitoring | ||
spec: | ||
userSelector: | ||
matchLabels: | ||
vm-user: "read" | ||
ingress: | ||
tlsSecretName: vmetrics-read-tls | ||
annotations: | ||
cert-manager.io/cluster-issuer: letsencrypt-production | ||
class_name: nginx | ||
tlsHosts: | ||
- read.monitoring.immich.cloud |
7 changes: 0 additions & 7 deletions
7
kubernetes/apps/monitoring/victoria-metrics/ingress/secret.yaml
This file was deleted.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
kubernetes/apps/monitoring/victoria-metrics/ingress/vmauth.yaml
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
kubernetes/apps/monitoring/victoria-metrics/ingress/vmuser.yaml
This file was deleted.
Oops, something went wrong.
43 changes: 43 additions & 0 deletions
43
kubernetes/apps/monitoring/victoria-metrics/ingress/write.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,43 @@ | ||
apiVersion: onepassword.com/v1 | ||
kind: OnePasswordItem | ||
metadata: | ||
name: vmetrics-write-token | ||
namespace: monitoring | ||
spec: | ||
itemPath: "vaults/Kubernetes/items/vmetrics_write_token" | ||
--- | ||
apiVersion: operator.victoriametrics.com/v1beta1 | ||
kind: VMUser | ||
metadata: | ||
name: write | ||
namespace: monitoring | ||
labels: | ||
vm-user: "write" | ||
spec: | ||
tokenRef: | ||
name: vmetrics-write-token | ||
key: token | ||
targetRefs: | ||
- crd: | ||
kind: VMSingle | ||
name: vmetrics | ||
namespace: monitoring | ||
paths: ["/write"] | ||
--- | ||
apiVersion: operator.victoriametrics.com/v1beta1 | ||
kind: VMAuth | ||
metadata: | ||
name: vmetrics-write-ingress | ||
namespace: monitoring | ||
spec: | ||
userSelector: | ||
matchLabels: | ||
vm-user: "write" | ||
ingress: | ||
tlsSecretName: vmetrics-write-tls | ||
annotations: | ||
cert-manager.io/cluster-issuer: letsencrypt-production | ||
class_name: nginx | ||
tlsHosts: | ||
- write.monitoring.immich.cloud | ||
- cf-workers.monitoring.immich.cloud |
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