Hey guys,
We're experiencing some issues with ziti controller metrics. Prometheus experiences following error:
Error scraping target: non-compliant scrape target sending blank Content-Type and no fallback_scrape_protocol specified for target
"No Fallback Protocol" can be ignored here but the blank Content-Type (missing the version) is the problem. The header of the controllers metrics looks like this:
< HTTP/1.1 200 OK
< Date: Fri, 20 Dec 2024 12:39:03 GMT
< Content-Type: text/plain; charset=utf-8
< Transfer-Encoding: chunked
After that the metrics begin. In the Content-Type it misses the "version=0.0.4" entry. For example following some metrics by node exporter:
< HTTP/1.1 200 OK
< Content-Type: text/plain; version=0.0.4; charset=utf-8
< Date: Fri, 20 Dec 2024 12:38:17 GMT
< Transfer-Encoding: chunked
The metrics bind in the controller yaml looks like in the documentary:
- name: Metrics
bindPoints:
- interface: 0.0.0.0:2112
address: 0.0.0.0:2112
options:
apis:
- binding: metrics
options: {
includeTimestamps: true
}
The prometheus config looks like this:
global:
scrape_interval: 15s
scrape_configs:
- job_name: 'ziti'
scheme: https
metrics_path: /metrics
honor_labels: true
honor_timestamps: true
tls_config:
insecure_skip_verify: true
static_configs:
- targets: ['172.17.0.1:2112']
How can this be fixed or am I missing any point here? Tried older and newest ziti sdks and older and newest prometheus docker image. Any ideas are welcome!