Oltp doesn´t receive any cisco telemetry

otelcol.receiver.otlp “oltp_switches” {
grpc {
endpoint = “0.0.0.0:57000”
// include_metadata = true

keepalive {

   enforcement_policy {

      permit_without_stream = true
    }
   server_parameters {}

   }

}
// http {
// endpoint = “0.0.0.0:57000”

//}

//enforcement_policy {
//permit_without_stream = true
//}

output {
metrics = [otelcol.processor.batch.processor_switches.input]
logs = [otelcol.processor.batch.processor_switches.input]
traces = [otelcol.processor.batch.processor_switches.input]
}

}

otelcol.processor.batch “processor_switches” {
output {
metrics = [otelcol.exporter.prometheus.oltp_metrics.input]
logs = [otelcol.exporter.loki.oltp_lokilogs.input]
traces = [otelcol.exporter.loki.oltp_lokilogs.input]
}
}

otelcol.exporter.prometheus “oltp_metrics” {
forward_to = [prometheus.remote_write.oltp_metrics.receiver]
}

prometheus.remote_write “oltp_metrics” {
endpoint {
url = “http://localhost:9090/api/v1/write
basic_auth {
username = “xxx”
password = “yyyy”
}
}
}

otelcol.exporter.loki “oltp_lokilogs” {
forward_to = [loki.write.logs_oltp.receiver]
}

loki.write “logs_oltp” {
endpoint {
url = “http://localhost:3100/loki/api/v1/push
tenant_id = 1
}
}

As far as I know, Cisco doesn’t support sending device telemetry in OTLP format at the present time, only MDT (Model-Driven Telemetry).

The only option I’m aware of for getting MDT into Grafana currently is to use Telegraf with one of the following plugin combinations:
-Input: gnmi (for dial-in) or cisco_telemetry_mdt (for dial-out)
-Output: influxdb (the standard recommendation), or the prometheus plugin (which provides a exporter that you can scrape, but results in excessively verbose / borderline-unusable metric names)