mirror of
https://github.com/amkartashov/gf-k8s.git
synced 2026-01-10 17:39:43 +00:00
victoria-metrics
This commit is contained in:
parent
3ed286887a
commit
cb95600c52
5 changed files with 70 additions and 0 deletions
|
|
@ -34,6 +34,8 @@ Applications & Projects
|
||||||
+------------------------------+----------------------------------------------------------------+-------------------------+
|
+------------------------------+----------------------------------------------------------------+-------------------------+
|
||||||
| Victoria-Metrics-Operator_ | `Victoria Metrics Operator`_ | |vm-op_status| |
|
| Victoria-Metrics-Operator_ | `Victoria Metrics Operator`_ | |vm-op_status| |
|
||||||
+------------------------------+----------------------------------------------------------------+-------------------------+
|
+------------------------------+----------------------------------------------------------------+-------------------------+
|
||||||
|
| Victoria-Metrics_ | `Victoria Metrics`_ | |vm_status| |
|
||||||
|
+------------------------------+----------------------------------------------------------------+-------------------------+
|
||||||
| `Apps Project`_, **user level applications** |
|
| `Apps Project`_, **user level applications** |
|
||||||
+------------------------------+----------------------------------------------------------------+-------------------------+
|
+------------------------------+----------------------------------------------------------------+-------------------------+
|
||||||
| Oauth2-proxy_ | `Oauth2 Proxy`_ | |oauth2-proxy_status| |
|
| Oauth2-proxy_ | `Oauth2 Proxy`_ | |oauth2-proxy_status| |
|
||||||
|
|
@ -85,6 +87,10 @@ Applications & Projects
|
||||||
.. _Victoria Metrics Operator: https://github.com/VictoriaMetrics/operator
|
.. _Victoria Metrics Operator: https://github.com/VictoriaMetrics/operator
|
||||||
.. |vm-op_status| image:: https://argocd.ioot.xyz/api/badge?name=victoria-metrics-operator&revision=true
|
.. |vm-op_status| image:: https://argocd.ioot.xyz/api/badge?name=victoria-metrics-operator&revision=true
|
||||||
|
|
||||||
|
.. _Victoria-Metrics: https://argocd.ioot.xyz/applications/argocd/victoria-metrics
|
||||||
|
.. _Victoria Metrics: https://victoriametrics.com/
|
||||||
|
.. |vm_status| image:: https://argocd.ioot.xyz/api/badge?name=victoria-metrics&revision=true
|
||||||
|
|
||||||
.. _`Apps Project`: https://argocd.ioot.xyz/applications?proj=apps
|
.. _`Apps Project`: https://argocd.ioot.xyz/applications?proj=apps
|
||||||
|
|
||||||
.. _Oauth2-proxy: https://argocd.ioot.xyz/applications/argocd/oauth2-proxy
|
.. _Oauth2-proxy: https://argocd.ioot.xyz/applications/argocd/oauth2-proxy
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,22 @@
|
||||||
|
apiVersion: argoproj.io/v1alpha1
|
||||||
|
kind: Application
|
||||||
|
metadata:
|
||||||
|
name: victoria-metrics
|
||||||
|
labels:
|
||||||
|
stack: observability
|
||||||
|
spec:
|
||||||
|
destination:
|
||||||
|
server: https://kubernetes.default.svc
|
||||||
|
namespace: victoria-metrics
|
||||||
|
project: system
|
||||||
|
syncPolicy:
|
||||||
|
automated:
|
||||||
|
prune: true
|
||||||
|
selfHeal: true
|
||||||
|
syncOptions:
|
||||||
|
- CreateNamespace=true
|
||||||
|
source:
|
||||||
|
repoURL: git@github.com:amkartashov/gf-k8s.git
|
||||||
|
targetRevision: main
|
||||||
|
path: state/gullfaxi/system/observability/victoria-metrics/manifests/
|
||||||
|
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
apiVersion: grafana.integreatly.org/v1beta1
|
||||||
|
kind: GrafanaDatasource
|
||||||
|
metadata:
|
||||||
|
name: victoria
|
||||||
|
spec:
|
||||||
|
allowCrossNamespaceImport: true
|
||||||
|
instanceSelector:
|
||||||
|
matchLabels:
|
||||||
|
instance: grafana
|
||||||
|
datasource:
|
||||||
|
name: victoria
|
||||||
|
type: prometheus
|
||||||
|
access: proxy
|
||||||
|
url: http://victoria.victoria-metrics:8429
|
||||||
|
isDefault: true
|
||||||
|
editable: false
|
||||||
|
|
@ -0,0 +1,9 @@
|
||||||
|
apiVersion: operator.victoriametrics.com/v1beta1
|
||||||
|
kind: VMAgent
|
||||||
|
metadata:
|
||||||
|
name: vmagent
|
||||||
|
spec:
|
||||||
|
selectAllByDefault: true
|
||||||
|
replicaCount: 1
|
||||||
|
remoteWrite:
|
||||||
|
- url: http://victoria:8429/api/v1/write
|
||||||
|
|
@ -0,0 +1,17 @@
|
||||||
|
# https://docs.victoriametrics.com/operator/api.html#vmsingle
|
||||||
|
apiVersion: operator.victoriametrics.com/v1beta1
|
||||||
|
kind: VMSingle
|
||||||
|
metadata:
|
||||||
|
name: victoria
|
||||||
|
spec:
|
||||||
|
retentionPeriod: 7d
|
||||||
|
removePvcAfterDelete: true
|
||||||
|
serviceSpec:
|
||||||
|
metadata:
|
||||||
|
name: victoria
|
||||||
|
spec: {}
|
||||||
|
storage:
|
||||||
|
accessModes: ['ReadWriteOnce']
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 10Gi
|
||||||
Loading…
Reference in a new issue