by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Patrick Baxter
    @pbx0

    Hi, I'm interested in adding webhook support for Rackspace Monitoring to iris. I was curious if a more generic approach to a webhook class would be welcome. Mainly writing a webhook class called "uuid" that allows the configuration of multiple webhook endpoints using the same class. The configuration would allow you to map certain fields from the webhook to fields needed to complete the API request. I'd need to experiment more to see if this would really work in practice, but was curious on thoughts here.

    Alternatively, I could just write the more straightforward Rackspace only webhook class which I'll probably start with just to get things working.

    Daniel Wang
    @dwang159
    Either of those sounds reasonable. If you can improve the webhook implementation to be more extensible via configuration, more power to you. Otherwise, if you only have time for Rackspace, we'd be happy with that as well.
    Neil Hanlon
    @NeilHanlon
    Hey all--there any official guide to run oncall in AWS or anything? I noticed there's terraform support for iris, but not for oncall
    QP Hou
    @houqp
    @NeilHanlon There is no official AWS guide right now. The closest thing I can find is http://oncall.tools/docs/admin_guide.html. That said, oncall should be really simple to setup since it's stateless. At Linkedin, we just reuse the same database instance with Iris.
    Feel free to ping us if you run into any specific issue with the setup.
    Robert Brown
    @robert_w_brown_twitter
    Hi! This looks like just the tool I need - however I'm clearly doing something wrong as I can't get it to run! I've used the packer script to create an AMI, but when launched I can't access it, should be http://INSTANCE: 16649 right? Is this working for others?
    Daniel Wang
    @dwang159
    It should be on port 16649 by default. Can you ssh in and access it locally?
    Robert Brown
    @robert_w_brown_twitter

    Afraid not:

    root@ip-172-31-20-230:~# curl localhost:16649
    curl: (7) Failed to connect to localhost port 16649: Connection refused

    I also can only see a NGINX process listening on port 80 - is this correct?

    root@ip-172-31-20-230:~# ps -ef |grep nginx
    root      1187     1  0 08:37 ?        00:00:00 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
    www-data  1190  1187  0 08:37 ?        00:00:00 nginx: worker process
    root     11208  1672  0 08:39 pts/0    00:00:00 grep --color=auto nginx
    root@ip-172-31-20-230:~# ps -ef |grep iris
    root     11210  1672  0 08:39 pts/0    00:00:00 grep --color=auto iris
    root@ip-172-31-20-230:~#

    Not sure what I should see running :)

    QP Hou
    @houqp
    the uwsgi process might have crashed then :(
    Linkedin is not on Docker for internal infra, so uses internal tooling for deployment. That's why the ami setup might be broken because it's not being exercised on regular basis
    @robert_w_brown_twitter you can try run the command from systemd config to see if it works and start troubleshooting from there
    Robert Brown
    @robert_w_brown_twitter
    Thanks for the detail I’ll check. I see a nginx-iris.service too. What’s the purpose of that and should it be running?
    Robert Brown
    @robert_w_brown_twitter
    The nginx-iris I think was a red herring, the main problem though was the database failing to connect as there isn’t a DB in the image…. Many thanks for your help.
    QP Hou
    @houqp
    @robert_w_brown_twitter that's usually how you deploy a python service, you use uwsgi to spin up multiple instances and have nginx in front to handle the http layer.
    and you are correct that the image doesn't come with a db, you need to setup an external db
    because image itself is stateless
    hamel
    @jordo1138
    just fyi I added PR#206 for oncall to update the docs related to mysql docker, latest mysql docker 8.0 breaks the dev/evaluation setup and you need to run mysql:5.7
    side note, i also experienced the same issue when trying to let Iris docker use my mysql docker in evaluation that was linked to the oncall container, again issue probly only exists for evaluating these tools running the docker image. side note: I'll be setting up in a prod env in aws,, any reason I couldn't use mysql rds for both iris and oncall? haven't tried, just want to avoid if not recommended
    @houqp
    Joseph Dissmeyer
    @joedissmeyer
    Question --- Where do I define the SMTP settings for the notifier?
    I don't see it in the Oncall config.yaml anywhere
    Perhaps Oncall requires Iris in order to send out SMTP email notifications?
    I ask because right now we are looking at just using Oncall as a standalone tool for the moment. I see Iris coming into play over time...
    Joseph Dissmeyer
    @joedissmeyer
    But if Iris is required in order to send out email notifications... then so be it.
    hamel
    @jordo1138
    As far as I understand you should run Iris, in the oncall yaml config, even reminders for who is on call is sent via Iris.. pls correct me if I’m wrong tho
    Altho, if you have your own msg service seems can be declared in oncall.

    Reminders sent using these messengers

    messengers:

    - type: rocketchat_messenger

    user: username

    password: abc123

    refresh: 60000

    api_host: https://example.rocket.chat

    #

    - type: iris_messenger

    application: oncall

    iris_api_key: magic

    api_host: http://localhost:166

    I’ll try to Test with aws sns or ses later
    hamel
    @jordo1138

    The main thing is probly new messenger needs to be added
    https://github.com/linkedin/oncall/blob/db6cfaa8fb7b787489dfab4bc5775e63756bbfc0/src/oncall/messengers/iris_messenger.py

    Iris messenger supports email sms slack etc, so if you made a new messenger type that did the smtp mail service it would need to be added

    For users only using it for scheduling oncall it would make sense to have a simple mail messenger
    Joseph Dissmeyer
    @joedissmeyer
    Excellent thank you @jordo1138 ! I appreciate it.
    I'll get Iris set up then and go from there.
    Joseph Dissmeyer
    @joedissmeyer
    FYI - I went ahead and submitted linkedin/oncall#209. Just a note on LDAP/AD Authentication.
    What is the best way to contribute to the official documentation for Oncall and Iris?
    hamel
    @jordo1138
    @joedissmeyer nice example, i left a comment, my PR is also for docs - since the source for the docs is in the repo
    Joseph Dissmeyer
    @joedissmeyer
    Ah ... so the source for docs is in the repo gotcha. Thanks @jordo1138 !
    charles salloum
    @charlesdegaullesalloum_gitlab
    hello, anyone here have tried Iris Relay and got it working ?
    Joseph Dissmeyer
    @joedissmeyer
    Anyone know how the REST API authentication works after disabling debug mode in Oncall? I have Active Directory/LDAP auth working perfectly for the web UI. But when I try to use basic auth for the REST API endpoint I keep getting the following output...
    {
    "title": "Authentication failure",
    "description": "Invalid digest format"
    }
    I'm trying to map a service to a team, and trying to remove a service from a team. But all attempts ends up with the invalid digest format error
    QP Hou
    @houqp
    @charlesdegaullesalloum_gitlab Iris relay is running in production at Linkedin. What error were you running into?
    @joedissmeyer It's a custom hmac based auth protocol, so you can't use standard http auth. Here is a sample client that uses the custom auth method with requests: https://github.com/houqp/iris-python-client/blob/master/src/irisclient/__init__.py#L18.
    Yuvaraj L
    @skyrocknroll
    Hello Team , I have raised an pull request linkedin/iris#470 for smtp auth support. Can somebody review and merge ?
    @houqp Can you help here ?
    Daniel Wang
    @dwang159
    LGTM
    Sheepdog
    @CamHopkin_twitter
    Hi all I have been working on trying to get IRIS up and running using virtual env and https://medium.com/@angellom/deploying-linkedins-iris-to-aws-as-a-docker-image-cba6b1cf14cf on aws but I keep hitting walls
    is there just like a docker container that I can throw up and be done with it?
    Sheepdog
    @CamHopkin_twitter
    well that second one looks really really easy