Skip to content

Instantly share code, notes, and snippets.

View wolffcm's full-sized avatar
🧐

Christopher M. Wolff wolffcm

🧐
View GitHub Profile
@wolffcm
wolffcm / common-flux-alert-tasks.md
Created September 8, 2020 21:37
Common Flux Alerting Tasks for InfluxData Cloud 2.0

Examples of Common Alerting Tasks in Flux

In the InfluxDB 2.0 Cloud, you can write tasks to perform common actions when something special occurs.

These examples are written against data produced by the telegraf system plugin.

A task that sends an alert when a value stops fluctuating

If a sensor gets stuck, it might start sending the same value over and over.

@wolffcm
wolffcm / readgroup_no_seriesHasPoints.svg
Created May 14, 2020 20:30
readgroup_no_seriesHasPoints.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wolffcm
wolffcm / readgroup.svg
Created May 14, 2020 20:25
ReadGroup profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@wolffcm
wolffcm / go-debug-compiler-flags.md
Created December 31, 2019 14:25
Compiler Flags for debugging Go programs
@wolffcm
wolffcm / Flux.g4
Created May 14, 2019 20:05
Flux grammar in ANTLR4 format
grammar Flux;
WS : [ \r\t\n]+ -> skip ;
IDENTIFIER : [a-zA-Z]+ ;
INT_LIT : [0-9]+ ;
FLOAT_LIT : [0-9]+ '.' [0-9]+ ;
STRING_LIT : '"' [a-zA-Z0-9]+ '"' ;
DURATION_LIT : [0-9][0-9][0-9][0-9] '-' [0-9][0-9] '-' [0-9][0-9] 'T' [0-9][0-9] ':' [0-9][0-9] ':' [0-9][0-9] 'Z' ;
PIPE_RECEIVE_LIT : '<-' ;