diff --git a/argocd/service-monitor.yaml b/argocd/service-monitor.yaml deleted file mode 100644 index a8708b6..0000000 --- a/argocd/service-monitor.yaml +++ /dev/null @@ -1,56 +0,0 @@ -apiVersion: monitoring.coreos.com/v1 -kind: ServiceMonitor -metadata: - name: argocd-metrics - namespace: argocd - labels: - team: undercloud -spec: - #namespaceSelector: - # matchNames: - # - argocd-metrics - selector: - matchLabels: - app.kubernetes.io/name: argocd-metrics - endpoints: - - port: metrics - #path: /metrics - interval: 5s ---- -apiVersion: monitoring.coreos.com/v1 -kind: ServiceMonitor -metadata: - name: argocd-notifications-controller-metrics - namespace: argocd - labels: - team: undercloud -spec: - #namespaceSelector: - # matchNames: - # - argocd-metrics - selector: - matchLabels: - app.kubernetes.io/name: argocd-notifications-controller-metrics - endpoints: - - port: metrics - #path: /metrics - interval: 5s ---- -apiVersion: monitoring.coreos.com/v1 -kind: ServiceMonitor -metadata: - name: argocd-server-metrics - namespace: argocd - labels: - team: undercloud -spec: - #namespaceSelector: - # matchNames: - # - argocd-metrics - selector: - matchLabels: - app.kubernetes.io/name: argocd-server-metrics - endpoints: - - port: metrics - #path: /metrics - interval: 5s diff --git a/bookstack/grafana-dashboard.yaml b/bookstack/grafana-dashboard.yaml deleted file mode 100644 index f661c18..0000000 --- a/bookstack/grafana-dashboard.yaml +++ /dev/null @@ -1,261 +0,0 @@ -apiVersion: grafana.integreatly.org/v1beta1 -kind: GrafanaDashboard -metadata: - name: bookstack-overview - namespace: grafana - labels: - dashboards: "grafana" -spec: - instanceSelector: - matchLabels: - dashboards: "grafana" - json: | - { - "annotations": { - "list": [ - { - "builtIn": 1, - "datasource": { - "type": "grafana", - "uid": "-- Grafana --" - }, - "enable": true, - "hide": true, - "iconColor": "rgba(0, 211, 255, 1)", - "name": "Annotations & Alerts", - "type": "dashboard" - } - ] - }, - "editable": true, - "fiscalYearStartMonth": 0, - "graphTooltip": 1, - "id": null, - "links": [], - "panels": [ - { - "type": "stat", - "title": "Deployment Available Replicas", - "gridPos": { "h": 4, "w": 6, "x": 0, "y": 0 }, - "datasource": { "type": "prometheus", "uid": "${datasource}" }, - "targets": [ - { - "expr": "kube_deployment_status_replicas_available{namespace=\"bookstack\",deployment=\"bookstack\"}", - "refId": "A" - } - ], - "options": { - "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, - "orientation": "auto", - "textMode": "auto", - "colorMode": "value" - } - }, - { - "type": "stat", - "title": "Deployment Desired Replicas", - "gridPos": { "h": 4, "w": 6, "x": 6, "y": 0 }, - "datasource": { "type": "prometheus", "uid": "${datasource}" }, - "targets": [ - { - "expr": "kube_deployment_spec_replicas{namespace=\"bookstack\",deployment=\"bookstack\"}", - "refId": "A" - } - ], - "options": { - "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, - "orientation": "auto", - "textMode": "auto", - "colorMode": "value" - } - }, - { - "type": "stat", - "title": "Pod Ready", - "gridPos": { "h": 4, "w": 6, "x": 12, "y": 0 }, - "datasource": { "type": "prometheus", "uid": "${datasource}" }, - "targets": [ - { - "expr": "max(kube_pod_status_ready{namespace=\"bookstack\",pod=~\"bookstack.*\",condition=\"true\"})", - "refId": "A" - } - ], - "options": { - "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, - "orientation": "auto", - "textMode": "auto", - "colorMode": "value" - } - }, - { - "type": "stat", - "title": "Restarts (24h)", - "gridPos": { "h": 4, "w": 6, "x": 18, "y": 0 }, - "datasource": { "type": "prometheus", "uid": "${datasource}" }, - "targets": [ - { - "expr": "sum(increase(kube_pod_container_status_restarts_total{namespace=\"bookstack\",pod=~\"bookstack.*\"}[24h]))", - "refId": "A" - } - ], - "options": { - "reduceOptions": { "calcs": ["lastNotNull"], "fields": "", "values": false }, - "orientation": "auto", - "textMode": "auto", - "colorMode": "value" - } - }, - { - "type": "timeseries", - "title": "CPU Usage", - "gridPos": { "h": 8, "w": 12, "x": 0, "y": 4 }, - "datasource": { "type": "prometheus", "uid": "${datasource}" }, - "targets": [ - { - "expr": "sum by (pod) (rate(container_cpu_usage_seconds_total{namespace=\"bookstack\",pod=~\"bookstack.*\",container!=\"\",image!=\"\"}[5m]))", - "legendFormat": "{{pod}}", - "refId": "A" - } - ], - "fieldConfig": { - "defaults": { - "unit": "cores" - }, - "overrides": [] - }, - "options": { - "legend": { - "displayMode": "list", - "placement": "bottom" - }, - "tooltip": { - "mode": "multi" - } - } - }, - { - "type": "timeseries", - "title": "Memory Working Set", - "gridPos": { "h": 8, "w": 12, "x": 12, "y": 4 }, - "datasource": { "type": "prometheus", "uid": "${datasource}" }, - "targets": [ - { - "expr": "sum by (pod) (container_memory_working_set_bytes{namespace=\"bookstack\",pod=~\"bookstack.*\",container!=\"\",image!=\"\"})", - "legendFormat": "{{pod}}", - "refId": "A" - } - ], - "fieldConfig": { - "defaults": { - "unit": "bytes" - }, - "overrides": [] - }, - "options": { - "legend": { - "displayMode": "list", - "placement": "bottom" - }, - "tooltip": { - "mode": "multi" - } - } - }, - { - "type": "timeseries", - "title": "PVC Used Bytes", - "gridPos": { "h": 8, "w": 12, "x": 0, "y": 12 }, - "datasource": { "type": "prometheus", "uid": "${datasource}" }, - "targets": [ - { - "expr": "kubelet_volume_stats_used_bytes{namespace=\"bookstack\",persistentvolumeclaim=\"bookstack\"}", - "legendFormat": "bookstack PVC", - "refId": "A" - } - ], - "fieldConfig": { - "defaults": { - "unit": "bytes" - }, - "overrides": [] - }, - "options": { - "legend": { - "displayMode": "list", - "placement": "bottom" - }, - "tooltip": { - "mode": "multi" - } - } - }, - { - "type": "timeseries", - "title": "PVC Usage Percent", - "gridPos": { "h": 8, "w": 12, "x": 12, "y": 12 }, - "datasource": { "type": "prometheus", "uid": "${datasource}" }, - "targets": [ - { - "expr": "100 * kubelet_volume_stats_used_bytes{namespace=\"bookstack\",persistentvolumeclaim=\"bookstack\"} / kubelet_volume_stats_capacity_bytes{namespace=\"bookstack\",persistentvolumeclaim=\"bookstack\"}", - "legendFormat": "bookstack PVC", - "refId": "A" - } - ], - "fieldConfig": { - "defaults": { - "unit": "percent" - }, - "overrides": [] - }, - "options": { - "legend": { - "displayMode": "list", - "placement": "bottom" - }, - "tooltip": { - "mode": "multi" - } - } - }, - { - "type": "table", - "title": "Pods in Namespace", - "gridPos": { "h": 8, "w": 24, "x": 0, "y": 20 }, - "datasource": { "type": "prometheus", "uid": "${datasource}" }, - "targets": [ - { - "expr": "kube_pod_info{namespace=\"bookstack\"}", - "format": "table", - "instant": true, - "refId": "A" - } - ], - "options": { - "showHeader": true - } - } - ], - "refresh": "30s", - "schemaVersion": 39, - "style": "dark", - "tags": ["bookstack", "kubernetes", "namespace"], - "templating": { - "list": [ - { - "name": "datasource", - "type": "datasource", - "query": "prometheus", - "refresh": 1, - "label": "Datasource" - } - ] - }, - "time": { - "from": "now-24h", - "to": "now" - }, - "title": "BookStack Namespace Overview", - "uid": "bookstack-namespace-overview", - "version": 1, - "weekStart": "" - } \ No newline at end of file