Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tjamet/powerline-go-datadog
powerline-go plugin that shows datadog's monitors in warning, alert or nodata
https://github.com/tjamet/powerline-go-datadog
Last synced: 8 days ago
JSON representation
powerline-go plugin that shows datadog's monitors in warning, alert or nodata
- Host: GitHub
- URL: https://github.com/tjamet/powerline-go-datadog
- Owner: tjamet
- License: apache-2.0
- Created: 2018-12-18T14:16:10.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2018-12-18T15:20:57.000Z (almost 6 years ago)
- Last Synced: 2024-06-20T02:10:43.825Z (5 months ago)
- Language: Go
- Size: 116 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# powerline-go-datadog
powerline-go plugin that shows datadog's monitors in warning, alert or nodata
Inspired from [i3blocks-datadog](https://github.com/alanbover/i3blocks-datadog)![](powerline-go-datadog.png)
## How to install powerline-go-datadog
### 0. Prerequisite
Use a custom [powerline-go](https://github.com/tjamet/powerline-go/) project that supports plugins
### 1. Build the application
First of all, you will need to build the project. For this, just execute:```
go get -u github.com/tjamet/powerline-go-datadog
go build -o /usr/local/bin/powerline-go-datadog
```Ensure you have `/usr/local/bin/` in your `$PATH`
### 2. Add datadog plugin segment
You need to edit your powerline-go configuration to add the plugin segment in your `~/.profile`example:
```
PS1="$(powerline-go -error $? -modules user,host,docker,kube,cwd,perms,git,jobs,exit,root)"
```### 3. Inject your credentials
Update your `~/.netrc` file add:
```
machine api.datadoghq.com
login
password
```### 4. Profit!