Skip to content

Commit 16ca4d2

Browse files
authored
feat(monitoring): add SLO for parca-analytics remote-write to Polar Signals Cloud (#472)
1 parent e92479d commit 16ca4d2

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

monitoring/environments/scaleway-parca-demo/main.jsonnet

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,27 @@ local prometheuses = [
375375
},
376376
},
377377

378+
polarSignalsCloudRemoteWriteSLO: {
379+
apiVersion: 'pyrra.dev/v1alpha1',
380+
kind: 'ServiceLevelObjective',
381+
metadata: {
382+
name: p._config.name + '-remote-write',
383+
namespace: p._config.namespace,
384+
labels: p._config.commonLabels { 'app.kubernetes.io/component': 'slo' },
385+
},
386+
spec: {
387+
target: '99',
388+
window: '4w',
389+
description: 'Samples remote-written to Polar Signals Cloud are not dropped.',
390+
indicator: {
391+
ratio: {
392+
errors: { metric: 'prometheus_remote_storage_samples_failed_total{url="https://api.polarsignals.com/api/v1/write"}' },
393+
total: { metric: 'prometheus_remote_storage_samples_total{url="https://api.polarsignals.com/api/v1/write"}' },
394+
},
395+
},
396+
},
397+
},
398+
378399
objectStorageSecret: {
379400
apiVersion: 'v1',
380401
kind: 'Secret',

0 commit comments

Comments
 (0)