|
1 | 1 | apiVersion: v1 |
2 | | -data: |
3 | | - foo: bar |
4 | 2 | kind: ConfigMap |
5 | 3 | metadata: |
6 | | - creationTimestamp: null |
7 | | - name: foo |
| 4 | + name: nasdas |
| 5 | +data: |
| 6 | + config.yaml: | |
| 7 | + # The identity section contains authentication information used |
| 8 | + # by the agent. |
| 9 | + identities: |
| 10 | + - name: gcp |
| 11 | + gcp: |
| 12 | + # This parameter accepts a base64-encoded JSON service |
| 13 | + # account key. The value comes from the reporting secret. |
| 14 | + encodedServiceAccountKey: $AGENT_ENCODED_KEY |
| 15 | +
|
| 16 | + # The metrics section defines the metric that will be reported. |
| 17 | + # Metric names should match verbatim the identifiers created |
| 18 | + # during pricing setup. |
| 19 | + metrics: |
| 20 | + - name: time |
| 21 | + type: int |
| 22 | + endpoints: |
| 23 | + - name: on_disk |
| 24 | + - name: servicecontrol |
| 25 | +
|
| 26 | + # The passthrough marker indicates that no aggregation should |
| 27 | + # occur for this metric. Reports received are immediately sent |
| 28 | + # to the reporting endpoint. We use passthrough for the |
| 29 | + # instance_time metric since reports are generated |
| 30 | + # automatically by a heartbeat source defined in a later |
| 31 | + # section. |
| 32 | + passthrough: {} |
| 33 | +
|
| 34 | + # The endpoints section defines where metering data is ultimately |
| 35 | + # sent. Currently supported endpoints include: |
| 36 | + # * disk - some directory on the local filesystem |
| 37 | + # * servicecontrol - Google Service Control |
| 38 | + endpoints: |
| 39 | + - name: on_disk |
| 40 | + # The disk endpoint is useful for debugging, but its inclusion |
| 41 | + # is not necessary in a production deployment. |
| 42 | + disk: |
| 43 | + reportDir: /var/lib/ubbagent/reports |
| 44 | + expireSeconds: 3600 |
| 45 | + - name: servicecontrol |
| 46 | + servicecontrol: |
| 47 | + identity: gcp |
| 48 | + # The service name is unique to your application and will be |
| 49 | + # provided during onboarding. |
| 50 | + serviceName: jetstack-secure-for-cert-manager.jetstack-public.appspot.com |
| 51 | + consumerId: $AGENT_CONSUMER_ID |
| 52 | +
|
| 53 | + # The sources section lists metric data sources run by the agent |
| 54 | + # itself. The currently-supported source is 'heartbeat', which |
| 55 | + # sends a defined value to a metric at a defined interval. In |
| 56 | + # this example, the heartbeat sends a 60-second value through the |
| 57 | + # "instance_time" metric every minute. |
| 58 | + sources: |
| 59 | + - name: instance_time_heartbeat |
| 60 | + heartbeat: |
| 61 | + metric: time |
| 62 | + intervalSeconds: 60 |
| 63 | + value: |
| 64 | + int64Value: 60 |
0 commit comments