Automatic Visibility/Observability

 View Only
  • 1.  Updating your test in the Open Beta

    Posted Thu May 25, 2023 08:25 AM

    The scenario

    If you're using this Instana feature, you may already know that you can't do some things in the UI like updating your tests, this happened to a friend of mine... Click in Actions (three dots) and you're going to see "Delete the test" only, remember, we're in Open Beta and some features are not available yet.


    So, how do I update the test?

    You need the power of API, we have a section for Synthetic settings already in our Instana OpenAPI and documentation is available.
    The rest is quite simple, instead of a POST (when you create the test) you use a PUT with the payload changed.

    For demonstration purposes, I uploaded some RAW examples using curl, you can use any other fancy method to interact with the API :) like Postman.

    At the bottom of the file you're going to find an UPDATE example.

    Hope this helps!



    ------------------------------
    Israel Ochoa
    Technical Value Advisor - NCEE Market for IBM Instana
    IBM
    Stockholm
    ------------------------------


  • 2.  RE: Updating your test in the Open Beta

    Posted Fri May 26, 2023 02:08 AM

    Hi Israel Ochoa, thanks for your post and examples of curl, they are very useful. 

    Now there is another option to update synthetic test. I create a new command `synctl` to manage synthetic test and location, which can get/create/update/patch and delete synthetic test, it can also get and delete location. Here is the doc https://pages.github.ibm.com/instana/synthetic-synctl/ , I think you and your friend can have a try.

    Here are some command examples:

    # get test list
    synctl get test
    
    # update API script with below command
    synctl patch test <id> --script-file path/to/<script-name>
    
    # update test frequency
    synctl patch test <id> --frequency 5
    # for more patch options, use synctl patch test --help to show help
    
    # use this command to see test details
    synctl get test <id> --show-details
    
    # get all location
    synctl get location
    
    # delete location
    synctl delete location <location-id1> <location-id2>...
    
    </location-id2></location-id1>

    Ping me if you have any questions about it and expect your feedback.



    ------------------------------
    Rong Zhu Shang
    ------------------------------



  • 3.  RE: Updating your test in the Open Beta

    Posted Mon May 29, 2023 08:59 AM

    Thank you Rong for sharing this.



    ------------------------------
    Israel Ochoa
    Technical Value Advisor - NCEE Market for IBM Instana
    IBM
    Stockholm
    ------------------------------



  • 4.  RE: Updating your test in the Open Beta

    Posted Mon May 29, 2023 10:15 AM

    Hi Rong, your solution is very useful.

    I'm not an IBM employee, hence I don't have access to the repository.Could you share the synctl script here ?

    Thank you,

    Luis 
     



    ------------------------------
    Luis Sanchez
    luis@impulseit.com
    Chile
    ------------------------------



  • 5.  RE: Updating your test in the Open Beta

    Posted Wed May 31, 2023 09:55 AM
      |   view attached

    Hi Luis Sanchez, thank you for your interest in this tool, you can try this version I have uploaded it. Ping me if you have any questions.



    ------------------------------
    Rong Zhu Shang
    ------------------------------

    Attachment(s)

    zip
    synthetic-synctl-1.0.2.zip   36 KB 1 version


  • 6.  RE: Updating your test in the Open Beta

    Posted Wed May 31, 2023 06:50 PM

    Thank you Rong. The scripts look quite nice.

    Best regards,

    Luis



    ------------------------------
    Luis Sanchez
    luis@impulseit.com
    Chile
    ------------------------------



  • 7.  RE: Updating your test in the Open Beta

    Posted Fri June 09, 2023 03:00 AM

    The CLI tool is published in https://github.com/instana/synthetic-synctl



    ------------------------------
    RUI YIN
    ------------------------------