ajout chemin personnalisé pour les job
This commit is contained in:
parent
c25b004d3b
commit
0a3658fa57
|
@ -78,6 +78,9 @@
|
||||||
<variable name='scrpScheme' type='string' description="Protocole à utiliser pour l'interrogation de la sonde">
|
<variable name='scrpScheme' type='string' description="Protocole à utiliser pour l'interrogation de la sonde">
|
||||||
<value>http</value>
|
<value>http</value>
|
||||||
</variable>
|
</variable>
|
||||||
|
<variable name='scrpMetricPath' type='string' description="Chemin d'accès de la ressource">
|
||||||
|
<value>/metrics</value>
|
||||||
|
</variable>
|
||||||
|
|
||||||
<variable name='addPrOpenTarg' type='oui/non' description="Ajouter des cibles statiques pour les jobs personnalisé">
|
<variable name='addPrOpenTarg' type='oui/non' description="Ajouter des cibles statiques pour les jobs personnalisé">
|
||||||
<value>non</value>
|
<value>non</value>
|
||||||
|
@ -168,7 +171,8 @@
|
||||||
<slave>scrpInterval</slave>
|
<slave>scrpInterval</slave>
|
||||||
<slave>scrpTimeout</slave>
|
<slave>scrpTimeout</slave>
|
||||||
<slave>honorLabels</slave>
|
<slave>honorLabels</slave>
|
||||||
<slave>scrpScheme</slave>
|
<slave>scrpScheme</slave>
|
||||||
|
<slave>scrpMetricPath</slave>
|
||||||
</group>
|
</group>
|
||||||
|
|
||||||
<group master='alRoute'>
|
<group master='alRoute'>
|
||||||
|
|
|
@ -44,6 +44,7 @@ scrape_configs:
|
||||||
scrape_interval: %%{job.scrpInterval}s
|
scrape_interval: %%{job.scrpInterval}s
|
||||||
scrape_timeout: %%{job.scrpTimeout}s
|
scrape_timeout: %%{job.scrpTimeout}s
|
||||||
scheme: %%job.scrpScheme
|
scheme: %%job.scrpScheme
|
||||||
|
metrics_path: %%job.scrpMetricPath
|
||||||
%set first = True
|
%set first = True
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: [ %slurp
|
- targets: [ %slurp
|
||||||
|
|
Loading…
Reference in New Issue