Hi, I'm hitting some Netdata exporters and I need to identify the "name" of 
my prometheus server on the http requests that collects the metrics.

I need to make something of the form:

```
  - job_name:          'netdata'
    metrics_path:      '/api/v1/allmetrics'
    scheme:            'http'
    params:
    ....
      name:
      - prometheus_server_name_without_domain OR md5(fqdn)

    ...
```

where I need the prometheus server to resolve its fqdn and run a function 
on it.


Note that the same configuration file is deployed all servers in a farm of 
prometheus nodes (collectors), where metrics are being hashed and 
dropped/kept accordingly, hence the need for the server itself to know its 
name when parsing the job and being able to operate with it on the params 
section (as opposed to manually type in a static value for each 
server/configuration file).


Is this possible?
can a prometheus node identify an internal variable on de params 
declaration of a job; and use a fuction to obfuscate it ?

Thanks in advance

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prometheus-users/90101d99-9708-49ad-9d69-1aa8f3d24ee1%40googlegroups.com.

Reply via email to