chaoskube icon indicating copy to clipboard operation
chaoskube copied to clipboard

Dashboard/Metrics info documentation

Open 2020testuser opened this issue 5 years ago • 5 comments

Hi, I'm looking for documentation to view the chaos pod delete report either in text form or in a dashboard/metrics form. Could you please let me know what args I need to pass and how to use it? Thanks!

2020testuser avatar May 21 '20 21:05 2020testuser

There's a counter of the number of deleted pods exposed via Prometheus under http://localhost:8080/metrics by default or use the --metrics-address flag.

The metric is called chaoskube_pods_deleted_total.

You can find other metrics listed here.

linki avatar May 21 '20 22:05 linki

@linki - Thanks! I've chaoskube deployed using your sample Deployment (with some tweaks) in my Kubernetes cluster. Could you please let me know how I can see the metrics?

In your url - http://localhost:8080/metrics, I replaced localhost with my <hostName> and it didn't display the metrics. Do I need to perform any additional step? Sorry. I'm using chaoskube for the first time and so not clear. Thanks!

2020testuser avatar May 22 '20 03:05 2020testuser

No, if you use the Pod IP instead of localhost it should show you something.

linki avatar May 25 '20 22:05 linki

Where do you run the curl command from?

linki avatar May 25 '20 22:05 linki

@linki - Thanks Much! I want to run the curl command from my script which I use for chaos test. Basically, I want to use the curl command to start chaoskube and pass the arguments to kill the pods. It would be very helpful if you could provide details.

Thanks!

2020testuser avatar Jun 01 '20 06:06 2020testuser