[prometheus-developers] Why can't you use multiple processes

2021-02-22 Thread li yun
*I try to perform multi-process analysis in the code to analyze the data of a certain file, but the code cannot perform the join normally, and there is no method to perform multiprocessing.Process. May I ask what I did wrong, please forgive me for not knowing how to format in the google group

Re: [prometheus-developers] Difference in scope between smokeping_prober and blackbox_exporter?

2021-02-22 Thread Ben Kochie
On Mon, Feb 22, 2021 at 3:48 AM Marcelo Magallón < marcelo.magal...@grafana.com> wrote: > Thanks Ben. > > On Thu, Feb 18, 2021 at 1:37 PM Ben Kochie wrote: > >> The problem with what you're proposing is you're getting an invalid >> picture of data over time. This is the problem with the original

[prometheus-developers] I use prometheus client to process back-end data in multiple processes

2021-02-22 Thread linux...@gmail.com
I use prometheus client to process back-end data in multiple processes, and multiple processes cannot join during operation. Below is my code,Why not wait at the position of p.join()? class CustomCollectorA(object): def collect(self): with open("./data", 'r') as load_f:

[prometheus-developers] I use prometheus client to process back-end data in multiple processes

2021-02-22 Thread linux...@gmail.com
I use prometheus client to process back-end data in multiple processes, and multiple processes cannot join during operation. Below is my code,Why not wait at the position of p.join()? class CustomCollectorA(object): def collect(self): with open("./qdata_coins", 'r') as load_f:

[prometheus-developers] I use prometheus client to process back-end data in multiple processes

2021-02-22 Thread linux...@gmail.com
I use prometheus client to process back-end data in multiple processes, and multiple processes cannot join during operation. Below is my code def collect(self): with open("./qdata_coins", 'r') as load_f: load_dict = json.load(load_f) n = len(load_dict) // 100 i =