GoogleCloudPlatform / GoogleCloudPlatform/k8s-stackdriver

Could not build time series for component : text format parsing error in line 2: invalid metric name

Open
#431 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
409
Forks
236
Avg merge
2h 34m
Merged PRs (30d)
9

Description

Hi Folks,

I'm not able to export Django metrics scrapped by django-prometheus package, however I'm able to get in on https://url/metrics

the prometheus-to-sd side car configured as below with django container port is 8000, but getting "Could not build time series for component : text format parsing error in line 2: invalid metric name" error

containers:
- command:
- /monitor
- --stackdriver-prefix=custom.googleapis.com
- --source=django:http://localhost:8000
- --auto-whitelist-metrics=true
- --pod-id=$(POD_NAME)
- --namespace-id=$(POD_NAMESPACE)
env:
- name: POD_NAME
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
- name: POD_NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
image: gcr.io/google-containers/prometheus-to-sd:v0.9.0
name: prometheus-to-sd
ports:
- containerPort: 6060
name: profiler

Any ideas ?!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.