Skip to content

Unable to collect metrics for SPM #3975

Answered by albertteoh
Corfucinas asked this question in Q&A
Discussion options

You must be logged in to vote

The problem might be this:

processor = BatchSpanProcessor(OTLPSpanExporter(endpoint="localhost:14250", insecure=True))
processor = BatchSpanProcessor(OTLPSpanExporter(insecure=True))

Since you're using OTLP exporters, then jaeger receivers won't know how to read spans from your python script, and that's probably the cause of the errors you see. The second issue is the second line seems to overwrite the first.

As I couldn't get your python script to work quickly, I just threw in a microsim container into your docker-compose file and, using a jaeger receiver, I could see metrics in SPM:

  microsim:
    networks:
      - backend
    image: yurishkuro/microsim:0.2.0
    command: "-j http://o…

Replies: 3 comments 9 replies

Comment options

You must be logged in to vote
4 replies
@Corfucinas
Comment options

@yurishkuro
Comment options

@albertteoh
Comment options

@Corfucinas
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@Corfucinas
Comment options

@albertteoh
Comment options

@Corfucinas
Comment options

@albertteoh
Comment options

@Corfucinas
Comment options

Answer selected by Corfucinas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants