Defining Rancher Observer jobs
Using the Rancher Observer, you can define a full load job that will read data from Rancher through the REST API and generate a topology.
Before you begin
Important: The Rancher Observer supports the cloud/SaaS Rancher version 2.3.2 and API
version 3.0.
The Rancher Observer is installed as part of the core installation procedure.
Ensure you have the Rancher details to hand, such as the Rancher host IP, accessKey, secretKey and clusterId, before running the observer job.
About this task
Remember: Swagger documentation for the observer is available at the following default
location: https://<your
host>/1.0/rancher-observer/swagger
The Rancher Observer supports a transient (one-off) Load job that loads all requested topology data via Rancher REST API to build the topology, and then exit.
- rancher_observer_common.sh
- The configuration file you use to customize Rancher Observer settings.
You define and start the following job. You must edit the parameters in the configuration file
before running this job.
- Full Topology Upload job
- A transient (one-off) job that loads all requested topology data.
Procedure
To edit the parameters in the configuration file
To start the Load job
Results
This job loads all requested topology data, and runs only once. Run this job whenever you need Rancher topology data refreshed.
What to do next
You can also use the following scripts:
- rancher_observer_load_stop.sh
- Stops the Load job
- rancher_observer_job_list.sh
- Lists the status of current jobs
- rancher_observer_log_level.sh
- Sets the log level
Remember: In addition to being configurable from the Observer Configuration UI,
all on-prem observer jobs also have scripts to start and stop all available jobs, to list the status
of a current job, and to set its logging levels. Scripts can be run with -h or
--help to display help information, and with -v or
--verbose to print out the details of the actions performed by the script,
including the full cURL command. For the on-prem version of Agile Service Manager, observer scripts
are configured for specific jobs by editing the script configuration files.