Metrics of my application #1830
NaveenTimeDoc
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I configured Otel for my ruby on rails application and able to get the traces in jaeger but unable to get the metrics of my application, i could only see basic metrics like below
HELP rails_info Rails application information
TYPE rails_info gauge
rails_info{version="7.1.5.1",ruby="3.3.6"} 1
HELP app_version Application version information
TYPE app_version gauge
app_version{version="dev"} 1
Note: Detailed metrics are collected by OpenTelemetry
Here is my initializer
And here is my otel config
`receivers:
otlp:
protocols:
grpc:
endpoint: "0.0.0.0:4317"
http:
endpoint: "0.0.0.0:4318"
opencensus:
prometheus:
config:
scrape_configs:
- job_name: 'otel-collector'
static_configs:
- targets: ['otel-collector:8888']
- job_name: 'timedoc-app'
static_configs:
- targets: ['app:3000']
metrics_path: '/metrics'
processors:
batch:
timeout: 1s
send_batch_size: 1024
exporters:
otlphttp:
endpoint: http://jaeger:4318
tls:
insecure: true
opencensus:
endpoint: otelcol2:55678
debug:
verbosity: detailed
otlp:
endpoint: otelcol2:4317
tls:
insecure: true
prometheus:
endpoint: 0.0.0.0:8889
namespace: default
prometheusremotewrite:
endpoint: http://prometheus.example.com:9411/api/prom/push
service:
pipelines:
traces:
receivers: [otlp]
processors: [batch]
exporters: [otlphttp, debug]
metrics:
receivers: [opencensus, prometheus]
processors: [batch]
exporters: [opencensus, prometheus]
# exporters: [otlphttp/prometheus, debug]
telemetry:
logs:
level: debug
`
Any suggestions...
Thanks in advance
Naveen..
Beta Was this translation helpful? Give feedback.
All reactions