In my set up, I started the HTTP server to scrape my container for metrics. I am using the official Python package to implement the Enum metric e.g.
worker_status = prom.Enum('worker_status', 'Status of worker', states=['idle', 'running'])
Also, I am also using the Info metric e.g.
worker_spec = prom.Info('worker_spec', 'Spec which the worker is using to process')
.
.
.
worker_spec.info({'spec': os.getenv('TRAINING')})
worker_spec
as well as the specific state i.e. worker_status
.I tried to use the and
operator and ==
operator to find the container that matches both conditions but the graph just returns empty data.