Skip to content

"INVALID" is not a valid start token  #18

@tlgdevops

Description

@tlgdevops

hello,
I find myself unable to parse the metrics from script_exporter on prometheus.
My exporter config looks like this:

scripts:
  - name: login
    script: python /etc/prometheus/script_exporter/frontoffice.py login
    timeout: 15

I can successfully reach the metrics for my script on :9172/probe?name=login
However when adding to Prometheus I see the target as DOWN with this errors

"INVALID" is not a valid start token

My exporter configuration looks like this:

 - job_name: synthetics
    metrics_path: '/probe?name=login'
    static_configs:
      - targets: ['localhost:9172']

I've tried some variations of the scrape config to no success. Some documentation on usage from Prometheus would be greatly appreciated :)

thaks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions