On Sunday, 11 December 2022 at 17:50:38 UTC SebV wrote:
> what am I missing ?
>
Nothing is setting the labels __meta_kubernetes_pod_ip or
__meta_kubernetes_pod_container_port_number. Therefore, the target
__address__ you are constructing is simply ":" - which is invalid, as the
error says.
Looks OK to me, if your instance labels are of the form name:port. It
should take effect pretty much instantaneously.
You could add -v to the the curl command line, to see the response code
(204 / 400 etc)
Of course, the metrics will reappear if you are still scraping them, which
might be
When you say "the value is missing", what condition exactly do you want to
alert on?
To detect that there is *no* metric matching your selector, you can use the
absent(…) function. It returns 1 when … is nothing.
It gets more complicated and difficult if you want to detect that a single
series
curl -X POST -g
'http://localhost:9090/api/v1/admin/tsdb/delete_series?match[]={instance="instance:port"}'
Is the above query correct? If so, I am able to see those instances' values
that were removed from the prometheus.yml file. Will it take time to
reflect on those changes?
On Monday, 5
4 matches
Mail list logo