[prometheus-users] Re: Node Exporter service error (203/EXEC)

2022-06-07 Thread Brian Candler
203 return code from systemd means it cannot run the program that you put 
in your ExecStart line. First hit from Google explains it:
https://unix.stackexchange.com/questions/472950/systemd-status-203-exec-error-when-creating-new-service

Maybe that file doesn't exist, or is not executable.

For further help, you'll need to show the entire content of your service 
file, and the output of "journalctl -eu node_exporter"

On Tuesday, 7 June 2022 at 19:29:40 UTC+1 chembakay...@gmail.com wrote:

> Hi all,
>
> I want to install node_exporter binary file in ubuntu os.
>
> I am running as a service file. But I am getting error when running the 
> command systemctl status node_exporter:
>
> Active: failed (Result: exit-code)
> node_exporter.service: Main process exited, code=exited, status=203/EXEC
>
> What can be the solution for this error?
>
> Thanks & regards,
> Bharath Kumar.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/6d1676cd-a89e-45c1-a737-876a6374af3cn%40googlegroups.com.


[prometheus-users] Re: How to monitor authenticated API endpoint using Blackbox exporter and Prometheus

2022-06-07 Thread Brian Candler
What you've put in prometheus.yml under 'targets' is wrong.  
Blackbox_exporter does not run external programs such as curl.  The target 
should be a URL, not a command line.

I suggest you forget about prometheus.yml to start with, and get 
blackbox_exporter running by itself - and you can hit blackbox_exporter 
with curl.  If you do this, then you can add debug=true to get more 
information:

curl -vg 'host.docker.internal:9115/probe?module=http_post_2xx=
https://asdf.b.cloud:443/whatever=true 
'

Only after you've got that working, then you can move on to configuring 
prometheus.

However, what's clear from the above is you've put nothing in blackbox.yml 
to configure authentication. For the settings you need, see 
https://github.com/prometheus/blackbox_exporter/blob/master/CONFIGURATION.md#http_probe
Assuming that you can connect to the API directly using -u 
username:password, then what you're looking for is "basic auth":

modules:
  http_2xx_with_auth:
prober: http
http:
  basic_auth:
username: my_username
password: my_password
  ... other settings as required (e.g. method: POST, headers, body etc 
...

On Tuesday, 7 June 2022 at 14:27:44 UTC+1 santanum...@gmail.com wrote:

> Hi Team,
>   I have a requirement to monitor the authenticated API endpoint using 
> Balckbox Exporter and Prometheus. I am unable to figure out the solution. 
> Please help!
> The Blackbox exporter gives 200 success message for APIs without 
> authentication though. 
> I am putting the yml files for blackbox exporter and Prometheus.
>
> blackbox.yml
> [image: Screen Shot 2022-06-06 at 12.03.19 PM.png]
>
> prometheus.yml
>
> [image: Screen Shot 2022-06-06 at 12.07.41 PM.png]
>
> Note: I tried with http_2xx and it didn't help either.
>
> Thanks!
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/685d921b-2905-460a-99c2-692a10c38dc2n%40googlegroups.com.


[prometheus-users] Re: How to monitor authenticated API endpoint using Blackbox exporter and Prometheus

2022-06-07 Thread Brian Candler
What you've put in prometheus.yml under 'targets' is wrong.  
Blackbox_exporter does not run external programs such as curl.  The target 
should be a URL, not a command line.

I suggest you forget about prometheus.yml to start with, and get 
blackbox_exporter running by itself - and you can hit blackbox_exporter 
with curl.  If you do this, then you can add debug=true to get more 
information:

curl -vg 
'host.docker.internal:9115/probe?module=http_post_2xx=https://asdf.b.cloud:443/whatever=true'

Only after you've got that working, then you can move on to configuring 
prometheus.

However, what's clear from the above is you've put nothing in blackbox.yml 
to configure authentication. For the settings you need, 
see 
https://github.com/prometheus/blackbox_exporter/blob/master/CONFIGURATION.md#http_probe
Assuming that you can connect to the API directly using -u 
username:password, then what you're looking for is "basic auth":

modules:
  http_2xx_with_auth:
prober: http
basic_auth:
  username: my_username
  password: my_password

On Tuesday, 7 June 2022 at 14:27:44 UTC+1 santanum...@gmail.com wrote:

> Hi Team,
>   I have a requirement to monitor the authenticated API endpoint using 
> Balckbox Exporter and Prometheus. I am unable to figure out the solution. 
> Please help!
> The Blackbox exporter gives 200 success message for APIs without 
> authentication though. 
> I am putting the yml files for blackbox exporter and Prometheus.
>
> blackbox.yml
> [image: Screen Shot 2022-06-06 at 12.03.19 PM.png]
>
> prometheus.yml
>
> [image: Screen Shot 2022-06-06 at 12.07.41 PM.png]
>
> Note: I tried with http_2xx and it didn't help either.
>
> Thanks!
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/d21f41b2-67cf-4041-a70d-28a7e7a090d2n%40googlegroups.com.


Re: [prometheus-users] Re: blackbox monitoring for webpages requiring user auth

2022-06-07 Thread Brian Candler
On Tuesday, 7 June 2022 at 14:27:27 UTC+1 santanum...@gmail.com wrote:

>  Does blackbox exporter support monitoring authenticated APIs.
>

That depends what sort of authentication the API requires.

Blackbox exporter supports HTTP Basic Auth, Bearer Token, TLS Certificate, 
and limited oauth2 authentication (client credentials grant only).

If it does then how to make it work.
>

You make it work by configuring it to meet your requirements. See 
https://github.com/prometheus/blackbox_exporter/blob/master/CONFIGURATION.md#http_probe

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/53e09862-9940-4cff-a7e0-101762f0cd91n%40googlegroups.com.


[prometheus-users] Node Exporter service error (203/EXEC)

2022-06-07 Thread BHARATH KUMAR
Hi all,

I want to install node_exporter binary file in ubuntu os.

I am running as a service file. But I am getting error when running the 
command systemctl status node_exporter:

Active: failed (Result: exit-code)
node_exporter.service: Main process exited, code=exited, status=203/EXEC

What can be the solution for this error?

Thanks & regards,
Bharath Kumar.

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/aaf8f241-25af-47f1-9bca-39c0fb688445n%40googlegroups.com.


Re: [prometheus-users] Does Prometheus support Netapp Trident NFS storage backend?

2022-06-07 Thread tejaswini vadlamudi
Ben and Stuart, any comments?

On Thursday, June 2, 2022 at 1:53:49 PM UTC+2 tejaswini vadlamudi wrote:

> I'm not on top of performance degradation issues with the NFS storage 
> type. But by reading more on this topic, I understand the reasoning behind 
> your suggestion.
>
> NFS version 4 improved file locking.
>
> MySQL documentation says "If you choose to use NFS, NFS Version 4 or later 
> is recommended, as is testing your NFS setup thoroughly before deploying 
> into a production environment". 
>
> But Prometheus documentation and also the source code warn users to stay 
> away from it.
>
>
> https://github.com/prometheus/prometheus/blob/main/cmd/prometheus/main.go#L990
>
> case "NFS_SUPER_MAGIC":
>
>   level.Warn(logger).Log("fs_type", fsType, "msg", "This 
> filesystem is not supported and may lead to data corruption and data loss. 
> Please carefully read 
> https://prometheus.io/docs/prometheus/latest/storage/ to learn more about 
> supported filesystems.")
>
> What do you recommend if certain users have access to ONLY NFS storage 
> type? Do you suggest sending/streaming Prometheus data to someother long 
> term data store like Victoria Metrics or Cortext? I still wonder about 
> storage type for fsyncs and WAL file handling. 
> On K8S, if ephemeral storage is used to store Prometheus data,  data is 
> not persistent and highly available.
>
> Thanks!
> On Tuesday, May 31, 2022 at 9:37:12 PM UTC+2 sup...@gmail.com wrote:
>
>> Last I remember, most of the issues are around file locking and atomic 
>> operations.
>>
>> Agent mode with WAL-only should be less of an issue, except possibly 
>> fsyncs.
>>
>> Either way, depending on NFS is a bad idea from a reliability 
>> perspective, as your monitoring system now depends on the network and 
>> storage server to properly alert.
>>
>> Like Stuart says, would you run your SQL servers over NFS? 
>>
>> On Tue, May 31, 2022 at 7:38 PM tejaswini vadlamudi  
>> wrote:
>>
>>> What do you mean by not meeting desired performance characteristics? Is 
>>> it the write conflicts, file/block size limiations, etc.. eventually over 
>>> time, or is it with a high ingestion load?
>>> Do we have similar problems if we deploy Prometheus in Agent mode (data 
>>> streamed to a remote location) but still need WAL storage to handle 
>>> receiver connection failures?
>>>
>>> Thanks, Teja
>>> On Tuesday, May 31, 2022 at 5:41:11 PM UTC+2 Stuart Clark wrote:
>>>
 On 2022-05-31 15:45, tejaswini vadlamudi wrote: 
 > Hi Stuart, 
 > 
 > I forgot to ask the most important question on this topic :-) 
 > Could you explain the reason for not supporting NFS based storage in 
 > Prometheus? 
 > 

 At its core Prometheus contains a high performance time-series 
 database. 
 Network filesystems just don't have the same performance 
 characteristics 
 or features as a direct local disk. It is similar to not expecting 
 support for storing a MySQL/Oracle/MSSQL/etc. database on a network 
 storage system - it might technically work, but you are likely to 
 encounter problems at some point, and you are unlikely to recenive any 
 free/paid support in that architecture. 

 -- 
 Stuart Clark 

>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Prometheus Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to prometheus-use...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/prometheus-users/993b1dc3-120d-4ec7-84d1-e99387e30e15n%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/7cfd5704-a10f-4007-92e2-7f2ffc21429dn%40googlegroups.com.


[prometheus-users] Getting Issue after blackbox exporter add in prometheus

2022-06-07 Thread Manu Mittal
hi All ,

I have deployed grafana and prometheus in k8s cluster and created a Pod of 
blackbox exporter to monitor the http targets .

But currently looks like after all configuration my targets in prometheus 
gui is showing unknown . Please support i am stuck in the issue ...



Regards,
Manu Mittal 
+971544755650

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/52068e82-7540-4824-b439-a985e1ad5990n%40googlegroups.com.


Re: [prometheus-users] Re: blackbox monitoring for webpages requiring user auth

2022-06-07 Thread Santanu Mishra
Hi Brian,
 Does blackbox exporter support monitoring authenticated APIs. If it 
does then how to make it work.
Thanks!

On Thursday, August 24, 2017 at 12:16:35 AM UTC-7 Brian Brazil wrote:

> On 24 August 2017 at 00:37, nsmeds  wrote:
>
>> Any updates on this? It'd be much appreciated <3
>>
>>
> This was released a while back, see 
> https://github.com/prometheus/blackbox_exporter/blob/master/CONFIGURATION.md#http_probe
>  
>
>> On Wednesday, May 24, 2017 at 12:35:36 AM UTC-7, Brian Brazil wrote:
>>>
>>> On 24 May 2017 at 03:02,  wrote:
>>>
 I found this post. I expect not only basic auth but also other auth 
 methods.

>>>
>>> There's work in progress to make this possible. It requires some 
>>> refactoring.
>>>
>>> Brian
>>>  
>>>

 https://groups.google.com/forum/#!topic/prometheus-users/q4d1AN67E6o

 2017年5月24日水曜日 10時46分03秒 UTC+9 californi...@gmail.com:
>
> Blackbox exporter seems not to support monitor webpages requiring user 
> authentication. Is this correct?
>
 -- 
 You received this message because you are subscribed to the Google 
 Groups "Prometheus Users" group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to prometheus-use...@googlegroups.com.
 To post to this group, send email to promethe...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/prometheus-users/ca9ec99c-3de4-4ccc-8042-1d476c39020c%40googlegroups.com
  
 
 .

 For more options, visit https://groups.google.com/d/optout.

>>>
>>>
>>>
>>> -- 
>>> Brian Brazil
>>> www.robustperception.io
>>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Prometheus Users" group.
>>
> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to prometheus-users+unsubscr...@googlegroups.com.
>> To post to this group, send email to prometheus-users@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/prometheus-users/664454c4-4b67-41eb-93fb-292ed2b3f9bd%40googlegroups.com
>>  
>> 
>> .
>
>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Brian Brazil
> www.robustperception.io
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/07bb779f-162a-4450-82ed-4cbf764c7fe4n%40googlegroups.com.


Re: [prometheus-users] relabel_configs

2022-06-07 Thread David Friedman
Yes "metric_relabel_configs" worked for me
thanks for all the help!!!

On Tuesday, June 7, 2022 at 1:30:51 PM UTC+3 Brian Candler wrote:

> On Tuesday, 7 June 2022 at 09:55:33 UTC+1 sup...@gmail.com wrote:
>
>> That won't work because labelmap needs a `source_labels` to act on.
>>
>
> No, I don't believe that's true. I've just tested the following and it 
> works fine:
>
> relabel_configs:
>   - action: labelmap
> regex: "(__address__)"
> replacement: "dummy$1"
>
> Metrics now have an extra "dummy__address__" label.
>
> What I suspect is happening here is that the OP is using relabel_configs 
> when they should be using metric_relabel_configs.
>
> * relabel_configs is applied *before* the scrape takes place. It can 
> therefore only affect labels which are returned by the service discovery.
> * metric_relabel_configs is applied *after* the scrape takes place.  It 
> processes all the metrics returned by the exporter, and therefore can see 
> labels which the exporter itself has generated.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/737f7296-1ac0-4786-9436-a5f1a6a43664n%40googlegroups.com.


Re: [prometheus-users] relabel_configs

2022-06-07 Thread Brian Candler


On Tuesday, 7 June 2022 at 09:55:33 UTC+1 sup...@gmail.com wrote:

> That won't work because labelmap needs a `source_labels` to act on.
>

No, I don't believe that's true. I've just tested the following and it 
works fine:

relabel_configs:
  - action: labelmap
regex: "(__address__)"
replacement: "dummy$1"

Metrics now have an extra "dummy__address__" label.

What I suspect is happening here is that the OP is using relabel_configs 
when they should be using metric_relabel_configs.

* relabel_configs is applied *before* the scrape takes place. It can 
therefore only affect labels which are returned by the service discovery.
* metric_relabel_configs is applied *after* the scrape takes place.  It 
processes all the metrics returned by the exporter, and therefore can see 
labels which the exporter itself has generated.

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/3e3ecc01-121a-4760-a170-24ceb2226e5an%40googlegroups.com.


Re: [prometheus-users] relabel_configs

2022-06-07 Thread Brian Candler
You are missing a colon after "source_labels".

On Tuesday, 7 June 2022 at 10:35:29 UTC+1 David Friedman wrote:

> did this and got an error "mapping values are not allowed in this context"
>   relabel_configs:
> - source_labels [tag_Customer]
>   action: labelmap
>   regex: "[^_]+_(.+)"
>   replacement: "$1"
> On Tuesday, June 7, 2022 at 11:55:33 AM UTC+3 sup...@gmail.com wrote:
>
>> That won't work because labelmap needs a `source_labels` to act on.
>>
>> On Tue, Jun 7, 2022 at 9:05 AM David Friedman <
>> dovid.f...@glassboxdigital.com> wrote:
>>
>>> Hi all
>>> I'm trying to relabel a label from tag_name to just name 
>>> I tried to do something like this 
>>> - action: labelmap
>>>   regex: "[^_]+_(.+)"
>>>   replacement: "$1"
>>> but it didn't work
>>> any help would be appreciated
>>> thanks 
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Prometheus Users" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to prometheus-use...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/prometheus-users/130e874a-4961-412b-9619-99817ceb527dn%40googlegroups.com
>>>  
>>> 
>>> .
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/8cac0cba-9411-4979-a3f5-901fb58835d5n%40googlegroups.com.


Re: [prometheus-users] relabel_configs

2022-06-07 Thread David Friedman
did this and got an error "mapping values are not allowed in this context"
  relabel_configs:
- source_labels [tag_Customer]
  action: labelmap
  regex: "[^_]+_(.+)"
  replacement: "$1"

On Tuesday, June 7, 2022 at 11:55:33 AM UTC+3 sup...@gmail.com wrote:

> That won't work because labelmap needs a `source_labels` to act on.
>
> On Tue, Jun 7, 2022 at 9:05 AM David Friedman <
> dovid.f...@glassboxdigital.com> wrote:
>
>> Hi all
>> I'm trying to relabel a label from tag_name to just name 
>> I tried to do something like this 
>> - action: labelmap
>>   regex: "[^_]+_(.+)"
>>   replacement: "$1"
>> but it didn't work
>> any help would be appreciated
>> thanks 
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Prometheus Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to prometheus-use...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/prometheus-users/130e874a-4961-412b-9619-99817ceb527dn%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/0d526a7c-d693-433f-a6c3-0f262c87bd01n%40googlegroups.com.


Re: [prometheus-users] relabel_configs

2022-06-07 Thread Ben Kochie
That won't work because labelmap needs a `source_labels` to act on.

On Tue, Jun 7, 2022 at 9:05 AM David Friedman <
dovid.fried...@glassboxdigital.com> wrote:

> Hi all
> I'm trying to relabel a label from tag_name to just name
> I tried to do something like this
> - action: labelmap
>   regex: "[^_]+_(.+)"
>   replacement: "$1"
> but it didn't work
> any help would be appreciated
> thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Prometheus Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to prometheus-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/prometheus-users/130e874a-4961-412b-9619-99817ceb527dn%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/CABbyFmo5qPGY45zEgW-MG-LChyLEbx3eDi-KewtdoKpPbRORBQ%40mail.gmail.com.


[prometheus-users] Re: relabel_configs

2022-06-07 Thread David Friedman
Hi thanks for the respond 
so nothing happened the label stayed the same
I have it in a  relabel_configs block 
Prometheus version is:  2.32.1
and ill add a labeldrop once i get both labels 
thanks

On Tuesday, June 7, 2022 at 10:37:49 AM UTC+3 Brian Candler wrote:

> Define "didn't work" - what actually happened?  Can you show some examples?
>
> Where are you doing this: inside a relabel_configs block, or a 
> metric_relabel_configs block, or somewhere else?  What version of 
> Prometheus?  Did you reload/HUP prometheus after changing the config?
>
> I believe you'll get both old and new labels, unless you also have a 
> labeldrop rule for the old ones.
>
> On Tuesday, 7 June 2022 at 08:05:11 UTC+1 David Friedman wrote:
>
>> Hi all
>> I'm trying to relabel a label from tag_name to just name 
>> I tried to do something like this 
>> - action: labelmap
>>   regex: "[^_]+_(.+)"
>>   replacement: "$1"
>> but it didn't work
>> any help would be appreciated
>> thanks 
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/fc360603-643d-48a5-b176-1d8cddb18ea1n%40googlegroups.com.


[prometheus-users] Re: relabel_configs

2022-06-07 Thread Brian Candler
Define "didn't work" - what actually happened?  Can you show some examples?

Where are you doing this: inside a relabel_configs block, or a 
metric_relabel_configs block, or somewhere else?  What version of 
Prometheus?  Did you reload/HUP prometheus after changing the config?

I believe you'll get both old and new labels, unless you also have a 
labeldrop rule for the old ones.

On Tuesday, 7 June 2022 at 08:05:11 UTC+1 David Friedman wrote:

> Hi all
> I'm trying to relabel a label from tag_name to just name 
> I tried to do something like this 
> - action: labelmap
>   regex: "[^_]+_(.+)"
>   replacement: "$1"
> but it didn't work
> any help would be appreciated
> thanks 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/4edcea49-8653-411c-9024-065b43e39340n%40googlegroups.com.


[prometheus-users] relabel_configs

2022-06-07 Thread David Friedman
Hi all
I'm trying to relabel a label from tag_name to just name 
I tried to do something like this 
- action: labelmap
  regex: "[^_]+_(.+)"
  replacement: "$1"
but it didn't work
any help would be appreciated
thanks 

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prometheus-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/130e874a-4961-412b-9619-99817ceb527dn%40googlegroups.com.