Telegraf config send to Grafana prometheus cloud

  • What Grafana version and what operating system are you using?
    Grafana cloud

  • What are you trying to achieve?
    I am trying to send some metrics from telegraf to Grafana cloud prometheus

  • How are you trying to achieve it?
    I have the telegraf config and try to send metrics to prometheus but no luck


 urls = [""]
 ## HTTP Basic Auth
 username = xx
 password = xxx=

How did you discover this URL (ChatGPT?)? I would recommend to follow instruction in your Grafana Cloud stack - Endpoint to send metrics in InfluxDB format

I find it in my account, data source - Prometheus

I follow this page here Push metrics from Influx Telegraf to Prometheus | Grafana Cloud documentation

Great. Then I think you don’t follow doc properly:

You need to replace prometheus with influx and change the path from /api/prom/push to api/v1/push/influx. For example if the remote_write endpoint is, your influx endpoint will be


vs what you should have based on doc:

Try that, pls.

You are pushing data into non existing endpoint at the moment, so response 404 (not found) is correct.

1 Like

i try the new endpoint but with the same error 404

[outputs.influxdb] When writing to []: database “telegraf” creation failed: 404 Not Found: An error>

That’s different error - it is not a problem with URL, but with configured database (which is by default “telegraf”).
Try to find doc, what to set as proper database (blind guess: your stack name, maybe stack id - I don’t know).

1 Like

@jangaraj thank you for your help

i add this is ok

 exclude_database_tag = true
 skip_database_creation = true