Skip to content

Commit

Permalink
fix(demo): get back node exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed Dec 11, 2023
1 parent 829fe04 commit 896636f
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 11 deletions.
62 changes: 52 additions & 10 deletions dev/local/ch-demo/grafana/dashboards/node-exporter.json
Original file line number Diff line number Diff line change
Expand Up @@ -23647,7 +23647,7 @@
"list": [
{
"current": {
"selected": true,
"selected": false,
"text": "Prometheus",
"value": "Prometheus"
},
Expand All @@ -23665,20 +23665,64 @@
"type": "datasource"
},
{
"hide": 2,
"current": {
"selected": false,
"text": "node-exporter",
"value": "node-exporter"
},
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"definition": "",
"hide": 0,
"includeAll": false,
"label": "Job",
"multi": false,
"name": "job",
"query": "node-exporter",
"options": [],
"query": {
"query": "label_values(node_uname_info, job)",
"refId": "Prometheus-job-Variable-Query"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"type": "constant"
"sort": 1,
"tagValuesQuery": "",
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"hide": 2,
"current": {
"selected": false,
"text": "node-exporter:9100",
"value": "node-exporter:9100"
},
"datasource": {
"type": "prometheus",
"uid": "${DS_PROMETHEUS}"
},
"definition": "label_values(node_uname_info{job=\"$job\"}, instance)",
"hide": 0,
"includeAll": false,
"label": "Host",
"multi": false,
"name": "node",
"query": "node-exporter:9100",
"options": [],
"query": {
"query": "label_values(node_uname_info{job=\"$job\"}, instance)",
"refId": "Prometheus-node-Variable-Query"
},
"refresh": 1,
"regex": "",
"skipUrlSync": false,
"type": "constant"
"sort": 1,
"tagValuesQuery": "",
"tagsQuery": "",
"type": "query",
"useTags": false
},
{
"current": {
Expand Down Expand Up @@ -23709,8 +23753,6 @@
},
"timepicker": {
"refresh_intervals": [
"500ms",
"1s",
"5s",
"10s",
"30s",
Expand All @@ -23728,6 +23770,6 @@
"timezone": "browser",
"title": "Node Exporter Full",
"uid": "node-exporter",
"version": 1,
"version": 2,
"weekStart": ""
}
11 changes: 10 additions & 1 deletion dev/local/ch-demo/otelcol.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ processors:
check_interval: 5s
limit_mib: 256
spike_limit_mib: 500
# normalize between prometheus and otel
resource/normalize:
attributes:
- key: instance
from_attribute: service.instance.id
action: insert
- key: job
from_attribute: service.name
action: insert

exporters:
otlp:
Expand All @@ -48,7 +57,7 @@ service:
exporters: [otlp]
metrics/scrape:
receivers: [prometheus]
processors: [batch]
processors: [resource/normalize, batch]
exporters: [otlp]
logs:
receivers: [otlp]
Expand Down

0 comments on commit 896636f

Please sign in to comment.