diff --git a/.gitignore b/.gitignore index 08bef08..980a943 100644 --- a/.gitignore +++ b/.gitignore @@ -9,3 +9,7 @@ node_modules vite.config.js.timestamp-* vite.config.ts.timestamp-* examples/assets/ + +helm/charts/*.tgz +helm/values-*.yaml +docs/ diff --git a/grafana/maps-playground-dashboard.json b/grafana/maps-playground-dashboard.json deleted file mode 100644 index 6639e70..0000000 --- a/grafana/maps-playground-dashboard.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "title": "Maps Playground", - "uid": "maps-playground", - "schemaVersion": 39, - "editable": true, - "time": { "from": "now-6h", "to": "now" }, - "templating": { - "list": [ - { - "name": "datasource", - "type": "datasource", - "query": "prometheus", - "current": {} - } - ] - }, - "panels": [ - { - "id": 1, - "title": "Request rate by route", - "type": "timeseries", - "datasource": { "type": "prometheus", "uid": "${datasource}" }, - "gridPos": { "h": 8, "w": 12, "x": 0, "y": 0 }, - "targets": [ - { - "expr": "sum by (route) (rate(http_requests_total[5m]))", - "legendFormat": "{{route}}" - } - ] - }, - { - "id": 2, - "title": "Latency p50 / p95 (s)", - "type": "timeseries", - "datasource": { "type": "prometheus", "uid": "${datasource}" }, - "gridPos": { "h": 8, "w": 12, "x": 12, "y": 0 }, - "targets": [ - { - "expr": "histogram_quantile(0.50, sum by (le) (rate(http_request_duration_seconds_bucket[5m])))", - "legendFormat": "p50" - }, - { - "expr": "histogram_quantile(0.95, sum by (le) (rate(http_request_duration_seconds_bucket[5m])))", - "legendFormat": "p95" - } - ] - }, - { - "id": 3, - "title": "Error ratio (4xx+5xx)", - "type": "timeseries", - "datasource": { "type": "prometheus", "uid": "${datasource}" }, - "gridPos": { "h": 8, "w": 12, "x": 0, "y": 8 }, - "targets": [ - { - "expr": "sum(rate(http_requests_total{status_code=~\"4..|5..\"}[5m])) / sum(rate(http_requests_total[5m]))", - "legendFormat": "error ratio" - } - ] - }, - { - "id": 4, - "title": "Top demos", - "type": "timeseries", - "datasource": { "type": "prometheus", "uid": "${datasource}" }, - "gridPos": { "h": 8, "w": 12, "x": 12, "y": 8 }, - "targets": [ - { - "expr": "topk(10, sum by (client, name) (rate(demo_views_total[15m])))", - "legendFormat": "{{client}}/{{name}}" - } - ] - }, - { - "id": 5, - "title": "Process memory (bytes)", - "type": "timeseries", - "datasource": { "type": "prometheus", "uid": "${datasource}" }, - "gridPos": { "h": 8, "w": 12, "x": 0, "y": 16 }, - "targets": [ - { "expr": "process_resident_memory_bytes", "legendFormat": "rss" } - ] - }, - { - "id": 6, - "title": "Process CPU (cores)", - "type": "timeseries", - "datasource": { "type": "prometheus", "uid": "${datasource}" }, - "gridPos": { "h": 8, "w": 12, "x": 12, "y": 16 }, - "targets": [ - { "expr": "rate(process_cpu_seconds_total[5m])", "legendFormat": "cpu" } - ] - } - ] -} diff --git a/helm/charts/mclabels-1.0.1.tgz b/helm/charts/mclabels-1.0.1.tgz deleted file mode 100644 index 978e6df..0000000 Binary files a/helm/charts/mclabels-1.0.1.tgz and /dev/null differ diff --git a/helm/grafana/dashboard-sync.test.ts b/helm/grafana/dashboard-sync.test.ts deleted file mode 100644 index 6e7e1d1..0000000 --- a/helm/grafana/dashboard-sync.test.ts +++ /dev/null @@ -1,11 +0,0 @@ -// @vitest-environment node -import { readFileSync } from 'node:fs'; -import { describe, it, expect } from 'vitest'; - -describe('grafana dashboard copies stay in sync', () => { - it('repo-root and chart copies are byte-identical', () => { - const root = readFileSync('grafana/maps-playground-dashboard.json', 'utf8'); - const chart = readFileSync('helm/grafana/maps-playground-dashboard.json', 'utf8'); - expect(chart).toBe(root); - }); -});