Comments (3)
Hi @ugiopenstack, thank you for pointing this out 😺
That appears to be a regression that was introduced when we added support for specifying resolved_signal
in the config file. Settings in the config file were being checked, even when a config file wasn't specified. This resulted in the nil dereference error.
I've opened a pull request to take care of that error.
To avoid the error, you could do one of:
a) Use a build from an older version of prometheus-am-executor from before the regression (v1.0.0)
b) Use the config file option instead of specifying commands as an argument to prometheus-am-executor
c) Build prometheus-am-executor from a checkout of my branch with the fix, if you don't want to wait for it to be merged in to the main branch first
d) Wait until the PR is merged in, then just build and run like you were attempting to before ^^
from prometheus-am-executor.
Version v2.0.2 contains the fix, so option d) might be easiest for you :)
from prometheus-am-executor.
i checked that v2.0.2 contains fixed. Is was a great help :) Thanks!!
from prometheus-am-executor.
Related Issues (20)
- Refactor main.go, to use a config struct instead of global vars HOT 2
- Add test case for `handleWebhook`
- Add functionality for reading config from a file
- Add functionality for executing different commands, based on matching alarm labels
- Update CircleCI to run go build, and upload packages for different platforms
- Check support for multi-line alarm annotations HOT 1
- Functionality for passing alarm data to commands via STDIN HOT 1
- Fix the LICENSE file contents, so that package docs show up properly on pkg.go.dev HOT 3
- run multiple script file HOT 1
- Allow for command delays when matching alarms/alarm entities exceeds a threshold in a time-frame HOT 3
- Support alarm deduplication for unique alarm entities within a time-frame HOT 2
- Support cancelling running command for an alarm if a resolve condition is received. HOT 2
- Add ability to kill exec process with SIGTERM instead of SIGKILL when resolved alert arrived HOT 1
- request id in logger HOT 1
- Add feature to enable mutual TLS
- MacOS with Go throwing error "undefined: syscall.SIGCLD" and similar error HOT 3
- executor.yaml file
- panic: send on closed channel
- problem with testing HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prometheus-am-executor.