Hello,
I created a short config to scrabe metrics from JIRA but I encounter the error message "Target parameter is missing" when I do to http://127.0.0.1:9321/metrics.
Here is my main config file:
# Global defaults.
global:
scrape_timeout: 5s
# Subtracted from Prometheus' scrape_timeout to give us some headroom and prevent Prometheus from timing out first.
scrape_timeout_offset: 500ms
# Minimum interval between collector runs: by default (0s) collectors are executed on every scrapee.
min_interval: 0s
# all unsuccessful queries will be retried this number of times
query_retry: 3
profiles_file_config:
- "profiles/*_profile.yml"
# The targets to monitor and the collectors to execute on it.
targets:
# default target is used as a pattern for exporter queries with target name not defined locally.
- name: default
scheme: https
host: template
port: 443
#auth_name: prometheus_encrypted
# auth_config:
# # mode: basic|token|[anything else:=> user defined login script]
# mode: script
# user: usrVeeam
# password: "/encrypted/base64_encrypted_password_by_passwd_crypt_cmd"
profile: jira
collectors:
- ~.*_metrics
- targets_files: ["targets/*.yml"]
# Collector files specifies a list of globs. One collector definition is read from each matching file.
collector_files:
- "metrics/*.collector.yml"
File metrics/test_metrics.collector.yml:
---
collector_name: jira_metrics
metric_prefix: jira
scripts:
get projects:
- name: collect elements
query:
url: /rest/api/2/project
var_name: results
File profiles/jira_profile.yml:
---
jira:
metric_prefix: "jira"
scripts:
init:
- name: default headers
set_fact:
headers:
- name: "Content-Type"
value: application/json
- name: Accept
value: "application/json"
scheme: https
port: 443
verifySSL: true
base_url: /api
File targets/jira-cloud.yml:
---
name: jira-cloud
scheme: https
host: xxx.atlassian.net
port: 443
profile: jira
auth_config:
mode: basic
user: xxx
password: xxx
# proxy: ""
# verifySSL: false
# custom constant labels add to all metrics
# labels:
# - name: value
# customs:
# status_url: /server-status?auto
collectors:
- ~.*_metrics
What have I missed?
Hello,
I created a short config to scrabe metrics from JIRA but I encounter the error message "Target parameter is missing" when I do to
http://127.0.0.1:9321/metrics.Here is my main config file:
File
metrics/test_metrics.collector.yml:File
profiles/jira_profile.yml:File
targets/jira-cloud.yml:What have I missed?