Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

systemd service file missing #1

Open
wagneradrian92 opened this issue Dec 14, 2022 · 2 comments
Open

systemd service file missing #1

wagneradrian92 opened this issue Dec 14, 2022 · 2 comments

Comments

@wagneradrian92
Copy link

hey, i was going to try out your prom2tower solution because we are looking for a way to work with ansible and prometheus alerts. now i noticed that your service sample can no longer be found on git. could you maybe reupload it? thx

@pja237
Copy link
Owner

pja237 commented Dec 14, 2022

Hey,
it seems i forgot to upload one accompanying repository that might help.
Here is an ansible role that downloads and sets up the systemd service https://github.com/pja237/role-prom2tower

Even if you don't use ansible, you can still take the service file template from there and fix the User, Group (can be removed) and ExecStart lines

Hope this helps.

@wagneradrian92
Copy link
Author

wagneradrian92 commented Jan 5, 2023

thanks for your help. i now have prom2tower up and running. but when an alerts triggers an ansible playbook the rest call fails with "forbidden". i created a token with wirte and system administrator permissions.
config.yaml:
name: gluMaster
listenAddr: ":9999"
logFile: "/tmp/prom2tower.log"
towerHost: "https://ansible-awx.net"
towerToken: "token"

am i missing something?

Update:
Nevermind found the solution :) (frogot to unset the proxy)

now everything works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants