adamant-kite-43734
03/06/2024, 8:17 PMbland-article-62755
03/06/2024, 8:25 PMbland-article-62755
03/06/2024, 8:25 PMbland-article-62755
03/06/2024, 8:25 PMbland-article-62755
03/06/2024, 8:26 PMbland-article-62755
03/06/2024, 8:31 PMbland-article-62755
03/06/2024, 8:31 PMbland-article-62755
03/06/2024, 8:32 PMFor example, the following expression returns the value of5 minutes in the past relative to the current query evaluation time:http_requests_total
http_requests_total offset 5mbland-article-62755
03/06/2024, 8:35 PMbland-article-62755
03/06/2024, 8:38 PMbland-article-62755
03/06/2024, 8:40 PMstate:
> description: The backup creation state. Can be "", "InProgress", "Completed", "Error", "Unknown".
> type: stringbland-article-62755
03/06/2024, 8:42 PMcurved-piano-98970
03/07/2024, 7:44 AMcurved-piano-98970
03/07/2024, 7:44 AMcurved-piano-98970
03/07/2024, 7:44 AMcurved-piano-98970
03/07/2024, 7:44 AMcurved-piano-98970
03/07/2024, 7:46 AMcurved-piano-98970
03/07/2024, 7:51 AMbland-article-62755
03/07/2024, 3:26 PM3 and 4 would match the Unknown string, but I don't think it works that way. (I reserve the right to be wrong as I actually have no idea - it just doesn't make sense to me)bland-article-62755
03/07/2024, 3:51 PMcount ( longhorn_backup_state offset 10m =~ "Error|Unknown" ) > 0bland-article-62755
03/07/2024, 3:53 PM0 - Fire an alert.bland-article-62755
03/07/2024, 3:58 PMlonghorn_backup_state[10m] is shorthand for the offset, so that might work too.bland-article-62755
03/07/2024, 3:59 PMcount(longhorn_backup_state[10m]=~"Error|Unkown")>0 works too.curved-piano-98970
03/08/2024, 11:09 AMcurved-piano-98970
03/08/2024, 11:10 AMcurved-piano-98970
03/08/2024, 11:10 AMcurved-piano-98970
03/08/2024, 11:11 AMcurved-piano-98970
03/08/2024, 11:11 AMcurved-piano-98970
03/08/2024, 11:12 AMcurved-piano-98970
03/08/2024, 11:13 AM- metricRelabelings:
- sourceLabels: [__tmp]
regex: '(.*)'
replacement: 'cloudfire-stage-cortex'
targetLabel: k8s_cluster
action: replace
How come the prometheus metrics get duplicated? If i leave it alone i find just one servicediscovery targets inside prometheus, if i add this now i have two entries.. for the same backup.. what am i doing wrong?bland-article-62755
03/08/2024, 3:08 PMby (backup, volume) meaning it's checking both a backup object and a volume object so the volume foo says backup bar is messed up. Also the backup object bar says "i'm messed up" so there's two entries?bland-article-62755
03/08/2024, 3:08 PM