1. 12 Nov, 2020 5 commits
    • AlertingNG: manage and evaluate alert definitions via the API (#28377) · 43f580c2
      * Alerting NG: prototype v2 (WIP)
      
      * Separate eval package
      
      * Modify eval alert definition endpoint
      
      * Disable migration if ngalert is not enabled
      
      * Remove premature test
      
      * Fix lint issues
      
      * Delete obsolete struct
      
      * Apply suggestions from code review
      
      * Update pkg/services/ngalert/ngalert.go
      
      Co-authored-by: Kyle Brandt <kyle@grafana.com>
      
      * Add API endpoint for listing alert definitions
      
      * Introduce index for alert_definition table
      
      * make ds object for expression to avoid panic
      
      * wrap error
      
      * Update pkg/services/ngalert/eval/eval.go
      
      * Swith to backend.DataQuery
      
      * Export TransformWrapper callback
      
      * Fix lint issues
      
      * Update pkg/services/ngalert/ngalert.go
      
      Co-authored-by: Kyle Brandt <kyle@grafana.com>
      
      * Validate alert definitions before storing them
      
      * Introduce AlertQuery
      
      * Add test
      
      * Add QueryType in AlertQuery
      
      * Accept only float64 (seconds) durations
      
      * Apply suggestions from code review
      
      * Get rid of bus
      
      * Do not export symbols
      
      * Fix failing test
      
      * Fix failure due to service initialization order
      
      Introduce MediumHigh service priority and assign it to backendplugin
      service
      
      * Fix test
      
      * Apply suggestions from code review
      
      * Fix renamed reference
      
      Co-authored-by: Kyle Brandt <kyle@grafana.com>
      Sofia Papagiannaki committed
    • Fix linting issues (#28811) · a1e80af8
      Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
      Arve Knudsen committed
    • Logging: Log frontend errors (#28073) · 76df0967
      * basic frontend  Sentry integration
      
      * backend endpoint to capture sentry events
      
      * WIP!
      
      * log user email for frontend logs
      
      * remove debug logging
      
      * lint fixes
      
      * Fix type exports & property names
      
      Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
      
      * additional struct naming fix
      
      * rename log endpoint, config section & interface
      
      * add sentry sample rate to config
      
      * refac to use EchoSrv
      
      * log user id
      
      * backend tests
      
      * tests for SentryEchoBackend
      
      * sentry echo backend tests
      
      * CustomEndpointTransport tests
      
      * Update pkg/api/frontend_logging_test.go
      
      Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
      
      * Update conf/defaults.ini
      
      Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
      
      * Update pkg/api/frontend_logging_test.go
      
      Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
      
      * don't export unnecesasrily
      
      * update go.sum
      
      * get rid of Convey in tests, use stdlib
      
      * add sentry config to sample.ini
      
      * cleanup to set orig logging handler in test
      
      * Apply suggestions from code review
      
      Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
      
      * PR feedback changes
      
      * lock sentry version
      
      Co-authored-by: Arve Knudsen <arve.knudsen@gmail.com>
      Domas committed
  2. 11 Nov, 2020 27 commits
  3. 10 Nov, 2020 8 commits