-
Notifications
You must be signed in to change notification settings - Fork 578
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: adds a Grafana Agent example #1958
Conversation
Flamegraph.com reportCreated by Flamegraph.com Github Action |
Codecov Report
@@ Coverage Diff @@
## main #1958 +/- ##
=======================================
Coverage 60.35% 60.35%
=======================================
Files 175 175
Lines 4957 4957
Branches 1146 1146
=======================================
Hits 2992 2992
Misses 1953 1953
Partials 12 12 |
size-limit report 📦
|
@@ -0,0 +1,17 @@ | |||
# Grafana Agent Pull Mode Integration | |||
|
|||
This example demonstrates how you can use Grafana Agent with Grafana Pyroscope (formerly known as Phlare). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
phlare reference #1: this one can live imo
@@ -0,0 +1,24 @@ | |||
phlare.write "example" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
phlare reference #2: we asked @korniltsev today to change this to pyroscope
phlare.write "example" { | ||
// Send metrics to a locally running Phlare instance. | ||
endpoint { | ||
url = "http://phlare:4100" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will change this one
} | ||
|
||
|
||
phlare.scrape "default" { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as #2
|
||
phlare.scrape "default" { | ||
targets = [ | ||
{"__address__" = "phlare:4100", "app"="phlare"}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will change this one
{"__address__" = "phlare:4100", "app"="phlare"}, | ||
{"__address__" = "agent:12345", "app"="agent"}, | ||
] | ||
forward_to = [phlare.write.example.receiver] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as #2
ports: | ||
- 3000:3000 | ||
|
||
phlare: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will change this one
- 3000:3000 | ||
|
||
phlare: | ||
image: 'grafana/phlare:latest' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reference #4: this will only change once we merge two projects
image: 'grafana/phlare:latest' | ||
ports: | ||
- 4100:4100 | ||
command: -config.file=/etc/phlare/config.yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kinda same as #4, although I can probably change earlier
- 4100:4100 | ||
command: -config.file=/etc/phlare/config.yaml | ||
volumes: | ||
- ./phlare/config.yaml:/etc/phlare/config.yaml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kinda same as #4, although I can probably change earlier
"panels": [ | ||
{ | ||
"datasource": { | ||
"type": "phlare", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reference #5: this is a tricky one, there's a PR here grafana/grafana#67847
"targets": [ | ||
{ | ||
"datasource": { | ||
"type": "phlare", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as #5
- name: Pyroscope | ||
orgId: 1 | ||
uid: pyroscope | ||
type: 'phlare' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same as #5
type: 'phlare' | ||
access: 'proxy' | ||
grafanaOrgId: 1 | ||
url: http://phlare:4100 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will change
@@ -0,0 +1,6 @@ | |||
--- | |||
scrape_configs: | |||
- job_name: "phlare" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will change
Flamegraph.com reportCreated by Flamegraph.com Github Action |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
cc @Rperry2174