prometheus / prometheus/docs

Prometheus as data source in Grafana

Open
#2,237 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
717
Forks
1.2k
Avg merge
3d 15h
Merged PRs (30d)
19

Description

https://github.com/prometheus/docs/blob/8d0bcf464f6275a544b15b7c214e9092fcb145b0/content/docs/guides/go-application.md?plain=1#L23

After following this guide, i have Prometheus data at http://localhost:2112/metrics.

However, if I try to add Prometheus as a data source in Grafana, Grafana tries to query api/v1/query, which doesn't have anything.

image

What am I missing?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with content/docs/guides/go-application.md at the linked section, then review how the guide's metrics endpoint relates to Grafana's data-source query. Clarify the missing setup or limitation so a reader can connect the example application to Grafana and verify the result.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, grafana
Domain
documentation, observability
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.