Skip to content

Commit 2be7705

Browse files
authored
prepare for 0.6.0 (#183)
1 parent d99cfbb commit 2be7705

17 files changed

+228
-110
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ NOTE: FreeBSD builds will not be included for this release. There is a bug in an
44
upstream library preventing cross-compilation of the Grafana Cloud Agent for
55
this platform. FreeBSD builds will return in a future release.
66

7+
# v0.6.0 (2020-09-04)
8+
9+
NOTE: FreeBSD builds will not be included for this release. There is a bug in an
10+
upstream library preventing cross-compilation of the Grafana Cloud Agent for
11+
this platform. FreeBSD builds will return in a future release.
12+
713
- [FEATURE] The Grafana Cloud Agent can now collect logs and send to Loki. This
814
is done by embedding Promtail, the official Loki log collection client.
915
(@rfratto)

docs/configuration-reference.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1541,7 +1541,7 @@ docker run \
15411541
-v "/proc:/host/proc:ro,rslave" \
15421542
-v /tmp/agent:/etc/agent \
15431543
-v /path/to/config.yaml:/etc/agent-config/agent.yaml \
1544-
grafana/agent:v0.5.0 \
1544+
grafana/agent:v0.6.0 \
15451545
--config.file=/etc/agent-config/agent.yaml
15461546
```
15471547

@@ -1581,7 +1581,7 @@ metadata:
15811581
name: agent
15821582
spec:
15831583
containers:
1584-
- image: grafana/agent:v0.5.0
1584+
- image: grafana/agent:v0.6.0
15851585
name: agent
15861586
args:
15871587
- --config.file=/etc/agent-config/agent.yaml
@@ -1848,7 +1848,7 @@ docker run \
18481848
-v "/proc:/proc:ro" \
18491849
-v /tmp/agent:/etc/agent \
18501850
-v /path/to/config.yaml:/etc/agent-config/agent.yaml \
1851-
grafana/agent:v0.5.0 \
1851+
grafana/agent:v0.6.0 \
18521852
--config.file=/etc/agent-config/agent.yaml
18531853
```
18541854

@@ -1865,7 +1865,7 @@ metadata:
18651865
name: agent
18661866
spec:
18671867
containers:
1868-
- image: grafana/agent:v0.5.0
1868+
- image: grafana/agent:v0.6.0
18691869
name: agent
18701870
args:
18711871
- --config.file=/etc/agent-config/agent.yaml

docs/getting-started.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Currently, there are five ways to install the agent:
4646
### Docker Container
4747

4848
```
49-
docker pull grafana/agent:v0.5.0
49+
docker pull grafana/agent:v0.6.0
5050
```
5151

5252
### Kubernetes Install Script
@@ -252,7 +252,7 @@ path of your Agent's YAML configuration file.
252252
docker run \
253253
-v /tmp/agent:/etc/agent \
254254
-v /path/to/config.yaml:/etc/agent-config/agent.yaml \
255-
grafana/agent:v0.5.0
255+
grafana/agent:v0.6.0
256256
```
257257
258258
### Locally

docs/maintaining.md

+6-4
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,12 @@ export GPG_TTY=$(tty)
5353
for generating the list (modifying the date to the date of the previous release): `curl https://api.github.com/search/issues?q=repo:grafana/agent+is:pr+"merged:>=2019-08-02" | jq -r ' .items[] | "* [" + (.number|tostring) + "](" + .html_url + ") **" + .user.login + "**: " + .title'`
5454
4. Go through the entire repository and find references to the previous release
5555
version, updating them to reference the new version.
56-
5. *Without creating a tag*, create a commit based on your changes and open a PR
56+
5. Run `make example-kubernetes` and `make example-dashboards` to update
57+
manifests in case they are stale.
58+
6. *Without creating a tag*, create a commit based on your changes and open a PR
5759
for updating the release notes.
58-
6. Merge the changelog PR.
59-
7. Create a new tag for the release.
60+
7. Merge the changelog PR.
61+
8. Create a new tag for the release.
6062
1. After following step 2, the CI will be triggered to create release
6163
artifacts and publish them to a draft release. The tag will be made
6264
publicly available immediately.
@@ -69,7 +71,7 @@ export GPG_TTY=$(tty)
6971
git tag -s $RELEASE -m "release $RELEASE"
7072
git push origin $RELEASE
7173
```
72-
8. Watch GitHub Actions and wait for all the jobs to finish running.
74+
9. Watch GitHub Actions and wait for all the jobs to finish running.
7375

7476
## Publishing the Release Draft
7577

example/docker-compose/grafana/dashboards/agent-operational.json

+35-35
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@
4545
"steppedLine": false,
4646
"targets": [
4747
{
48-
"expr": "rate(go_gc_duration_seconds_count{cluster=~\"$cluster\", namespace=~\"$namespace\", job=~\"$job\"}[5m])",
48+
"expr": "rate(go_gc_duration_seconds_count{cluster=~\"$cluster\", namespace=~\"$namespace\", container=~\"$container\", pod=~\"$pod\"}[5m])",
4949
"format": "time_series",
5050
"intervalFactor": 2,
51-
"legendFormat": "{{job}}",
51+
"legendFormat": "{{pod}}",
5252
"legendLink": null,
5353
"step": 10
5454
}
@@ -121,10 +121,10 @@
121121
"steppedLine": false,
122122
"targets": [
123123
{
124-
"expr": "go_memstats_heap_inuse_bytes{cluster=~\"$cluster\", namespace=~\"$namespace\", job=~\"$job\"}",
124+
"expr": "go_memstats_heap_inuse_bytes{cluster=~\"$cluster\", namespace=~\"$namespace\", container=~\"$container\", pod=~\"$pod\"}",
125125
"format": "time_series",
126126
"intervalFactor": 2,
127-
"legendFormat": "{{job}}",
127+
"legendFormat": "{{pod}}",
128128
"legendLink": null,
129129
"step": 10
130130
}
@@ -197,10 +197,10 @@
197197
"steppedLine": false,
198198
"targets": [
199199
{
200-
"expr": "go_goroutines{cluster=~\"$cluster\", namespace=~\"$namespace\", job=~\"$job\"}",
200+
"expr": "go_goroutines{cluster=~\"$cluster\", namespace=~\"$namespace\", container=~\"$container\", pod=~\"$pod\"}",
201201
"format": "time_series",
202202
"intervalFactor": 2,
203-
"legendFormat": "{{job}}",
203+
"legendFormat": "{{pod}}",
204204
"legendLink": null,
205205
"step": 10
206206
}
@@ -273,10 +273,10 @@
273273
"steppedLine": false,
274274
"targets": [
275275
{
276-
"expr": "rate(container_cpu_usage_seconds_total{cluster=~\"$cluster\", pod_name=~\".*grafana-agent.*\"}[5m])",
276+
"expr": "rate(container_cpu_usage_seconds_total{cluster=~\"$cluster\", container=~\"$container\", pod=~\"$pod\"}[5m])",
277277
"format": "time_series",
278278
"intervalFactor": 2,
279-
"legendFormat": "{{job}}",
279+
"legendFormat": "{{pod}}",
280280
"legendLink": null,
281281
"step": 10
282282
}
@@ -349,10 +349,10 @@
349349
"steppedLine": false,
350350
"targets": [
351351
{
352-
"expr": "container_memory_working_set_bytes{cluster=~\"$cluster\", pod_name=~\".*grafana-agent.*\"}",
352+
"expr": "container_memory_working_set_bytes{cluster=~\"$cluster\", container=~\"$container\", pod=~\"$pod\"}",
353353
"format": "time_series",
354354
"intervalFactor": 2,
355-
"legendFormat": "{{job}}",
355+
"legendFormat": "{{pod}}",
356356
"legendLink": null,
357357
"step": 10
358358
}
@@ -513,18 +513,18 @@
513513
"steppedLine": false,
514514
"targets": [
515515
{
516-
"expr": "rate(container_network_receive_bytes_total{cluster=~\"$cluster\", namespace=~\"$namespace\", pod_name=~\".*grafana-agent.*\"}[5m])",
516+
"expr": "sum by (pod) (rate(container_network_receive_bytes_total{cluster=~\"$cluster\", namespace=~\"$namespace\", pod=~\"$pod\"}[5m]))",
517517
"format": "time_series",
518518
"intervalFactor": 2,
519-
"legendFormat": "{{job}}",
519+
"legendFormat": "{{pod}}",
520520
"legendLink": null,
521521
"step": 10
522522
}
523523
],
524524
"thresholds": [ ],
525525
"timeFrom": null,
526526
"timeShift": null,
527-
"title": "RX",
527+
"title": "RX by Pod",
528528
"tooltip": {
529529
"shared": true,
530530
"sort": 0,
@@ -589,18 +589,18 @@
589589
"steppedLine": false,
590590
"targets": [
591591
{
592-
"expr": "rate(container_network_transmit_bytes_total{cluster=~\"$cluster\", namespace=~\"$namespace\", pod_name=~\".*grafana-agent.*\"}[5m])",
592+
"expr": "sum by (pod) (rate(container_network_transmit_bytes_total{cluster=~\"$cluster\", namespace=~\"$namespace\", pod=~\"$pod\"}[5m]))",
593593
"format": "time_series",
594594
"intervalFactor": 2,
595-
"legendFormat": "{{job}}",
595+
"legendFormat": "{{pod}}",
596596
"legendLink": null,
597597
"step": 10
598598
}
599599
],
600600
"thresholds": [ ],
601601
"timeFrom": null,
602602
"timeShift": null,
603-
"title": "TX",
603+
"title": "TX by Pod",
604604
"tooltip": {
605605
"shared": true,
606606
"sort": 0,
@@ -677,18 +677,18 @@
677677
"steppedLine": false,
678678
"targets": [
679679
{
680-
"expr": "(sum by (job, instance) (avg_over_time(go_memstats_heap_inuse_bytes{cluster=~\"$cluster\", job=~\"$job\", instance=~\"$instance\"}[1m])))\n/\n(sum by (job, instance) (agent_wal_storage_active_series{cluster=~\"$cluster\", job=~\"$job\", instance=~\"$instance\"}))\n",
680+
"expr": "(sum by (pod) (avg_over_time(go_memstats_heap_inuse_bytes{cluster=~\"$cluster\", namespace=~\"$namespace\", container=~\"$container\", pod=~\"$pod\"}[1m])))\n/\n(sum by (pod) (agent_wal_storage_active_series{cluster=~\"$cluster\", namespace=~\"$namespace\", container=~\"$container\", pod=~\"$pod\"}))\n",
681681
"format": "time_series",
682682
"intervalFactor": 2,
683-
"legendFormat": "{{instance}}",
683+
"legendFormat": "{{pod}}",
684684
"legendLink": null,
685685
"step": 10
686686
}
687687
],
688688
"thresholds": [ ],
689689
"timeFrom": null,
690690
"timeShift": null,
691-
"title": "Bytes/Series/Instance",
691+
"title": "Bytes/Series/Pod",
692692
"tooltip": {
693693
"shared": true,
694694
"sort": 0,
@@ -753,10 +753,10 @@
753753
"steppedLine": false,
754754
"targets": [
755755
{
756-
"expr": "(sum by (job) (avg_over_time(go_memstats_heap_inuse_bytes{cluster=~\"$cluster\", job=~\"$job\", instance=~\"$instance\"}[1m])))\n/\n(sum by (job) (agent_wal_storage_active_series{cluster=~\"$cluster\", job=~\"$job\", instance=~\"$instance\"}))\n",
756+
"expr": "(sum by (container) (avg_over_time(go_memstats_heap_inuse_bytes{cluster=~\"$cluster\", namespace=~\"$namespace\", container=~\"$container\", pod=~\"$pod\"}[1m])))\n/\n(sum by (container) (agent_wal_storage_active_series{cluster=~\"$cluster\", namespace=~\"$namespace\", container=~\"$container\", pod=~\"$pod\"}))\n",
757757
"format": "time_series",
758758
"intervalFactor": 2,
759-
"legendFormat": "{{job}}",
759+
"legendFormat": "{{container}}",
760760
"legendLink": null,
761761
"step": 10
762762
}
@@ -829,18 +829,18 @@
829829
"steppedLine": false,
830830
"targets": [
831831
{
832-
"expr": "sum by (instance) (agent_wal_storage_active_series{cluster=~\"$cluster\", job=~\"$job\", instance=~\"$instance\"})",
832+
"expr": "sum by (pod) (agent_wal_storage_active_series{cluster=~\"$cluster\", namespace=~\"$namespace\", container=~\"$container\", pod=~\"$pod\"})",
833833
"format": "time_series",
834834
"intervalFactor": 2,
835-
"legendFormat": "{{instance}}",
835+
"legendFormat": "{{pod}}",
836836
"legendLink": null,
837837
"step": 10
838838
}
839839
],
840840
"thresholds": [ ],
841841
"timeFrom": null,
842842
"timeShift": null,
843-
"title": "Series/Instance",
843+
"title": "Series/Pod",
844844
"tooltip": {
845845
"shared": true,
846846
"sort": 0,
@@ -905,10 +905,10 @@
905905
"steppedLine": false,
906906
"targets": [
907907
{
908-
"expr": "sum by (instance_name) (agent_wal_storage_active_series{cluster=~\"$cluster\", job=~\"$job\", instance=~\"$instance\"})",
908+
"expr": "sum by (instance_group_name) (agent_wal_storage_active_series{cluster=~\"$cluster\", namespace=~\"$namespace\", container=~\"$container\", pod=~\"$pod\"})",
909909
"format": "time_series",
910910
"intervalFactor": 2,
911-
"legendFormat": "{{instance_name}}",
911+
"legendFormat": "{{instance_group_name}}",
912912
"legendLink": null,
913913
"step": 10
914914
}
@@ -981,10 +981,10 @@
981981
"steppedLine": false,
982982
"targets": [
983983
{
984-
"expr": "sum by (job) (agent_wal_storage_active_series{cluster=~\"$cluster\", job=~\"$job\", instance=~\"$instance\"})",
984+
"expr": "sum by (container) (agent_wal_storage_active_series{cluster=~\"$cluster\", namespace=~\"$namespace\", container=~\"$container\", pod=~\"$pod\"})",
985985
"format": "time_series",
986986
"intervalFactor": 2,
987-
"legendFormat": "{{job}}",
987+
"legendFormat": "{{container}}",
988988
"legendLink": null,
989989
"step": 10
990990
}
@@ -1111,11 +1111,11 @@
11111111
"datasource": "$datasource",
11121112
"hide": 0,
11131113
"includeAll": true,
1114-
"label": "job",
1114+
"label": "container",
11151115
"multi": true,
1116-
"name": "job",
1116+
"name": "container",
11171117
"options": [ ],
1118-
"query": "label_values(agent_build_info, job)",
1118+
"query": "label_values(agent_build_info, container)",
11191119
"refresh": 1,
11201120
"regex": "",
11211121
"sort": 2,
@@ -1126,7 +1126,7 @@
11261126
"useTags": false
11271127
},
11281128
{
1129-
"allValue": null,
1129+
"allValue": "grafana-agent-.*",
11301130
"current": {
11311131
"selected": true,
11321132
"text": "All",
@@ -1135,11 +1135,11 @@
11351135
"datasource": "$datasource",
11361136
"hide": 0,
11371137
"includeAll": true,
1138-
"label": "instance",
1138+
"label": "pod",
11391139
"multi": true,
1140-
"name": "instance",
1140+
"name": "pod",
11411141
"options": [ ],
1142-
"query": "label_values(agent_build_info, instance)",
1142+
"query": "label_values(agent_build_info{container=~\"$container\"}, pod)",
11431143
"refresh": 1,
11441144
"regex": "",
11451145
"sort": 2,

0 commit comments

Comments
 (0)